Skip to content

Commit ec6856c

Browse files
committed
feat: init v2
1 parent 36dcdc4 commit ec6856c

File tree

130 files changed

+5162
-7207
lines changed

Some content is hidden

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

130 files changed

+5162
-7207
lines changed

.ember-cli

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

.eslintignore

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

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 35 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
test:
18-
name: 'Tests'
17+
lint:
18+
name: "Lints"
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 10
2021

2122
steps:
2223
- uses: actions/checkout@v4
@@ -29,14 +30,13 @@ jobs:
2930
run: pnpm install
3031
- name: Lint
3132
run: pnpm lint
32-
- name: Run Ember Tests
33-
run: pnpm test:ember
34-
- name: Run Node Tests
35-
run: pnpm test:node
3633

37-
floating:
38-
name: 'Floating Dependencies'
34+
test:
35+
name: "Tests"
3936
runs-on: ubuntu-latest
37+
timeout-minutes: 10
38+
outputs:
39+
matrix: ${{ steps.set-matrix.outputs.matrix }}
4040

4141
steps:
4242
- uses: actions/checkout@v4
@@ -46,30 +46,19 @@ jobs:
4646
node-version: 18
4747
cache: pnpm
4848
- name: Install Dependencies
49-
run: pnpm install --no-lockfile
49+
run: pnpm install --frozen-lockfile
5050
- name: Run Tests
51-
run: pnpm test:ember
52-
- name: Run Node Tests
53-
run: pnpm test:node
51+
run: pnpm test
52+
# For the Try Scenarios
53+
- id: set-matrix
54+
run: |
55+
echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT
56+
5457
55-
try-scenarios:
56-
name: ${{ matrix.try-scenario }}
57-
timeout-minutes: 15
58+
floating:
59+
name: "Floating Dependencies"
5860
runs-on: ubuntu-latest
59-
needs: 'test'
60-
61-
strategy:
62-
fail-fast: false
63-
matrix:
64-
try-scenario:
65-
- ember-lts-4.4
66-
- ember-lts-4.8
67-
- ember-lts-4.12
68-
- ember-release
69-
- ember-beta
70-
- ember-canary
71-
- embroider-safe
72-
- embroider-optimized
61+
timeout-minutes: 10
7362

7463
steps:
7564
- uses: actions/checkout@v4
@@ -79,24 +68,18 @@ jobs:
7968
node-version: 18
8069
cache: pnpm
8170
- name: Install Dependencies
82-
run: pnpm install
71+
run: pnpm install --no-lockfile
8372
- name: Run Tests
84-
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
73+
run: pnpm test
8574

86-
typescript-compatibility:
87-
name: Type checking - ${{ matrix.typescript-scenario }}
75+
try-scenarios:
76+
name: ${{ matrix.name }}
8877
runs-on: ubuntu-latest
89-
needs: 'test'
90-
78+
needs: "test"
79+
timeout-minutes: 10
9180
strategy:
9281
fail-fast: false
93-
matrix:
94-
typescript-scenario:
95-
- typescript-4.2
96-
- typescript-4.3
97-
- typescript-4.4
98-
- typescript-4.5
99-
- typescript-next
82+
matrix: ${{fromJson(needs.test.outputs.matrix)}}
10083

10184
steps:
10285
- uses: actions/checkout@v4
@@ -105,7 +88,14 @@ jobs:
10588
with:
10689
node-version: 18
10790
cache: pnpm
91+
- name: Apply Scenario
92+
run: |
93+
pnpm dlx @embroider/try apply ${{ matrix.name }}
94+
10895
- name: Install Dependencies
109-
run: pnpm install
110-
- name: Type checking
111-
run: ./node_modules/.bin/ember try:one --config-path="./config/ember-try-typescript.js" ${{ matrix.typescript-scenario }}
96+
run: pnpm install --no-lockfile
97+
- name: Run Tests
98+
run: |
99+
pnpm test
100+
101+
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: 18
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: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# compiled output
4-
/dist/
5-
/tmp/
2+
dist/
3+
declarations/
64

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

11-
# misc
12-
/.env*
13-
/.pnp*
14-
/.sass-cache
15-
/.eslintcache
16-
/connect.lock
17-
/coverage/
18-
/libpeerconnection.log
19-
/npm-debug.log*
20-
/testem.log
21-
/yarn-error.log
10+
# npm/pnpm/yarn pack output
11+
*.tgz
2212

23-
# ember-try
24-
/.node_modules.ember-try/
25-
/bower.json.ember-try
26-
/npm-shrinkwrap.json.ember-try
27-
/package.json.ember-try
28-
/package-lock.json.ember-try
29-
/yarn.lock.ember-try
13+
# deps & caches
14+
node_modules/
15+
.eslintcache
16+
.prettiercache

.npmignore

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

.prettierignore

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
# unconventional js
22
/blueprints/*/files/
3-
/vendor/
43

54
# compiled output
65
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
6+
/declarations/
127

138
# misc
149
/coverage/
15-
!.*
16-
.eslintcache
17-
.lint-todo/
18-
19-
# ember-try
20-
/.node_modules.ember-try/
21-
/bower.json.ember-try
22-
/npm-shrinkwrap.json.ember-try
23-
/package.json.ember-try
24-
/package-lock.json.ember-try
25-
/yarn.lock.ember-try
10+
pnpm-lock.yaml
11+
config/ember-cli-update.json
12+
*.yaml
13+
*.yml
14+
*.md
15+
*.html

0 commit comments

Comments
 (0)