- Refactoring: Move build-html to build directory

- Optimization: Remove old build/tools closure/yuicompressor code
- Testing: Produce mochawesome report
- Testing: Cypress with multiple reporters (was expecting we'd need, but doesn't hurt to add for now)
- Docs: Add testing badge
- Docs: Reprioritize `docs` in commit lists (prioritize user-facing)
- npm: Update `package-lock.json` (seems to have fixed so Cypress shows incremental results)
This commit is contained in:
Brett Zamir
2019-12-21 15:35:19 +08:00
parent 8e12910f11
commit 97f64d2189
30 changed files with 711 additions and 821 deletions

View File

@@ -23,7 +23,7 @@
"build-docs": "run-s -c build-docs-remove build-docs-create",
"open-docs-no-start": "open-cli http://localhost:8000/docs/jsdoc/",
"open-docs": "run-p start open-docs-no-start",
"build-html": "npx babel-node --plugins @babel/plugin-transform-modules-commonjs build-html.js",
"build-html": "npx babel-node --plugins @babel/plugin-transform-modules-commonjs build/build-html.js",
"compress-images": "imageoptim \"chrome-app/*.png\" \"editor/extensions/*.png\" \"editor/spinbtn/*.png\" \"editor/jgraduate/images/*.{png,gif}\" \"editor/images/*.png\"",
"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 .",
@@ -34,7 +34,9 @@
"start-embedded": "echo \"Open file to http://localhost:8000/editor/embedapi.html\" && run-p start start-allow-origin",
"start": "echo \"Open file, e.g., to http://localhost:8000/editor/svg-editor-es.html\" && static -p 8000",
"cypress:open": "cypress open",
"cypress:run-no-badge": "cypress run",
"cypress:merge": "mochawesome-merge \"cypress/results/*.json\">mochawesome.json && marge mochawesome.json && node build/testing-badge.js",
"cypress:run-only": "rimraf \"cypress/results/*\" && cypress run",
"cypress:run-no-badge": "run-s -c cypress:run-only cypress:merge",
"cypress:run": "run-s cypress:run-no-badge coverage-badge",
"open-report-no-start": "open-cli http://localhost:8000/coverage/",
"open-report": "run-p start open-report-no-start",
@@ -134,6 +136,7 @@
"coveradge": "^0.2.0",
"cypress": "^3.8.1",
"cypress-axe": "^0.5.3",
"cypress-multi-reporters": "^1.2.3",
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
"eslint": "^6.8.0",
"eslint-config-ash-nazg": "^16.4.0",
@@ -159,6 +162,11 @@
"jamilih": "^0.46.0",
"jsdoc": "^3.6.3",
"load-stylesheets": "^0.9.0",
"mocha": "^7.0.0",
"mocha-badge-generator": "https://github.com/brettz9/mocha-badge-generator#updated-badge-up",
"mochawesome": "^4.1.0",
"mochawesome-merge": "^4.0.0",
"mochawesome-report-generator": "^4.1.0",
"node-static": "^0.7.11",
"npm-run-all": "^4.1.5",
"nyc": "^15.0.0",