Skip to content

Commit

Permalink
feat(node-18-upgrade): Upgrade to node 18 (#702)
Browse files Browse the repository at this point in the history
* feat(node-18-upgrade): Upgrade to Node 18

* feat(node-18-upgrade): Update travis yaml and nvmrc

* feat(node-18-upgrade): Use compatible with version for BUIE

* feat(node-18-upgrade): Make sass a devdependency
  • Loading branch information
JChan106 authored Aug 14, 2023
1 parent c02f2ae commit 34b49ab
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 357 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/fermium
lts/hydrogen
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# @desktop @mobile @enabled
language: node_js
dist: 'focal'
node_js:
- '14'
- '18'
addons:
apt:
packages:
Expand All @@ -14,6 +15,7 @@ cache:
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.5
- export HUSKY_SKIP_HOOKS=1
- export NODE_OPTIONS=--openssl-legacy-provider
- export PATH=$HOME/.yarn/bin:$PATH
- export TZ=America/Los_Angeles
jobs:
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=10.x",
"node": ">=18.x",
"yarn": ">=1.10.x"
},
"devDependencies": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"babel-plugin-react-intl": "^7.5.1",
"babel-plugin-transform-require-ignore": "^0.1.1",
"box-node-sdk": "^1.33.0",
"box-ui-elements": "^15.0.0-beta.6",
"box-ui-elements": "^18.1.0",
"circular-dependency-plugin": "^5.2.0",
"classnames": "^2.2.5",
"conventional-github-releaser": "^3.1.3",
Expand Down Expand Up @@ -87,7 +87,6 @@
"lint-staged": "^9.5.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.13.1",
"npm-run-all": "^4.1.5",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
Expand All @@ -100,6 +99,7 @@
"react-tether": "1.0.5",
"react-textarea-autosize": "^7.1.2",
"redux": "^4.0.5",
"sass": "^1.64.1",
"sass-loader": "^8.0.2",
"scroll-into-view-if-needed": "^2.2.24",
"style-loader": "^1.1.4",
Expand All @@ -120,8 +120,8 @@
"scripts": {
"build": "yarn setup && yarn build:prod:dist",
"build:i18n": "props2es",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev webpack --config scripts/webpack.config.js --mode development --progress --colors",
"build:prod:dist": "BABEL_ENV=production NODE_ENV=production webpack --config scripts/webpack.config.js --mode production",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev NODE_OPTIONS=--openssl-legacy-provider webpack --config scripts/webpack.config.js --mode development --progress --colors",
"build:prod:dist": "BABEL_ENV=production NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack --config scripts/webpack.config.js --mode production",
"clean": "rm -rf dist reports/* i18n/json i18n/*.js",
"cy:open": "yarn cy:wait; yarn cypress open",
"cy:run": "yarn cy:wait; yarn cypress run --spec test/integration/**/*.test.js",
Expand All @@ -138,7 +138,7 @@
"release:pre": "scripts/release.sh -x",
"setup": "yarn install && yarn clean && yarn build:i18n",
"start": "yarn setup && yarn build:dev:dist --watch",
"start:dev": "yarn setup && LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev yarn webpack-dev-server --config scripts/webpack.config.js --mode development",
"start:dev": "yarn setup && LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev NODE_OPTIONS=--openssl-legacy-provider yarn webpack-dev-server --config scripts/webpack.config.js --mode development",
"start:linked": "IS_LINKED=1 yarn start",
"test": "BABEL_ENV=test NODE_ENV=test yarn jest",
"test:e2e": "node scripts/cypress.js",
Expand Down
Loading

0 comments on commit 34b49ab

Please sign in to comment.