Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-SunbirdEd-portal-old
Commits
062f29e6
Commit
062f29e6
authored
3 years ago
by
Rajeev
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-0000 node version update
parent
24da5185
master
aws_fileRead
dependabot/npm_and_yarn/src/app/client/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/app/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/app/express-4.17.3
dependabot/npm_and_yarn/src/app/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/OpenRAP/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/desktop/OpenRAP/express-4.17.3
dependabot/npm_and_yarn/src/desktop/OpenRAP/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/OpenRAP/qs-6.5.3
dependabot/npm_and_yarn/src/desktop/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/desktop/express-4.17.3
dependabot/npm_and_yarn/src/desktop/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/qs-6.10.3
filters_5.1.1
gcp
gcp_test
release-4.10.0
release-4.10.0.1
release-4.10.1
release-4.10.2
release-4.10.2.1
release-4.10.2.2
release-4.10.3
release-4.7.0
release-4.7.1
release-4.8.0
release-4.8.5
release-4.9.0
release-4.9.1
release-5.0.0
release-5.0.0.1
release-5.0.0.2
release-5.0.0.3
release-5.0.1
release-5.0.2
release-5.1.0
release-5.1.1
revert-8284-release-5.0.0
sharathkashyap-patch-1
Tags unavailable
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.sh
+4
-3
build.sh
src/app/client/package.json
+2
-2
src/app/client/package.json
src/app/package.json
+2
-2
src/app/package.json
with
8 additions
and
7 deletions
+8
-7
build.sh
+
4
−
3
View file @
062f29e6
#!/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"
...
...
This diff is collapsed.
Click to expand it.
src/app/client/package.json
+
2
−
2
View file @
062f29e6
...
...
@@ -24,8 +24,8 @@
"ext"
:
"png,jpeg,js,ts,html,json,css,scss"
},
"engines"
:
{
"node"
:
">=1
2
.1
6.1
"
,
"npm"
:
"6.1
3.4
"
"node"
:
">=1
4
.1
9.0
"
,
"npm"
:
"
>=
6.1
4.16
"
},
"private"
:
true
,
"dependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/app/package.json
+
2
−
2
View file @
062f29e6
...
...
@@ -22,8 +22,8 @@
"webpack-bundle-analyzer"
:
"^3.7.0"
},
"engines"
:
{
"node"
:
">=1
2
.1
6.1
"
,
"npm"
:
">=6.1
3.4
"
"node"
:
">=1
4
.1
9.0
"
,
"npm"
:
">=6.1
4.16
"
},
"nodemonConfig"
:
{
"ignore"
:
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets