diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index e69de29b..fb536d86 --- a/build.sh +++ b/build.sh @@ -0,0 +1,11 @@ +#! /usr/bin/bash +# Get app version from package.json +APP_VERSION=$(node -p "require('./package.json').version") + + +# Build the app +ng build --configuration production --aot + +# Bundle the app +cd dist/action-tracker +zip -r -D action-tracker-$APP_VERSION.zip . diff --git a/package.json b/package.json index 68ac3492..888adcac 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "action-tracker", - "version": "1.0.0-beta.1", + "version": "1.0.0-rc.4", "scripts": { "ng": "ng", "start": "ng serve --port 4000", - "build": "ng build --configuration production --aot && cd dist/action-tracker && zip -r -D action-tracker.zip .", + "build": "./build.sh", "test": "ng test --source-map=false", "test:travis": "ng test --source-map=false --no-watch --no-progress --browsers=ChromeHeadlessCI", "lint": "ng lint", diff --git a/src/manifest.webapp b/src/manifest.webapp index 338b4cf2..00b990be 100755 --- a/src/manifest.webapp +++ b/src/manifest.webapp @@ -1,6 +1,6 @@ { - "version": "1.0.0-rc.3", + "version": "1.0.0-rc.4", "name": "BNA Action Tracker", "description": "BNA Action Tracker", "appType": "APP",