diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-15 14:36:32 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-15 14:36:32 -0700 |
commit | 57eb05c97de6f4ffccb927ed5b2c310e722ffeb2 (patch) | |
tree | 393c9ccc183fffdbfc5102872da9be46de0a7c56 | |
parent | 8ec7aded57e4bc1f525d904ad42c3541b685ca37 (diff) | |
download | trackermap-web-57eb05c97de6f4ffccb927ed5b2c310e722ffeb2.tar.gz trackermap-web-57eb05c97de6f4ffccb927ed5b2c310e722ffeb2.tar.bz2 trackermap-web-57eb05c97de6f4ffccb927ed5b2c310e722ffeb2.zip |
Update packaging scripts
-rw-r--r-- | tools/minify.bat | 5 | ||||
-rwxr-xr-x | tools/minify.sh | 15 | ||||
-rwxr-xr-x | tools/package.sh | 4 |
3 files changed, 3 insertions, 21 deletions
diff --git a/tools/minify.bat b/tools/minify.bat deleted file mode 100644 index bb350bf5..00000000 --- a/tools/minify.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -cd C:\[traccar path]\traccar\web -set SDK=C:\[sencha path]\ext-6.2.0 - -sencha -sdk %SDK% compile -classpath=app.js,app,%SDK%\packages\core\src,%SDK%\packages\core\overrides,%SDK%\classic\classic\src,%SDK%\classic\classic\overrides exclude -all and include -recursive -file app.js and exclude -namespace=Ext and concatenate -closure app.min.js diff --git a/tools/minify.sh b/tools/minify.sh deleted file mode 100755 index 0579d8ca..00000000 --- a/tools/minify.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -cd $(dirname $0)/../web - -# Use the value of $EXTJS_PATH if it is defined, '../../../ext-6.2.0' otherwise -EXT=${EXTJS_PATH:-'../../../ext-6.2.0'} - -sencha compile --classpath=app.js,app,$EXT/packages/core/src,$EXT/packages/core/overrides,$EXT/classic/classic/src,$EXT/classic/classic/overrides \ - exclude -all \ - and \ - include -recursive -file app.js \ - and \ - exclude -namespace=Ext \ - and \ - concatenate -closure app.min.js diff --git a/tools/package.sh b/tools/package.sh index 14be2a20..e60e46dc 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -2,7 +2,9 @@ cd $(dirname $0) -./minify.sh +rm -r ../web/lib +npm install +npm run build cd ../modern |