Skip to content
Snippets Groups Projects
Commit aaec452b authored by Michal Malý's avatar Michal Malý
Browse files

Add packaging command to force a full rebuild

parent 73ac445a
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,11 @@ If working on just the viewer, ``npm run watch-viewer`` will provide shorter com
Debug/production mode in browsers can be turned on/off during runtime by calling ``setMolStarDebugMode(true/false, true/false)`` from the dev console.
### Force full rebuild
npm run rebuild
Force a full rebuild to resolve build errors that may occassionally arise. Once a force rebuild finishes successfully, incremental `npm run build` can be used again for further builds.
### Build for production:
NODE_ENV=production npm run build
......
......@@ -16,8 +16,10 @@
"test": "npm run lint && jest",
"jest": "jest",
"build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
"rebuild": "npm run rebuild-tsc && npm run build-extra && npm run build-webpack",
"build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
"build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
"rebuild-tsc": "concurrently \"tsc\" \"tsc --build tsconfig.commonjs.json --incremental\"",
"build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
"build-webpack": "webpack --mode production --config ./webpack.config.production.js",
"build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment