Skip to content

Commit 8c13644

Browse files
committed
Merge pull request #18 from NullVoxPopuli/v2-addon
Convert to v2 addon
1 parent 152047c commit 8c13644

Some content is hidden

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

57 files changed

+9757
-12548
lines changed

.ember-cli

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

.eslintignore

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

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 51 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ember rAF Scheduler CI
1+
name: CI
22

33
on:
44
push:
@@ -12,78 +12,83 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
lint:
16+
name: "Lints"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 18
26+
cache: pnpm
27+
- name: Install Dependencies
28+
run: pnpm install --frozen-lockfile
29+
- name: Lint
30+
run: pnpm lint
31+
1532
test:
1633
name: "Tests"
1734
runs-on: ubuntu-latest
1835
timeout-minutes: 10
36+
outputs:
37+
matrix: ${{ steps.set-matrix.outputs.matrix }}
1938

2039
steps:
21-
- uses: actions/checkout@v3
22-
- name: Use Volta
23-
uses: volta-cli/action@v4
24-
- name: Node Modules Cache
25-
uses: actions/cache@v3
40+
- uses: actions/checkout@v4
41+
- uses: pnpm/action-setup@v4
42+
- uses: actions/setup-node@v4
2643
with:
27-
path: '**/node_modules'
28-
key: ci-yarn-${{ hashFiles('yarn.lock') }}
44+
node-version: 18
45+
cache: pnpm
2946
- name: Install Dependencies
30-
run: yarn install --frozen-lockfile
31-
- name: Lint
32-
run: yarn lint
47+
run: pnpm install --frozen-lockfile
3348
- name: Run Tests
34-
run: yarn 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
3554
3655
floating:
3756
name: "Floating Dependencies"
3857
runs-on: ubuntu-latest
3958
timeout-minutes: 10
4059

4160
steps:
42-
- uses: actions/checkout@v3
43-
- name: Use Volta
44-
uses: volta-cli/action@v4
45-
- name: Node Modules Cache
46-
uses: actions/cache@v3
61+
- uses: actions/checkout@v4
62+
- uses: pnpm/action-setup@v4
63+
- uses: actions/setup-node@v4
4764
with:
48-
path: '**/node_modules'
49-
key: ci-yarn-${{ hashFiles('yarn.lock') }}
65+
node-version: 18
66+
cache: pnpm
5067
- name: Install Dependencies
51-
run: yarn install --no-lockfile
68+
run: pnpm install --no-lockfile
5269
- name: Run Tests
53-
run: yarn test:ember
70+
run: pnpm test
5471

5572
try-scenarios:
56-
name: ${{ matrix.try-scenario }}
73+
name: ${{ matrix.name }}
5774
runs-on: ubuntu-latest
5875
needs: "test"
5976
timeout-minutes: 10
60-
6177
strategy:
6278
fail-fast: false
63-
matrix:
64-
try-scenario:
65-
- ember-lts-3.12
66-
- ember-lts-3.16
67-
- ember-lts-3.28
68-
- ember-lts-4.4
69-
- ember-lts-4.12
70-
- ember-5.2
71-
- ember-release
72-
- ember-beta
73-
- ember-canary
74-
- embroider-safe
75-
- embroider-optimized
79+
matrix: ${{fromJson(needs.test.outputs.matrix)}}
7680

7781
steps:
78-
- uses: actions/checkout@v3
79-
- name: Use Volta
80-
uses: volta-cli/action@v4
81-
- name: Node Modules Cache
82-
uses: actions/cache@v3
82+
- uses: actions/checkout@v4
83+
- uses: pnpm/action-setup@v4
84+
- uses: actions/setup-node@v4
8385
with:
84-
path: '**/node_modules'
85-
key: ci-yarn-${{ hashFiles('yarn.lock') }}
86-
- name: Install
87-
run: yarn install --frozen-lockfile
86+
node-version: 18
87+
cache: pnpm
88+
- name: Apply Scenario
89+
run: pnpm dlx @embroider/try apply ${{ matrix.name }}
90+
- name: Install Dependencies
91+
run: pnpm install --no-lockfile
8892
- name: Run Tests
89-
run: node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
93+
run: pnpm test
94+
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 & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# compiled output
4-
/dist/
5-
/tmp/
6-
7-
# dependencies
8-
/bower_components/
9-
/node_modules/
2+
dist/
3+
declarations/
104

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
5+
# from scenarios
6+
tmp/
7+
config/optional-features.json
8+
ember-cli-build.js
229

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
10+
# npm/pnpm/yarn pack output
11+
*.tgz
3012

31-
# broccoli-debug
32-
/DEBUG/
13+
# deps & caches
14+
node_modules/
15+
.eslintcache
16+
.prettiercache

.npmignore

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

.prettierignore

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
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

0 commit comments

Comments
 (0)