aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-14 18:08:21 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-14 18:08:29 -0700
commit19d343c251619b87411c6de5d80fab41aee51de1 (patch)
tree3a67933f1021ee248ef34552aaf650f8d31da66f /package.json
parentdb406fcc787df2fa865e5c5fe333f152e533cda1 (diff)
downloadtrackermap-web-19d343c251619b87411c6de5d80fab41aee51de1.tar.gz
trackermap-web-19d343c251619b87411c6de5d80fab41aee51de1.tar.bz2
trackermap-web-19d343c251619b87411c6de5d80fab41aee51de1.zip
Switch to local dependencies
Diffstat (limited to 'package.json')
-rw-r--r--package.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/package.json b/package.json
index 9e318572..52fab488 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,17 @@
{
"name": "traccar-web",
+ "dependencies": {
+ "extjs-gpl": "^6.2.0",
+ "ol": "^6.6.1",
+ "ol-layerswitcher": "^3.8.3",
+ "openlayers-dist": "^6.6.1",
+ "proj4": "^2.7.5"
+ },
"devDependencies": {
"eslint": "^4.4.1"
},
"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",
"lint": "./node_modules/.bin/eslint web/."
}
}