Skip to content

Commit b1a285e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into finish-multi-env-encryption
2 parents ac9cecd + 82c512f commit b1a285e

File tree

121 files changed

+7479
-4761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+7479
-4761
lines changed

.github/workflows/cypress.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: cypress
22

33
on:
4+
pull_request:
5+
branches: '**'
46
push:
5-
branches: '**'
7+
branches: '**'
68

79
jobs:
810
all:

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: docker-image
22

33
on:
44
push:
5-
branches: 'master'
6-
tags: '*'
5+
branches: 'master'
6+
tags: '*'
77

88
jobs:
99
publish:

.github/workflows/linux.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node-version: [12.x, 14.x, 16.x]
14+
node-version: [14.x, 16.x]
1515

1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -21,7 +21,10 @@ jobs:
2121
node-version: ${{ matrix.node-version }}
2222
- uses: bahmutov/npm-install@v1
2323

24+
- run: yarn playwright install-deps chromium
2425
- run: yarn build
25-
- run: yarn test --testTimeout 20000
26+
- run: yarn build:es
27+
- run: yarn build:all
28+
- run: xvfb-run yarn test --testTimeout 20000
2629
env: { CI: 1 }
2730

.github/workflows/macos.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [macos-latest]
14-
node-version: [12.x, 14.x, 16.x]
14+
node-version: [14.x, 16.x]
1515

1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -21,7 +21,10 @@ jobs:
2121
node-version: ${{ matrix.node-version }}
2222
- uses: bahmutov/npm-install@v1
2323

24+
- run: yarn playwright install-deps chromium
2425
- run: yarn build
26+
- run: yarn build:es
27+
- run: yarn build:all
2528
- run: yarn test --testTimeout 20000
2629
env: { CI: 1 }
2730

.github/workflows/main.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: main
22

33
on:
4+
pull_request:
5+
branches: '**'
46
push:
5-
branches: '**'
7+
branches: '**'
68

79
jobs:
810
# for branches, we only need to check Linux + Node LTS
911
# note that we do linting here, but not on Windows / MacOS (no need to)
1012
linux-and-lts:
11-
runs-on: ubuntu-latest
13+
runs-on: ${{ matrix.os }}
1214

1315
strategy:
1416
matrix:
@@ -21,15 +23,21 @@ jobs:
2123
with:
2224
node-version: ${{ matrix.node-version }}
2325
- uses: bahmutov/npm-install@v1
26+
- run: yarn playwright install-deps chromium
2427
- run: yarn build
2528
- run: yarn build:es
2629
- run: yarn build:all
2730
- run: yarn lint
31+
- run: xvfb-run yarn test --coverage --testTimeout 20000
32+
env: { CI: 1 }
33+
if: matrix.os == 'ubuntu-latest'
2834
- run: yarn test --coverage --testTimeout 20000
2935
env: { CI: 1 }
36+
if: matrix.os != 'ubuntu-latest'
3037

31-
# sanity check that the rollup plugin made a file without needing to loadConfig
38+
# sanity check that plugins made a file without needing to loadConfig
3239
- run: yarn --cwd ./examples/rollup-project start
40+
- run: yarn --cwd ./examples/esbuild-project start
3341

3442
- uses: codecov/codecov-action@v1
3543
if: matrix.os == 'ubuntu-latest'
@@ -61,5 +69,6 @@ jobs:
6169
./app-config-webpack/coverage/coverage-final.json,
6270
./app-config-rollup/coverage/coverage-final.json,
6371
./app-config-vite/coverage/coverage-final.json,
72+
./app-config-electron/coverage/coverage-final.json,
6473
fail_ci_if_error: true
6574
verbose: true

.github/workflows/publishing.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
token: ${{ secrets.NPM_TOKEN }}
3535
access: public
3636
package: ./app-config-cypress/package.json
37+
- name: app-config-electron
38+
uses: JS-DevTools/npm-publish@v1
39+
with:
40+
token: ${{ secrets.NPM_TOKEN }}
41+
access: public
42+
package: ./app-config-electron/package.json
3743
- name: app-config-default-extensions
3844
uses: JS-DevTools/npm-publish@v1
3945
with:
@@ -160,6 +166,12 @@ jobs:
160166
token: ${{ secrets.NPM_TOKEN }}
161167
access: public
162168
package: ./app-config-vite/package.json
169+
- name: app-config-esbuild
170+
uses: JS-DevTools/npm-publish@v1
171+
with:
172+
token: ${{ secrets.NPM_TOKEN }}
173+
access: public
174+
package: ./app-config-esbuild/package.json
163175
- name: lcdev-app-config-inject
164176
uses: JS-DevTools/npm-publish@v1
165177
with:

.github/workflows/windows.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [windows-latest]
14-
node-version: [12.x, 14.x, 16.x]
14+
node-version: [14.x, 16.x]
1515

1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -21,7 +21,10 @@ jobs:
2121
node-version: ${{ matrix.node-version }}
2222
- uses: bahmutov/npm-install@v1
2323

24+
- run: yarn playwright install-deps chromium
2425
- run: yarn build
26+
- run: yarn build:es
27+
- run: yarn build:all
2528
- run: yarn test --testTimeout 20000
2629
env: { CI: 1 }
2730

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ node_modules/
22

33
# app-config files, when developing
44
.app-config.*
5+
# keep example files though
6+
!examples/**/.app-config.*
57

68
# common build sites
79
dist/

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
## v2.8.5
2+
3+
Fixes #205
4+
5+
## v2.8.3
6+
7+
Adds `noBundledConfig` option to Webpack, esbuild, vite and rollup plugins - useful if you always use `@app-config/inject`.
8+
9+
## v2.8.2
10+
11+
Some bug fixes and improvements for Rollup, ESBuild and Vite plugins.
12+
13+
## v2.8.1
14+
15+
Adds support for injecting `currentEnvironment` from `@app-config/inject`.
16+
17+
Adds support for reading `APP_CONFIG_SECRETS_KEY_FILE`.
18+
19+
## v2.8.0
20+
21+
Adds plugin for [esbuild](https://esbuild.github.io)!
22+
23+
## v2.7.2
24+
25+
Ensures that `window._appConfig` is always written in webpack and rollup loaders.
26+
27+
## v2.7.1
28+
29+
Fixes bug in $extends directive when using specific environments.
30+
31+
## v2.7.0
32+
33+
Adds [Electron](https://app-config.dev/guide/electron.html) support!
34+
35+
Supports named export in react native #167.
36+
37+
## v2.6.1
38+
39+
Ensures that NotFoundErrors aren't ignored when transitive in optional files ([#160](https://github.com/launchcodedev/app-config/issues/160)).
40+
141
## v2.6.0
242

343
Adds plugins for [vite](https://vitejs.dev) and [rollup](https://rollupjs.org)!

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ If you are adding anything new or changing behavior, please add applicable tests
5353
- `@app-config/webpack`: webpack plugin
5454
- `@app-config/rollup`: rollup plugin
5555
- `@app-config/vite`: vite plugin
56+
- `@app-config/electron`: injects config into Electron renderer processes
5657
- `@app-config/main`: main config singleton and loading logic
5758
- `@lcdev/app-config`: alias for `@app-config/main`
5859
- `@lcdev/app-config-webpack-plugin`: alias for `@app-config/webpack`

0 commit comments

Comments
 (0)