Skip to content

Commit 819b4d9

Browse files
committed
feat: modernize
1 parent 546efdb commit 819b4d9

85 files changed

Lines changed: 5193 additions & 9177 deletions

Some content is hidden

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

.ember-cli

Lines changed: 0 additions & 7 deletions
This file was deleted.

.env.development

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file is committed to git and should not contain any secrets.
2+
#
3+
# Vite recommends using .env.local or .env.[mode].local if you need to manage secrets
4+
# SEE: https://vite.dev/guide/env-and-mode.html#env-files for more information.
5+
6+
7+
# Default NODE_ENV with vite build --mode=test is production
8+
NODE_ENV=development

.eslintignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,86 +5,95 @@ on:
55
branches:
66
- main
77
- master
8-
- 'v*'
98
pull_request: {}
10-
schedule:
11-
- cron: '0 3 * * *' # daily, at 3am
129

1310
concurrency:
1411
group: ci-${{ github.head_ref || github.ref }}
1512
cancel-in-progress: true
1613

1714
jobs:
18-
test:
19-
name: "Tests"
15+
lint:
16+
name: "Lints"
2017
runs-on: ubuntu-latest
2118
timeout-minutes: 10
2219

2320
steps:
24-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2522
- uses: pnpm/action-setup@v4
23+
- uses: actions/setup-node@v4
2624
with:
27-
version: 9
28-
- name: Install Node
29-
uses: actions/setup-node@v3
30-
with:
31-
node-version: 18
25+
node-version-file: package.json
3226
cache: pnpm
3327
- name: Install Dependencies
3428
run: pnpm install --frozen-lockfile
3529
- name: Lint
3630
run: pnpm lint
31+
32+
test:
33+
name: "Tests"
34+
runs-on: ubuntu-latest
35+
timeout-minutes: 10
36+
outputs:
37+
matrix: ${{ steps.set-matrix.outputs.matrix }}
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: pnpm/action-setup@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version-file: package.json
45+
cache: pnpm
46+
- name: Install Dependencies
47+
run: pnpm install --frozen-lockfile
3748
- name: Run Tests
38-
run: pnpm test:ember
49+
run: pnpm test
50+
# For the Try Scenarios
51+
- id: set-matrix
52+
run: |
53+
echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT
54+
3955
4056
floating:
4157
name: "Floating Dependencies"
4258
runs-on: ubuntu-latest
4359
timeout-minutes: 10
4460

4561
steps:
46-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
4763
- uses: pnpm/action-setup@v4
64+
- uses: actions/setup-node@v4
4865
with:
49-
version: 9
50-
- uses: actions/setup-node@v3
51-
with:
52-
node-version: 18
66+
node-version-file: package.json
5367
cache: pnpm
5468
- name: Install Dependencies
5569
run: pnpm install --no-lockfile
5670
- name: Run Tests
57-
run: pnpm test:ember
71+
run: pnpm test
5872

5973
try-scenarios:
60-
name: ${{ matrix.try-scenario }}
74+
name: ${{ matrix.name }}
6175
runs-on: ubuntu-latest
6276
needs: "test"
6377
timeout-minutes: 10
64-
6578
strategy:
6679
fail-fast: false
67-
matrix:
68-
try-scenario:
69-
- ember-lts-4.12
70-
- ember-lts-5.4
71-
- ember-release
72-
- ember-beta
73-
- ember-canary
74-
- embroider-safe
75-
- embroider-optimized
80+
matrix: ${{fromJson(needs.test.outputs.matrix)}}
7681

7782
steps:
78-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
7984
- uses: pnpm/action-setup@v4
85+
- uses: actions/setup-node@v4
8086
with:
81-
version: 9
82-
- name: Install Node
83-
uses: actions/setup-node@v3
84-
with:
85-
node-version: 18
87+
node-version-file: package.json
8688
cache: pnpm
89+
- name: Apply Scenario
90+
run: |
91+
pnpm dlx @embroider/try apply ${{ matrix.name }}
92+
8793
- name: Install Dependencies
88-
run: pnpm install --frozen-lockfile
94+
run: pnpm install --no-lockfile
8995
- name: Run Tests
90-
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
96+
run: |
97+
pnpm test
98+
99+
env: ${{ matrix.env }}

.github/workflows/push-dist.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Because this library needs to be built,
2+
# we can't easily point package.json files at the git repo for easy cross-repo testing.
3+
#
4+
# This workflow brings back that capability by placing the compiled assets on a "dist" branch
5+
# (configurable via the "branch" option below)
6+
name: Push dist
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- master
13+
14+
jobs:
15+
push-dist:
16+
name: Push dist
17+
permissions:
18+
contents: write
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 10
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: pnpm/action-setup@v4
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version-file: package.json
28+
cache: pnpm
29+
- name: Install Dependencies
30+
run: pnpm install --frozen-lockfile
31+
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
32+
with:
33+
branch: dist
34+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
# compiled output
2-
/dist/
3-
/declarations/
2+
dist/
3+
dist-tests/
4+
declarations/
45

5-
# dependencies
6-
/node_modules/
6+
# from scenarios
7+
tmp/
8+
config/optional-features.json
9+
ember-cli-build.cjs
710

8-
# misc
9-
/.env*
10-
/.pnp*
11-
/.eslintcache
12-
/coverage/
13-
/npm-debug.log*
14-
/testem.log
15-
/yarn-error.log
11+
# npm/pnpm/yarn pack output
12+
*.tgz
1613

17-
# ember-try
18-
/.node_modules.ember-try/
19-
/npm-shrinkwrap.json.ember-try
20-
/package.json.ember-try
21-
/package-lock.json.ember-try
22-
/yarn.lock.ember-try
23-
24-
# broccoli-debug
25-
/DEBUG/
14+
# deps & caches
15+
node_modules/
16+
.eslintcache
17+
.prettiercache

.npmignore

Lines changed: 0 additions & 37 deletions
This file was deleted.

.prettierignore

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33

44
# compiled output
55
/dist/
6+
/dist-*/
7+
/declarations/
68

79
# misc
810
/coverage/
9-
!.*
10-
.*/
11-
12-
# ember-try
13-
/.node_modules.ember-try/
11+
pnpm-lock.yaml
12+
config/ember-cli-update.json
13+
*.yaml
14+
*.yml
15+
*.md
16+
*.html

.prettierrc.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)