- npm/Linting: Add `--cache` to speed up subsequent linting

master
Brett Zamir 2020-05-18 10:25:49 +08:00
parent 850bf97fc1
commit 070e08a4f9
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ mochawesome-report
mochawesome.json mochawesome.json
.vscode .vscode
.eslintcache

View File

@ -92,6 +92,7 @@
- npm: Rename open script to open-tests, and add `open` script for opening - npm: Rename open script to open-tests, and add `open` script for opening
instance of svgedit instance of svgedit
- npm: Ensure starting server for open scripts - npm: Ensure starting server for open scripts
- npm/Linting: Add `--cache` to speed up subsequent linting
- npm: Fix scripts for Windows development (needed for - npm: Fix scripts for Windows development (needed for
building docs and instrumenting) building docs and instrumenting)
- npm: Update scripts to reflect removal of `all_tests.html`; - npm: Update scripts to reflect removal of `all_tests.html`;

View File

@ -53,8 +53,8 @@
"copy": "copyfiles -f node_modules/load-stylesheets/dist/index-es.js editor/external/load-stylesheets && copyfiles -f node_modules/jamilih/dist/jml-es.js editor/external/jamilih && copyfiles -f node_modules/query-result/esm/index.js editor/external/query-result/esm && copyfiles -f node_modules/qr-manipulation/dist/index-es.js editor/external/qr-manipulation/dist && copyfiles -f node_modules/stackblur-canvas/dist/stackblur-es.js editor/external/stackblur-canvas/dist && copyfiles -f node_modules/regenerator-runtime/runtime.js editor/external/regenerator-runtime && copyfiles -f \"node_modules/core-js-bundle//minified*\" editor/external/core-js-bundle && copyfiles -f \"node_modules/underscore/underscore-*\" editor/jspdf && copyfiles -f \"node_modules/deparam/dist/deparam.esm.js\" editor/external/deparam", "copy": "copyfiles -f node_modules/load-stylesheets/dist/index-es.js editor/external/load-stylesheets && copyfiles -f node_modules/jamilih/dist/jml-es.js editor/external/jamilih && copyfiles -f node_modules/query-result/esm/index.js editor/external/query-result/esm && copyfiles -f node_modules/qr-manipulation/dist/index-es.js editor/external/qr-manipulation/dist && copyfiles -f node_modules/stackblur-canvas/dist/stackblur-es.js editor/external/stackblur-canvas/dist && copyfiles -f node_modules/regenerator-runtime/runtime.js editor/external/regenerator-runtime && copyfiles -f \"node_modules/core-js-bundle//minified*\" editor/external/core-js-bundle && copyfiles -f \"node_modules/underscore/underscore-*\" editor/jspdf && copyfiles -f \"node_modules/deparam/dist/deparam.esm.js\" editor/external/deparam",
"remark": "remark -q -f .", "remark": "remark -q -f .",
"build-html": "babel-node --plugins @babel/plugin-transform-modules-commonjs build/build-html.js", "build-html": "babel-node --plugins @babel/plugin-transform-modules-commonjs build/build-html.js",
"eslint-fix": "eslint --fix --ext js,md,html .", "eslint-fix": "eslint --cache --fix --ext js,md,html .",
"eslint": "eslint --ext js,md,html .", "eslint": "eslint --cache --ext js,md,html .",
"rollup": "rollup -c", "rollup": "rollup -c",
"build-by-config": "rollup -c rollup-config.config.js", "build-by-config": "rollup -c rollup-config.config.js",
"prep-no-core-rollup": "run-s eslint build-html build-by-config", "prep-no-core-rollup": "run-s eslint build-html build-by-config",