浏览代码

set buildtracimlib for windoz as a npm script

Skylsmoi 7 年前
父节点
当前提交
867ab8d2f5
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 0 1
      frontend_lib/buildtracimlib.sh
  2. 1 0
      frontend_lib/package.json

+ 0 - 1
frontend_lib/buildtracimlib.sh 查看文件

1
-npm run buildwindoz && echo '/* eslint-disable */' | cat - dist/tracim_lib.js > temp && mv temp dist/tracim_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_lib.js

+ 1 - 0
frontend_lib/package.json 查看文件

10
     "buildwindoz": "set NODE_ENV=production&& webpack -p",
10
     "buildwindoz": "set NODE_ENV=production&& webpack -p",
11
     "build": "NODE_ENV=production webpack -p",
11
     "build": "NODE_ENV=production webpack -p",
12
     "buildtracimlib": "NODE_ENV=production webpack -p && echo '/* eslint-disable */' | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_frontend_lib.js",
12
     "buildtracimlib": "NODE_ENV=production webpack -p && echo '/* eslint-disable */' | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_frontend_lib.js",
13
+    "buildtracimlibwindoz": "set NODE_ENV=production&& webpack -p && echo '/* eslint-disable */' | cat - dist/tracim_frontend_lib.js > temp && mv temp dist/tracim_frontend_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_frontend_lib.js",
13
     "test": "echo \"Error: no test specified\" && exit 1"
14
     "test": "echo \"Error: no test specified\" && exit 1"
14
   },
15
   },
15
   "author": "",
16
   "author": "",