Skip to content

Commit cefbc13

Browse files
committed
feat: v2
1 parent 09ad9ad commit cefbc13

File tree

182 files changed

+21286
-48060
lines changed

Some content is hidden

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

182 files changed

+21286
-48060
lines changed

.ember-cli

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

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 57 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,70 +12,88 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
test:
16-
name: 'Tests'
15+
lint:
16+
name: "Lints"
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 10
1919

2020
steps:
21-
- uses: actions/checkout@v3
22-
- name: Install Node
23-
uses: actions/setup-node@v3
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
23+
- uses: actions/setup-node@v4
2424
with:
25-
node-version: 14.x
26-
cache: npm
25+
node-version-file: "package.json"
26+
cache: pnpm
2727
- name: Install Dependencies
28-
run: npm ci
28+
run: pnpm install --frozen-lockfile
2929
- name: Lint
30-
run: npm run lint
30+
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
3148
- name: Run Tests
32-
run: npm run 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+
3355
3456
floating:
35-
name: 'Floating Dependencies'
57+
name: "Floating Dependencies"
3658
runs-on: ubuntu-latest
3759
timeout-minutes: 10
3860

3961
steps:
40-
- uses: actions/checkout@v3
41-
- uses: actions/setup-node@v3
62+
- uses: actions/checkout@v4
63+
- uses: pnpm/action-setup@v4
64+
- uses: actions/setup-node@v4
4265
with:
43-
node-version: 14.x
44-
cache: npm
66+
node-version-file: "package.json"
67+
cache: pnpm
4568
- name: Install Dependencies
46-
run: npm install --no-shrinkwrap
69+
run: pnpm install --no-lockfile
4770
- name: Run Tests
48-
run: npm run test:ember
71+
run: pnpm -F ember-cli-clipboard test
4972

5073
try-scenarios:
51-
name: ${{ matrix.try-scenario }}
74+
name: ${{ matrix.name }}
5275
runs-on: ubuntu-latest
53-
needs: 'test'
76+
needs: "test"
5477
timeout-minutes: 10
55-
5678
strategy:
5779
fail-fast: false
58-
matrix:
59-
try-scenario:
60-
- ember-lts-3.28
61-
- ember-lts-4.4
62-
- ember-lts-4.8
63-
- ember-lts-4.12
64-
- ember-release
65-
- ember-beta
66-
- ember-canary
67-
- ember-classic
68-
- embroider-safe
69-
- embroider-optimized
80+
matrix: ${{fromJson(needs.test.outputs.matrix)}}
7081

7182
steps:
72-
- uses: actions/checkout@v3
73-
- name: Install Node
74-
uses: actions/setup-node@v3
83+
- uses: actions/checkout@v4
84+
- uses: pnpm/action-setup@v4
85+
- uses: actions/setup-node@v4
7586
with:
76-
node-version: 16.x
77-
cache: npm
87+
node-version-file: "package.json"
88+
cache: pnpm
89+
- name: Apply Scenario
90+
run: |
91+
pnpm dlx @embroider/try apply ${{ matrix.name }}
92+
7893
- name: Install Dependencies
79-
run: npm ci
94+
run: pnpm install --no-lockfile
8095
- name: Run Tests
81-
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: 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: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
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
7+
.env*
8+
.pnp*
9+
.pnpm-debug.log
10+
.sass-cache
11+
.eslintcache
12+
coverage/
13+
npm-debug.log*
14+
yarn-error.log
2215

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
3016

31-
# broccoli-debug
32-
/DEBUG/

.npmignore

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

.npmrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
verify-deps-before-run=install # always verify deps before running any scripts

.prettierignore

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
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
176
.lint-todo/
187

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
26-
27-
# ignore due to block indent issues for code samples
28-
/tests/dummy/app/templates/application.hbs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

33
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
45
singleQuote: true,
56
};

.watchmanconfig

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

0 commit comments

Comments
 (0)