Skip to content

Commit 3cb9db8

Browse files
Release 1.1.162
1 parent 1e77b37 commit 3cb9db8

File tree

5 files changed

+65
-50
lines changed

5 files changed

+65
-50
lines changed

package-lock.json

Lines changed: 33 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "predix-nodejs-starter",
3-
"version": "1.1.157",
3+
"version": "1.1.162",
44
"private": true,
55
"scripts": {
66
"start": "node server/app.js",
@@ -18,7 +18,7 @@
1818
"https-proxy-agent": "^1.0.0",
1919
"passport": ">= 0.0.0",
2020
"passport-oauth2-middleware": "*",
21-
"passport-predix-oauth": "0.1.49",
21+
"passport-predix-oauth": "0.1.55",
2222
"request": "~2.67.0",
2323
"url": "~0.11.0"
2424
},

scripts/quickstart-front-end-basic-node-express.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,31 @@ function local_read_args() {
3535
fi
3636
}
3737

38+
# default settings
3839
BRANCH="master"
3940
PRINT_USAGE=0
4041
SKIP_SETUP=false
42+
43+
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.1.0/izon2.sh"
4144
#ASSET_MODEL="-amrmd predix-ui-seed/server/sample-data/predix-asset/asset-model-metadata.json predix-ui-seed/server/sample-data/predix-asset/asset-model.json"
4245
SCRIPT="-script build-basic-app.sh -script-readargs build-basic-app-readargs.sh"
4346
QUICKSTART_ARGS="-ba -uaa -asset -ts -wd -nsts $SCRIPT"
4447
VERSION_JSON="version.json"
4548
PREDIX_SCRIPTS=predix-scripts
4649
REPO_NAME=predix-nodejs-starter
47-
SCRIPT_NAME="quickstart-front-end-webapp.sh"
50+
SCRIPT_NAME="quickstart-front-end-basic-node-express.sh"
51+
GITHUB_RAW="https://raw.githubusercontent.com/PredixDev"
4852
APP_DIR="build-basic-app"
4953
APP_NAME="Predix Front End Basic App - Node.js Express with UAA, Asset, Time Series"
5054
TOOLS="Cloud Foundry CLI, Git, Node.js, Maven, Predix CLI"
5155
TOOLS_SWITCHES="--cf --git --nodejs --maven --predixcli"
5256

57+
# Process switches
5358
local_read_args $@
54-
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/$BRANCH/izon.sh"
55-
VERSION_JSON_URL=https://raw.githubusercontent.com/PredixDev/predix-nodejs-starter/$BRANCH/version.json
5659

60+
#variables after processing switches
61+
SCRIPT_LOC="$GITHUB_RAW/$REPO_NAME/$BRANCH/$SCRIPT_NAME"
62+
VERSION_JSON_URL="$GITHUB_RAW/$REPO_NAME/$BRANCH/version.json"
5763

5864
function check_internet() {
5965
set +e
@@ -86,9 +92,10 @@ function init() {
8692

8793
#get the script that reads version.json
8894
eval "$(curl -s -L $IZON_SH)"
89-
95+
getUsingCurl $SCRIPT_LOC
96+
chmod 755 $SCRIPT_NAME
9097
getVersionFile
91-
getLocalSetupFuncs
98+
getLocalSetupFuncs $GITHUB_RAW
9299
}
93100

94101
if [[ $PRINT_USAGE == 1 ]]; then

scripts/quickstart-front-end-template.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function local_read_args() {
3535
fi
3636
}
3737

38+
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/1.1.0/izon2.sh"
3839
BRANCH="master"
3940
PRINT_USAGE=0
4041
SKIP_SETUP=false
@@ -47,19 +48,24 @@ REPO_NAME=predix-nodejs-starter
4748
SCRIPT_NAME="quickstart-front-end-template.sh"
4849
APP_DIR="frontend-microservice-template"
4950
APP_NAME="Predix Front End WebApp Microservice Template"
51+
GITHUB_RAW="https://raw.githubusercontent.com/PredixDev"
5052
TOOLS="Cloud Foundry CLI, Git, Node.js, Predix CLI"
5153
TOOLS_SWITCHES="--cf --git --nodejs --predixcli"
5254

55+
# Process switches
5356
local_read_args $@
54-
IZON_SH="https://raw.githubusercontent.com/PredixDev/izon/$BRANCH/izon.sh"
55-
VERSION_JSON_URL=https://raw.githubusercontent.com/PredixDev/predix-nodejs-starter/$BRANCH/version.json
5657

58+
#variables after processing switches
59+
echo "branch=$BRANCH"
60+
SCRIPT_LOC="$GITHUB_RAW/$REPO_NAME/$BRANCH/scripts/$SCRIPT_NAME"
61+
VERSION_JSON_URL="$GITHUB_RAW/$REPO_NAME/$BRANCH/version.json"
62+
echo "VERSION_JSON_URL=$VERSION_JSON_URL"
5763

5864
function check_internet() {
5965
set +e
6066
echo ""
6167
echo "Checking internet connection..."
62-
curl "http://google.com" > /dev/null 2>&1
68+
curl "http://github.com" > /dev/null 2>&1
6369
if [ $? -ne 0 ]; then
6470
echo "Unable to connect to internet, make sure you are connected to a network and check your proxy settings if behind a corporate proxy"
6571
echo "If you are behind a corporate proxy, set the 'http_proxy' and 'https_proxy' environment variables."
@@ -85,9 +91,10 @@ function init() {
8591

8692
#get the script that reads version.json
8793
eval "$(curl -s -L $IZON_SH)"
88-
94+
getUsingCurl $SCRIPT_LOC
95+
chmod 755 $SCRIPT_NAME
8996
getVersionFile
90-
getLocalSetupFuncs
97+
getLocalSetupFuncs $GITHUB_RAW
9198
}
9299

93100
if [[ $PRINT_USAGE == 1 ]]; then

version.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "Predix Front End Web App.html",
3-
"version": "1.1.157",
3+
"version": "1.1.162",
44
"private": true,
55
"dependencies": {
6-
"local-setup": "https://github.com/PredixDev/local-setup#1.0.88",
7-
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.133",
8-
"Predix-HelloWorld-WebApp": "https://github.com/PredixDev/Predix-HelloWorld-WebApp#1.1.136",
9-
"predix-nodejs-starter": "https://github.com/PredixDev/predix-nodejs-starter#",
10-
"winddata-timeseries-service": "https://github.com/PredixDev/winddata-timeseries-service#2.0.54"
6+
"local-setup": "https://github.com/PredixDev/local-setup#1.0.101",
7+
"predix-scripts": "https://github.com/PredixDev/predix-scripts#1.1.158",
8+
"Predix-HelloWorld-WebApp": "https://github.com/PredixDev/Predix-HelloWorld-WebApp#1.1.143",
9+
"predix-nodejs-starter": "https://github.com/PredixDev/predix-nodejs-starter#1.1.162",
10+
"winddata-timeseries-service": "https://github.com/PredixDev/winddata-timeseries-service#2.0.59"
1111
},
1212
"author": "turnerth"
1313
}

0 commit comments

Comments
 (0)