Skip to content

Commit 3a07ce3

Browse files
committed
Merge branch 'master' into v3
2 parents 852c35d + 8289dda commit 3a07ce3

File tree

103 files changed

+4716
-1821
lines changed

Some content is hidden

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

103 files changed

+4716
-1821
lines changed

.github/workflows/cypress.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- uses: bahmutov/npm-install@v1
1616

1717
- run: yarn build
18+
- run: yarn build:es
19+
- run: yarn build:all
1820

1921
- name: Cypress dependencies
2022
uses: cypress-io/github-action@v2
@@ -85,3 +87,12 @@ jobs:
8587
start: yarn serve -l 8995 ./dist
8688
env:
8789
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
90+
- uses: cypress-io/github-action@v2
91+
with:
92+
group: app-config-vite
93+
working-directory: examples/vite-project
94+
install: false
95+
record: true
96+
start: yarn serve -l 8996 ./dist
97+
env:
98+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

.github/workflows/linux.yml

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

1616
runs-on: ${{ matrix.os }}
1717
steps:

.github/workflows/macos.yml

Lines changed: 1 addition & 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: [10.x, 12.x, 14.x, 15.x]
14+
node-version: [12.x, 14.x, 16.x]
1515

1616
runs-on: ${{ matrix.os }}
1717
steps:

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ jobs:
2222
node-version: ${{ matrix.node-version }}
2323
- uses: bahmutov/npm-install@v1
2424
- run: yarn build
25+
- run: yarn build:es
26+
- run: yarn build:all
2527
- run: yarn lint
2628
- run: yarn test --coverage --testTimeout 20000
2729
env: { CI: 1 }
30+
31+
# sanity check that the rollup plugin made a file without needing to loadConfig
32+
- run: yarn --cwd ./examples/rollup-project start
33+
2834
- uses: codecov/codecov-action@v1
2935
if: matrix.os == 'ubuntu-latest'
3036
with:
@@ -53,5 +59,7 @@ jobs:
5359
./app-config-v1-compat/coverage/coverage-final.json,
5460
./app-config-vault/coverage/coverage-final.json,
5561
./app-config-webpack/coverage/coverage-final.json,
62+
./app-config-rollup/coverage/coverage-final.json,
63+
./app-config-vite/coverage/coverage-final.json,
5664
fail_ci_if_error: true
5765
verbose: true

.github/workflows/publishing.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ jobs:
163163
access: public
164164
package: ./app-config-webpack/package.json
165165
tag: next
166+
- name: app-config-rollup
167+
uses: JS-DevTools/npm-publish@v1
168+
with:
169+
token: ${{ secrets.NPM_TOKEN }}
170+
access: public
171+
package: ./app-config-rollup/package.json
172+
tag: next
173+
- name: app-config-vite
174+
uses: JS-DevTools/npm-publish@v1
175+
with:
176+
token: ${{ secrets.NPM_TOKEN }}
177+
access: public
178+
package: ./app-config-vite/package.json
179+
tag: next
166180
- name: lcdev-app-config-inject
167181
uses: JS-DevTools/npm-publish@v1
168182
with:

.github/workflows/windows.yml

Lines changed: 1 addition & 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: [10.x, 12.x, 14.x, 15.x]
14+
node-version: [12.x, 14.x, 16.x]
1515

1616
runs-on: ${{ matrix.os }}
1717
steps:

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## v2.6.1
2+
3+
Ensures that NotFoundErrors aren't ignored when transitive in optional files ([#160](https://github.com/launchcodedev/app-config/issues/160)).
4+
5+
## v2.6.0
6+
7+
Adds plugins for [vite](https://vitejs.dev) and [rollup](https://rollupjs.org)!
8+
9+
Adds `ac` as an npx alias for `app-config`.
10+
11+
## v2.5.2
12+
13+
Adds support for calling `currentEnvironment` when using the Webpack plugin.
14+
115
## v2.5.1
216

317
Adds `env` option on `$extends` and `$override` directives.

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ If you are adding anything new or changing behavior, please add applicable tests
5050
- `@app-config/schema`: schema loading and validation
5151
- `@app-config/inject`: runtime injection into HTML files
5252
- `@app-config/webpack`: webpack plugin
53+
- `@app-config/rollup`: rollup plugin
54+
- `@app-config/vite`: vite plugin
5355
- `@app-config/main`: main config singleton and loading logic
5456
- `@lcdev/app-config`: alias for `@app-config/main`
5557
- `@lcdev/app-config-webpack-plugin`: alias for `@app-config/webpack`

app-config-cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"!**/*.test.*"
2222
],
2323
"bin": {
24+
"ac": "dist/index.js",
2425
"app-config": "dist/index.js",
2526
"app-config-secret-agent": "dist/start-secret-agent.js"
2627
},

app-config-cli/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ enum OptionGroups {
5757

5858
type SubcommandOptions<
5959
Options extends { [name: string]: yargs.Options },
60-
PositionalOptions extends { [name: string]: yargs.PositionalOptions }
60+
PositionalOptions extends { [name: string]: yargs.PositionalOptions },
6161
> = {
6262
name: string | string[];
6363
description?: string;
@@ -72,7 +72,7 @@ type SubcommandFn<Options extends { [name: string]: yargs.Options }> = (
7272

7373
function subcommand<
7474
Options extends { [name: string]: yargs.Options },
75-
PositionalOptions extends { [name: string]: yargs.PositionalOptions }
75+
PositionalOptions extends { [name: string]: yargs.PositionalOptions },
7676
>(
7777
desc: SubcommandOptions<Options, PositionalOptions>,
7878
run: SubcommandFn<Options & PositionalOptions>,

0 commit comments

Comments
 (0)