-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace react-scripts with Webpack + Node v18 + update Stellar SDK (#731
) * Replace react-scripts with custom webpack config * Use Node v18 * Use stellar-sdk v11.0.1 * Show Soroban banner on testnet + update Webpack config * Cleanup isSoroban
- Loading branch information
Showing
62 changed files
with
4,536 additions
and
8,833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
babel.config.js | ||
webpack.common.js | ||
webpack.dev.js | ||
webpack.prod.js | ||
.eslintrc.js | ||
prettier.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16 | ||
v18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = { | ||
presets: [ | ||
"@babel/preset-react", | ||
"@babel/preset-typescript", | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
browsers: "last 2 versions", | ||
}, | ||
modules: false, | ||
loose: false, | ||
}, | ||
], | ||
], | ||
plugins: ["transform-class-properties", "react-hot-loader/babel"], | ||
env: { | ||
test: { | ||
plugins: ["transform-es2015-modules-commonjs"], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,8 @@ | |
"author": "Stellar Development Foundation <[email protected]>", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"eject": "react-scripts eject", | ||
"start": "webpack serve --open --config webpack.dev.js", | ||
"build": "NODE_ENV=production webpack --config webpack.prod.js", | ||
"build:netlify": "yarn build; mkdir out; mkdir out/laboratory; mv build/* out/laboratory; cp _redirects out/_redirects", | ||
"test": "mocha './test/**/*.js'", | ||
"test:jest": "jest", | ||
|
@@ -42,39 +41,50 @@ | |
"@stellar/tsconfig": "^1.0.2", | ||
"@trezor/connect-plugin-stellar": "^9.0.2", | ||
"@trezor/connect-web": "^9.1.5", | ||
"assert": "^2.0.0", | ||
"axios": "^0.25.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", | ||
"browser-sync": "^2.27.7", | ||
"buffer": "^6.0.3", | ||
"chai": "^4.3.6", | ||
"classnames": "^2.2.0", | ||
"crypto-browserify": "^3.12.0", | ||
"dompurify": "^2.3.5", | ||
"html-react-parser": "^1.4.8", | ||
"https-browserify": "^1.0.0", | ||
"json-loader": "^0.5.7", | ||
"lodash": "^4.17.5", | ||
"mocha": "^9.2.0", | ||
"msw": "^0.36.8", | ||
"os-browserify": "^0.3.0", | ||
"prettier": "^2.5.1", | ||
"prop-types": "^15.8.1", | ||
"querystring-es3": "^0.2.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-hot-loader": "^4.13.1", | ||
"react-loadable": "^5.5.0", | ||
"react-redux": "^7.2.6", | ||
"react-scripts": "^4.0.3", | ||
"redux": "^4.1.2", | ||
"redux-thunk": "^2.4.1", | ||
"regenerator-runtime": "^0.13.9", | ||
"route-recognizer": "^0.3.4", | ||
"solar-stellarorg": "git+https://github.com/stellar/solar-stellarorg#master", | ||
"soroban-client": "^1.0.0-beta.2", | ||
"stellar-sdk": "^11.0.0-beta.4", | ||
"stellar-sdk": "^11.0.1", | ||
"stream-browserify": "^3.0.0", | ||
"stream-http": "^3.2.0", | ||
"typescript": "^4.5.5", | ||
"uri-templates": "^0.2.0", | ||
"urijs": "^1.16.0" | ||
"urijs": "^1.16.0", | ||
"url": "^0.11.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/core": "^7.22.5", | ||
"@babel/preset-env": "^7.22.5", | ||
"@babel/preset-flow": "^7.16.7", | ||
"@babel/preset-react": "^7.16.7", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@stellar/eslint-config": "^2.1.2", | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@testing-library/react": "^12.1.2", | ||
|
@@ -88,14 +98,31 @@ | |
"@types/react-loadable": "^5.5.6", | ||
"@types/react-redux": "^7.1.22", | ||
"@types/uri-templates": "^0.1.31", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"@typescript-eslint/eslint-plugin": "^5.60.1", | ||
"@typescript-eslint/parser": "^5.60.1", | ||
"babel-loader": "^9.1.2", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"css-loader": "^6.8.1", | ||
"eslint": "^7.31.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-react": "^1.1.7", | ||
"eslint-plugin-jsdoc": "^36.0.6", | ||
"eslint-config-react-app": "^7.0.1", | ||
"eslint-plugin-jsdoc": "^46.9.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-webpack-plugin": "^4.0.1", | ||
"fork-ts-checker-webpack-plugin": "^8.0.0", | ||
"html-webpack-plugin": "^5.5.3", | ||
"jest-fetch-mock": "^3.0.3", | ||
"sass": "^1.49.7" | ||
"mini-css-extract-plugin": "^2.7.6", | ||
"node-sass": "^9.0.0", | ||
"sass": "^1.49.7", | ||
"sass-loader": "^13.3.2", | ||
"style-loader": "^3.3.3", | ||
"ts-loader": "^9.4.3", | ||
"tsconfig-paths-webpack-plugin": "^4.0.1", | ||
"webpack": "^5.88.0", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-dev-server": "^4.15.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.