Skip to content

Commit

Permalink
chore(build): update frontend container scripts to latest guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekdlugosz committed Apr 28, 2022
1 parent 102a825 commit ca647f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export COMPONENT="rhsm"
export APP_NAME=`node -e 'console.log(require("./package.json").insights.appname)'`
export APP_ROOT=$(pwd)
export NODE_BUILD_VERSION=12
export NODE_BUILD_VERSION=14
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master

# --------------------------------------------
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,30 @@
"api:dev": "mock -p 5000 -w ./src/services -w ./src/services/rhsm",
"api:docs": "node ./scripts/openapi.docs.js",
"api:proxy-hosts": "bash ./scripts/proxy.api.sh",
"build": "run-s -l build:pre build:js build:post",
"build": "run-s -l build:pre build:js build:post test:integration",
"build:js": "export NODE_ENV=production; webpack --config config/webpack.prod.config.js",
"build:post": "bash ./scripts/post.sh",
"build:pre": "bash ./scripts/pre.sh",
"build:deps": "bash ./scripts/dependencies.sh --doctor -u --doctorInstall \"yarn\" --doctorTest \"yarn test:deps\" --reject \"@patternfly/*, @redhat-cloud-services/frontend*, victory*\"",
"build:prod": "run-s build",
"dev:chrome": "bash ./scripts/dev.chrome.sh -b prod-stable",
"release": "standard-version",
"start": "run-p -l api:dev start:js",
"start:js": "export NODE_ENV=development; webpack serve --config config/webpack.dev.config.js",
"start:js-proxy": "export NODE_ENV=development; webpack serve --config config/webpack.proxy.config.js",
"start:proxy": "run-s -l api:proxy-hosts start:js-proxy",
"test": "export NODE_ENV=test; run-s test:spell* test:lint test:ci",
"test:ci": "export CI=true; jest ./src --coverage",
"test:ci": "export CI=true; TZ=UTC jest ./src --coverage --no-cache",
"test:clearCache": "jest --clearCache",
"test:dev": "export NODE_ENV=test; run-s test:spell test:lint test:local",
"test:deps": "run-s test build",
"test:integration": "jest ./tests",
"test:integration": "TZ=UTC jest ./tests --no-cache",
"test:integration-dev": "jest --roots=./tests --watch",
"test:lint": "eslint --ext=json --ext=js --ext=jsx src",
"test:spell-support": "cspell ./README.md ./config/README.md ./CONTRIBUTING.md --config ./config/cspell.config.json",
"test:spell": "cspell './public/locales/**/en*json' './src/**/*.js' --config ./config/cspell.config.json",
"test:local": "jest --roots=./src --watch"
"test:local": "jest --roots=./src --watch",
"verify": "run-s test build"
},
"dependencies": {
"@joi/date": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export COMPONENT="rhsm"
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
export APP_ROOT=$(pwd)
export NODE_BUILD_VERSION=12
export NODE_BUILD_VERSION=14
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master

# --------------------------------------------
Expand Down

0 comments on commit ca647f7

Please sign in to comment.