- Docs: Remove outdated info on jsdoc linting (now just part of eslint config)

- npm: Rename open script to open-tests, and add `open` script for opening instance of svgedit
- npm: Ensure starting server for open scripts
This commit is contained in:
Brett Zamir
2019-12-25 16:06:44 +08:00
parent 8bd9466827
commit 6f8d45cda9
3 changed files with 8 additions and 15 deletions

View File

@@ -15,7 +15,8 @@
"scripts": {
"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",
"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 && npm start",
"open": "open-cli http://localhost:8000/editor/svg-editor-es.html && npm start",
"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",
@@ -31,7 +32,7 @@
"start": "echo \"Open file, e.g., to http://localhost:8000/editor/svg-editor-es.html\" && static -p 8000",
"cypress:open": "cypress open",
"cypress:run": "cypress run && npm run coverage-badge",
"open-report": "open-cli http://localhost:8000/coverage/",
"open-report": "open-cli http://localhost:8000/coverage/ && npm start",
"start-open-report": "run-p start open-report",
"instrument:replace-html": "frs-replace \"../svgedit-config-es.js\" \"svgedit-config-es.js\" -i instrumented/svg-editor-es.html -o instrumented/svg-editor-es.html",
"instrument:replace-js": "frs-replace \"editor/svg-editor.js\" \"svg-editor.js\" -i svgedit-config-es.js -o instrumented/svgedit-config-es.js",
@@ -40,7 +41,7 @@
"instrument": "rimraf instrumented && npx nyc instrument editor instrumented && npm run copy-instrumented",
"coverage-badge": "coveradge badges/coverage-badge",
"open-cov": "npm-run-all instrument --parallel --race start cypress:open",
"open": "run-p start cypress:open",
"open-tests": "run-p start cypress:open",
"report": "npx nyc report",
"report-summary": "npx nyc report --reporter=text-summary",
"test-cov-prereport": "npm-run-all instrument --parallel --race start cypress:run",