- npm: Add rimraf toward supporting Windows development (needed for building docs and instrumenting)

This commit is contained in:
Brett Zamir
2019-12-24 09:47:20 +08:00
parent 5ffcc24f6f
commit 6a0a505558
4 changed files with 41 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
"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": "rm -rf docs/jsdoc/*;jsdoc --pedantic -c docs/jsdoc-config.js editor",
"build-docs": "rimraf docs/jsdoc/*;jsdoc --pedantic -c docs/jsdoc-config.js editor",
"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'",
@@ -35,7 +35,7 @@
"instrument:replace-js": "frs-replace \"editor/svg-editor.js\" \"svg-editor.js\" -i svgedit-config-es.js -o instrumented/svgedit-config-es.js",
"instrument:copy-excluded": "node cypress/support/copy.js",
"copy-instrumented": "copyfiles -e \"**/*.js\" -u 1 \"editor/**/*\" instrumented && npm run instrument:replace-html && npm run instrument:replace-js && npm run instrument:copy-excluded",
"instrument": "rm -Rf instrumented && npx nyc instrument editor instrumented && npm run copy-instrumented && npm run coverage-badge",
"instrument": "rimraf instrumented && npx nyc instrument editor instrumented && npm run copy-instrumented && npm run coverage-badge",
"coverage-badge": "coveradge badges/coverage-badge",
"open-cov": "npm-run-all instrument --parallel --race start cypress:open",
"open": "run-p start cypress:open",
@@ -159,6 +159,7 @@
"regenerator-runtime": "^0.13.3",
"remark-cli": "^7.0.1",
"remark-lint-ordered-list-marker-value": "^1.0.4",
"rimraf": "^3.0.0",
"rollup": "1.27.14",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-re": "^1.0.7",