aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-14 21:53:50 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-14 21:53:50 -0700
commitfdca2b0886d5f0003b7cab617928574f8d4c84d4 (patch)
tree4e9f28c097bc7dbbb5586403d12615546ee1c09b
parent5220fc1a97fde3796e0cdb1f7ff1329e0fd9e5a4 (diff)
downloadtrackermap-web-fdca2b0886d5f0003b7cab617928574f8d4c84d4.tar.gz
trackermap-web-fdca2b0886d5f0003b7cab617928574f8d4c84d4.tar.bz2
trackermap-web-fdca2b0886d5f0003b7cab617928574f8d4c84d4.zip
Add build script
-rw-r--r--package.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json
index 52fab488..36a8e2b5 100644
--- a/package.json
+++ b/package.json
@@ -8,10 +8,12 @@
"proj4": "^2.7.5"
},
"devDependencies": {
- "eslint": "^4.4.1"
+ "eslint": "^4.4.1",
+ "sencha-cmd": "^0.1.4"
},
"scripts": {
- "postinstall": "mkdir -p web/lib/{ol,ol-layerswitcher,proj4,extjs} && cp ./node_modules/openlayers-dist/{ol.js,ol.css} web/lib/ol/ && cp ./node_modules/ol-layerswitcher/dist/{ol-layerswitcher.js,ol-layerswitcher.css} web/lib/ol-layerswitcher/ && cp ./node_modules/proj4/dist/proj4.js web/lib/proj4/ && cp ./node_modules/extjs-gpl/build/ext-all.js web/lib/extjs/ && mkdir -p web/lib/extjs/classic && cp -r ./node_modules/extjs-gpl/build/classic/locale web/lib/extjs/classic/locale && cp -r ./node_modules/extjs-gpl/build/classic/theme-triton web/lib/extjs/classic/theme-triton && mkdir -p web/lib/extjs/packages/charts && cp -r ./node_modules/extjs-gpl/build/packages/charts/classic web/lib/extjs/packages/charts/classic",
+ "postinstall": "mkdir -p web/lib/{ol,ol-layerswitcher,proj4,extjs} && cp node_modules/openlayers-dist/{ol.js,ol.css} web/lib/ol/ && cp node_modules/ol-layerswitcher/dist/{ol-layerswitcher.js,ol-layerswitcher.css} web/lib/ol-layerswitcher/ && cp node_modules/proj4/dist/proj4.js web/lib/proj4/ && cp node_modules/extjs-gpl/build/ext-all.js web/lib/extjs/ && mkdir -p web/lib/extjs/classic && cp -r node_modules/extjs-gpl/build/classic/locale web/lib/extjs/classic/locale && cp -r node_modules/extjs-gpl/build/classic/theme-triton web/lib/extjs/classic/theme-triton && mkdir -p web/lib/extjs/packages/charts && cp -r node_modules/extjs-gpl/build/packages/charts/classic web/lib/extjs/packages/charts/classic",
+ "build": "sencha compile --classpath=web/app.js,web/app,node_modules/extjs-gpl/packages/core/src,node_modules/extjs-gpl/packages/core/overrides,node_modules/extjs-gpl/classic/classic/src,node_modules/extjs-gpl/classic/classic/overrides exclude -all and include -recursive -file web/app.js and exclude -namespace=Ext and concatenate -closure web/app.min.js",
"lint": "./node_modules/.bin/eslint web/."
}
}