- npm: Further cross-platform (Windows) support for development (building docs and instrumenting)

master
Brett Zamir 2019-12-24 10:42:30 +08:00
parent ef4ea22a69
commit dbe0bb1615
1 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,9 @@
"prepublishOnly": "npm run test-prep",
"build-by-config": "rollup -c rollup-config.config.js",
"open-es-allext": "open-cli http://localhost:8000/editor/svg-editor-es.html?extensions=ext-arrows.js,ext-closepath.js,ext-foreignobject.js,ext-helloworld.js,ext-mathjax.js,ext-php_savefile.js,ext-server_moinsave.js,ext-server_opensave.js,ext-webappfind.js,ext-xdomain-messaging.js",
"build-docs": "rimraf docs/jsdoc/*;jsdoc --pedantic -c docs/jsdoc-config.js editor",
"build-docs-remove": "rimraf docs/jsdoc/*",
"build-docs-create": "jsdoc --pedantic -c docs/jsdoc-config.js editor",
"build-docs": "run-s -c build-docs-remove build-docs-create",
"open-docs": "open-cli http://localhost:8000/docs/jsdoc/ && npm start",
"build-html": "npx babel-node --plugins @babel/plugin-transform-modules-commonjs build-html.js",
"compress-images": "imageoptim 'chrome-app/*.png' && imageoptim 'editor/extensions/*.png' && imageoptim 'editor/spinbtn/*.png' && imageoptim 'editor/jgraduate/images/*.{png,gif}' && imageoptim 'editor/images/*.png'",
@ -41,7 +43,8 @@
"open": "run-p start cypress:open",
"report": "npx nyc report",
"report-summary": "npx nyc report --reporter=text-summary",
"test-cov": "npm-run-all instrument --parallel --race start cypress:run ; npm run report-summary",
"test-cov-prereport": "npm-run-all instrument --parallel --race start cypress:run",
"test-cov": "run-s -c test-cov-prereport report-summary",
"test-cov-open": "npm-run-all instrument --parallel --race start cypress:run",
"test-no-build": "npm run eslint && npm run build-html && npm run build-by-config && npm test",
"test-prep": "npm run eslint && npm run build-html && npm run rollup && npm run build-by-config",