Commit 062f29e6 authored by Rajeev's avatar Rajeev
Browse files

Issue #SB-0000 node version update

Showing with 8 additions and 7 deletions
+8 -7
#!/bin/bash
STARTTIME=$(date +%s)
NODE_VERSION=14.19.0
echo "Starting portal build from build.sh"
set -euo pipefail
export NVM_DIR="$HOME/.nvm"
......@@ -20,7 +21,7 @@ then
fi
commit_hash=$(git rev-parse --short HEAD)
nvm install 12.16.1 # same is used in client and server
nvm install $NODE_VERSION # same is used in client and server
cd src/app
mkdir -p app_dist/ # this folder should be created prior server and client build
......@@ -45,7 +46,7 @@ build_client_cdn(){
# function to run client build
build_client(){
echo "Building client in background"
nvm use 12.16.1
nvm use $NODE_VERSION
cd client
echo "starting client yarn install"
yarn install --no-progress --production=true
......@@ -68,7 +69,7 @@ build_server(){
echo "copying requied files to app_dist"
cp -R libs helpers proxy resourcebundles package.json framework.config.js sunbird-plugins routes constants controllers server.js ./../../Dockerfile app_dist
cd app_dist
nvm use 12.16.1
nvm use $NODE_VERSION
echo "starting server yarn install"
yarn install --no-progress --production=true
echo "completed server yarn install"
......
......@@ -24,8 +24,8 @@
"ext": "png,jpeg,js,ts,html,json,css,scss"
},
"engines": {
"node": ">=12.16.1",
"npm": "6.13.4"
"node": ">=14.19.0",
"npm": ">=6.14.16"
},
"private": true,
"dependencies": {
......
......@@ -22,8 +22,8 @@
"webpack-bundle-analyzer": "^3.7.0"
},
"engines": {
"node": ">=12.16.1",
"npm": ">=6.13.4"
"node": ">=14.19.0",
"npm": ">=6.14.16"
},
"nodemonConfig": {
"ignore": [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment