Skip to content

Commit 40df81d

Browse files
Merge pull request #390 from aklkv/feat/v2
Breaking: Migrate addon to v2 format
2 parents a23d94b + 2ff88c9 commit 40df81d

File tree

100 files changed

+6733
-7877
lines changed

Some content is hidden

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

100 files changed

+6733
-7877
lines changed

.ember-cli

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

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 45 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,79 @@
1-
name: Run tests
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
77
pull_request: {}
88

9+
concurrency:
10+
group: ci-${{ github.head_ref || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
test:
15+
name: "Tests"
1116
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1218

1319
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
16-
17-
- name: Set up Node.js
18-
uses: actions/setup-node@v3
20+
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v4
22+
- uses: actions/setup-node@v4
1923
with:
20-
node-version: '18.x'
21-
22-
- name: Install pnpm
23-
run: npm install -g pnpm
24+
node-version: 18
25+
cache: pnpm
26+
- name: Install Dependencies
27+
run: pnpm install --frozen-lockfile
28+
- name: Lint
29+
run: pnpm lint
30+
- name: Run Tests
31+
run: pnpm test
2432

25-
- name: Install dependencies
26-
run: pnpm i
33+
floating:
34+
name: "Floating Dependencies"
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 10
2737

28-
- name: Run tests
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: pnpm/action-setup@v4
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 18
44+
cache: pnpm
45+
- name: Install Dependencies
46+
run: pnpm install --no-lockfile
47+
- name: Run Tests
2948
run: pnpm test
3049

3150
try-scenarios:
3251
name: ${{ matrix.try-scenario }}
3352
runs-on: ubuntu-latest
3453
needs: 'test'
54+
timeout-minutes: 10
3555

3656
strategy:
3757
fail-fast: false
3858
matrix:
3959
try-scenario:
40-
- ember-lts-3.28
4160
- ember-lts-4.12
61+
- ember-lts-5.4
4262
- ember-release
63+
- ember-beta
64+
- ember-canary
4365
- embroider-safe
4466
- embroider-optimized
4567

4668
steps:
47-
- name: Checkout repository
48-
uses: actions/checkout@v4
49-
50-
- name: Set up Node.js
51-
uses: actions/setup-node@v3
69+
- uses: actions/checkout@v4
70+
- uses: pnpm/action-setup@v4
71+
- uses: actions/setup-node@v4
5272
with:
53-
node-version: '18.x'
54-
55-
- name: Install pnpm
56-
run: npm install -g pnpm
57-
58-
- name: Install dependencies
59-
run: pnpm i
60-
73+
node-version: 18
74+
cache: pnpm
75+
- name: Install Dependencies
76+
run: pnpm install --frozen-lockfile
6177
- name: Run Tests
62-
run: pnpm ember try:one ${{ matrix.try-scenario }}
78+
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
79+
working-directory: test-app

.github/workflows/push-dist.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
13+
jobs:
14+
push-dist:
15+
name: Push dist
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
cache: pnpm
26+
- name: Install Dependencies
27+
run: pnpm install --frozen-lockfile
28+
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
29+
with:
30+
branch: dist
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
working-directory: 'addon'

.gitignore

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
4-
/dist/
5-
/tmp/
6-
73
# dependencies
8-
/bower_components/
9-
/node_modules/
4+
node_modules/
105

116
# 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
22-
23-
# ember-try
24-
/.node_modules.ember-try/
25-
/bower.json.ember-try
26-
/package.json.ember-try
27-
/yarn.lock.ember-try
7+
.env*
8+
.pnpm-debug.log
9+
npm-debug.log*
10+
yarn-error.log

.npmignore

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

.npmrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
####################
2+
# super strict mode
3+
####################
4+
auto-install-peers=false
5+
strict-peer-dependents=true
6+
resolve-peers-from-workspace-root=false
7+
8+
################
9+
# Optimizations
10+
################
11+
# Less strict, but required for tooling to not barf on duplicate peer trees.
12+
# (many libraries declare the same peers, which resolve to the same
13+
# versions)
14+
dedupe-peer-dependents=true
15+
public-hoist-pattern[]=ember-source
16+
17+
################
18+
# Compatibility
19+
################
20+
# highest is what everyone is used to, but
21+
# not ensuring folks are actually compatible with declared ranges.
22+
resolution-mode=highest
23+
24+
################
25+
# Misc
26+
################
27+
# uncomment when https://github.com/pnpm/pnpm/pull/8957 is released
28+
#verify-deps-before-run=install # always verify deps before running any scripts

.prettierignore

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
# unconventional js
2-
/blueprints/*/files/
3-
/vendor/
4-
5-
# compiled output
6-
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
1+
# Prettier is also run from each package, so the ignores here
2+
# protect against files that may not be within a package
123

134
# misc
14-
/coverage/
155
!.*
16-
.eslintcache
6+
.lint-todo/
177

188
# ember-try
199
/.node_modules.ember-try/
20-
/bower.json.ember-try
21-
/package.json.ember-try
10+
/pnpm-lock.ember-try.yaml

.prettierrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
5+
singleQuote: true,
6+
};

0 commit comments

Comments
 (0)