forked from stellar/stellar-demo-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Webpack + Node 18 + update env variables (stellar#323)
* Replace CRA with Webpack + Node 18 * Update Node version * Update GH action * Update docker file * Fix Docker file formatting * Use global env * Update readme * Add dotenv to server * Cleanup
- Loading branch information
Showing
81 changed files
with
6,102 additions
and
11,466 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
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,21 +1,9 @@ | ||
FROM node:16 as build | ||
FROM node:18 as build | ||
|
||
MAINTAINER SDF Ops Team <[email protected]> | ||
|
||
WORKDIR /app | ||
|
||
ARG REACT_APP_CLIENT_DOMAIN | ||
ENV REACT_APP_CLIENT_DOMAIN $REACT_APP_CLIENT_DOMAIN | ||
|
||
ARG REACT_APP_WALLET_BACKEND_ENDPOINT | ||
ENV REACT_APP_WALLET_BACKEND_ENDPOINT $REACT_APP_WALLET_BACKEND_ENDPOINT | ||
|
||
ARG REACT_APP_HORIZON_PASSPHRASE | ||
ENV REACT_APP_HORIZON_PASSPHRASE $REACT_APP_HORIZON_PASSPHRASE | ||
|
||
ARG REACT_APP_HORIZON_URL | ||
ENV REACT_APP_HORIZON_URL $REACT_APP_HORIZON_URL | ||
|
||
COPY . /app/ | ||
RUN yarn workspace demo-wallet-client install | ||
RUN yarn build:shared | ||
|
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,16 +1,18 @@ | ||
FROM node:16 as build | ||
FROM node:18 as build | ||
|
||
MAINTAINER SDF Ops Team <[email protected]> | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app/ | ||
|
||
RUN yarn workspace demo-wallet-server install | ||
RUN yarn build:shared | ||
RUN yarn build:server | ||
|
||
# Copy it all to a clean image to avoid cache artifacts elsewhere in the image | ||
FROM node:16 | ||
|
||
FROM node:18 | ||
COPY --from=build /app /app | ||
WORKDIR /app | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
version: '3.8' | ||
version: "3.8" | ||
services: | ||
wallet-client: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-client | ||
args: | ||
REACT_APP_CLIENT_DOMAIN: demo-wallet-server.stellar.org | ||
REACT_APP_WALLET_BACKEND_ENDPOINT: https://demo-wallet-server.stellar.org | ||
env_file: | ||
- .env | ||
ports: | ||
- "8000:80" |
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"], | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.