Skip to content

Commit 44d437f

Browse files
authored
Upgrades and support node 8+ (#2)
* 0.2.1 * updated examples and add support to node 8+ * updated deps on exmaples
1 parent c4d2987 commit 44d437f

File tree

15 files changed

+3926
-3381
lines changed

15 files changed

+3926
-3381
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ A runtime environment handler for React.js apps that have been bootstraped using
1111
- [Test Coverage](#test-coverage)
1212
- [Contributors](#contributors)
1313

14+
## Requirements
15+
16+
- Node.js 8.X or greater
17+
- npm 5.X or greater
18+
1419
## Usage
1520

1621
- Installation
@@ -106,7 +111,7 @@ RUN apk add --update nodejs
106111
RUN apk add --update npm
107112

108113
# install runtime-env-cra package
109-
RUN npm i -g runtime-env-cra@0.2.0
114+
RUN npm i -g runtime-env-cra@0.2.2
110115

111116
# start the app with the following CMD
112117
CMD ["/bin/sh", "-c", "runtime-env-cra && nginx -g \"daemon off;\""]
@@ -140,3 +145,5 @@ Time: 1.751 s
140145
<td align="center"><a href="https://github.com/peteyycz"><img src="https://avatars1.githubusercontent.com/u/7130689?v=4" width="50px;" alt=""/><br /><sub><b>peteyycz</b></sub></a><br />
141146
</tr>
142147
</table>
148+
149+
**_If you find a bug or have a question about the usage, feel free to open an issue!_**

examples/runtime-env-example-js/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NODE_ENV=development
2-
API_URL=https://my-awesome-api.com
2+
API_URL=https://my-awesome-api.com
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NODE_ENV=development
2-
API_URL=https://my-awesome-api.com
2+
API_URL=https://my-awesome-api.com

examples/runtime-env-example-js/package-lock.json

Lines changed: 1820 additions & 1595 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/runtime-env-example-js/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/jest-dom": "^5.11.6",
7-
"@testing-library/react": "^11.2.2",
8-
"@testing-library/user-event": "^12.6.0",
9-
"react": "^17.0.1",
10-
"react-dom": "^17.0.1",
11-
"react-scripts": "4.0.1",
12-
"runtime-env-cra": "0.2.0"
6+
"@testing-library/jest-dom": "^5.12.0",
7+
"@testing-library/react": "^11.2.7",
8+
"@testing-library/user-event": "^13.1.9",
9+
"react": "^17.0.2",
10+
"react-dom": "^17.0.2",
11+
"react-scripts": "4.0.3",
12+
"runtime-env-cra": "0.2.2"
1313
},
1414
"scripts": {
1515
"start": "NODE_ENV=development runtime-env-cra --config-name=./public/runtime-env.js && react-scripts start",

examples/runtime-env-example-ts/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NODE_ENV=development
2-
API_URL=https://my-awesome-api.com
2+
API_URL=https://my-awesome-api.com
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NODE_ENV=development
2-
API_URL=https://my-awesome-api.com
2+
API_URL=https://my-awesome-api.com

examples/runtime-env-example-ts/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
.env.test.local
1919
.env.production.local
2020

21+
.eslintcache
22+
2123
npm-debug.log*
2224
yarn-debug.log*
2325
yarn-error.log*

examples/runtime-env-example-ts/package-lock.json

Lines changed: 1841 additions & 1621 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/runtime-env-example-ts/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/jest-dom": "^5.11.6",
7-
"@testing-library/react": "^11.2.2",
8-
"@testing-library/user-event": "^12.6.0",
9-
"@types/jest": "^26.0.19",
10-
"@types/node": "^14.14.14",
11-
"@types/react": "^17.0.0",
12-
"@types/react-dom": "^17.0.0",
13-
"react": "^17.0.1",
14-
"react-dom": "^17.0.1",
15-
"react-scripts": "4.0.1",
16-
"runtime-env-cra": "0.2.0",
17-
"typescript": "^4.1.3"
6+
"@testing-library/jest-dom": "^5.12.0",
7+
"@testing-library/react": "^11.2.7",
8+
"@testing-library/user-event": "^13.1.9",
9+
"@types/jest": "^26.0.23",
10+
"@types/node": "^15.6.0",
11+
"@types/react": "^17.0.6",
12+
"@types/react-dom": "^17.0.5",
13+
"react": "^17.0.2",
14+
"react-dom": "^17.0.2",
15+
"react-scripts": "4.0.3",
16+
"runtime-env-cra": "0.2.2",
17+
"typescript": "^4.2.4"
1818
},
1919
"scripts": {
2020
"start": "NODE_ENV=development runtime-env-cra --config-name=./public/runtime-env.js && react-scripts start",

0 commit comments

Comments
 (0)