From dbe0bb16159cda30131d952dc7b0d1b9c8455da1 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 24 Dec 2019 10:42:30 +0800 Subject: [PATCH] - npm: Further cross-platform (Windows) support for development (building docs and instrumenting) --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 46269b3f..9ae7b00a 100644 --- a/package.json +++ b/package.json @@ -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",