diff --git a/package.json b/package.json index ea1620c99..45da5c4f4 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,9 @@ "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", "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:doc": "node ./scripts/creatTestFromDoc.js", "lint": "npx eslint packages/*/src", "sizereport": "npx sizereport --config" }, diff --git a/scripts/build.js b/scripts/build.js index 5d7b37b09..35099ee86 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -7,7 +7,6 @@ const projects = require('./getProjects')(); const creatRollupConfig = require('./creatRollupConfig'); const isBuildAll = process.argv.pop() === 'all'; -console.log(process.argv); function build(projectPath) { const { input, output, plugins } = creatRollupConfig(projectPath);