build all packages

This commit is contained in:
zhw2590582 committed 2019-11-22 21:26:30 +08:00
1 parent 590388125a
commit 88c7b5c2ff
2 files changed
+2 -2

No files matched your search

+2 -1
View File
@@ -10,8 +10,9 @@
"dev": "npx cross-env NODE_ENV=development node ./scripts/dev.js", "dev": "npx cross-env NODE_ENV=development node ./scripts/dev.js",
"start": "npx cross-env NODE_ENV=development npx servor docs index.html 8080 5000", "start": "npx cross-env NODE_ENV=development npx servor docs index.html 8080 5000",
"build": "npx cross-env NODE_ENV=production node ./scripts/build.js", "build": "npx cross-env NODE_ENV=production node ./scripts/build.js",
"build:all": "npm run build all && node ./scripts/creatTestFromDoc.js && git add . && git commit -m \"build all packages\" -n ", "build:all": "npm run build all && npm run test:doc && git add . && git commit -m \"build all packages\" -n ",
"test": "npx cross-env NODE_ENV=test mocha-chrome ./test/index.html --mocha '{\"ui\":\"bdd\"}'", "test": "npx cross-env NODE_ENV=test mocha-chrome ./test/index.html --mocha '{\"ui\":\"bdd\"}'",
"test:doc": "node ./scripts/creatTestFromDoc.js",
"lint": "npx eslint packages/*/src", "lint": "npx eslint packages/*/src",
"sizereport": "npx sizereport --config" "sizereport": "npx sizereport --config"
}, },
-1
View File
@@ -7,7 +7,6 @@ const projects = require('./getProjects')();
const creatRollupConfig = require('./creatRollupConfig'); const creatRollupConfig = require('./creatRollupConfig');
const isBuildAll = process.argv.pop() === 'all'; const isBuildAll = process.argv.pop() === 'all';
console.log(process.argv);
function build(projectPath) { function build(projectPath) {
const { input, output, plugins } = creatRollupConfig(projectPath); const { input, output, plugins } = creatRollupConfig(projectPath);