Sync asset registry on build.

refs #37
This commit is contained in:
softsimon
2020-05-02 14:04:33 +07:00
parent 11b1d9bbd3
commit ac9e718ef1
3 changed files with 29 additions and 2 deletions

View File

@@ -21,8 +21,10 @@
"main": "index.ts",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build --prod",
"start": "npm run sync-assets-dev && ng serve --proxy-config proxy.conf.json",
"build": "ng build --prod && npm run sync-assets",
"sync-assets": "node sync-asset-registry.js",
"sync-assets-dev": "node sync-asset-registry.js dev",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"