Skip to content

Commit cbea50f

Browse files
committed
feat: v2
1 parent ad6fd98 commit cbea50f

File tree

118 files changed

+17182
-47529
lines changed

Some content is hidden

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

118 files changed

+17182
-47529
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: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,44 @@ concurrency:
1313

1414
jobs:
1515
test:
16-
name: 'Tests'
16+
name: "Tests"
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
2423
with:
25-
node-version: 14.x
26-
cache: npm
24+
run_install: false
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: pnpm
2729
- name: Install Dependencies
28-
run: npm ci
30+
run: pnpm install
2931
- name: Lint
30-
run: npm run lint
32+
run: pnpm lint
3133
- name: Run Tests
32-
run: npm run test:ember
34+
run: pnpm test
3335

3436
floating:
35-
name: 'Floating Dependencies'
37+
name: "Floating Dependencies"
3638
runs-on: ubuntu-latest
3739
timeout-minutes: 10
3840

3941
steps:
40-
- uses: actions/checkout@v3
41-
- uses: actions/setup-node@v3
42+
- uses: actions/checkout@v4
43+
- uses: pnpm/action-setup@v4
44+
with:
45+
run_install: false
46+
- uses: actions/setup-node@v4
4247
with:
43-
node-version: 14.x
44-
cache: npm
48+
node-version: 18
49+
cache: pnpm
4550
- name: Install Dependencies
46-
run: npm install --no-shrinkwrap
51+
run: pnpm install
4752
- name: Run Tests
48-
run: npm run test:ember
53+
run: pnpm test
4954

5055
try-scenarios:
5156
name: ${{ matrix.try-scenario }}
@@ -57,25 +62,25 @@ jobs:
5762
fail-fast: false
5863
matrix:
5964
try-scenario:
60-
- ember-lts-3.28
61-
- ember-lts-4.4
62-
- ember-lts-4.8
6365
- ember-lts-4.12
66+
- ember-lts-5.4
6467
- ember-release
6568
- ember-beta
6669
- ember-canary
67-
- ember-classic
6870
- embroider-safe
6971
- embroider-optimized
7072

7173
steps:
72-
- uses: actions/checkout@v3
73-
- name: Install Node
74-
uses: actions/setup-node@v3
74+
- uses: actions/checkout@v4
75+
- uses: pnpm/action-setup@v4
76+
with:
77+
run_install: false
78+
- uses: actions/setup-node@v4
7579
with:
76-
node-version: 16.x
77-
cache: npm
80+
node-version: 18
81+
cache: pnpm
7882
- name: Install Dependencies
79-
run: npm ci
83+
run: pnpm install
8084
- name: Run Tests
81-
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
85+
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
86+
working-directory: test-app

.gitignore

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,22 @@
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

2316
# ember-try
2417
/.node_modules.ember-try/
25-
/bower.json.ember-try
26-
/npm-shrinkwrap.json.ember-try
2718
/package.json.ember-try
2819
/package-lock.json.ember-try
2920
/yarn.lock.ember-try
21+
/pnpm-lock.ember-try.yaml
3022

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

198
# ember-try
209
/.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
10+
/pnpm-lock.ember-try.yaml
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.

CONTRIBUTING.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,29 @@
33
## Installation
44

55
- `git clone <repository-url>`
6-
- `cd ember-cli-clipboard`
7-
- `npm install`
6+
- `cd workspace-root`
7+
- `pnpm install`
88

99
## Linting
1010

11-
- `npm run lint`
12-
- `npm run lint:fix`
11+
- `pnpm lint`
12+
- `pnpm lint:fix`
13+
14+
## Building the addon
15+
16+
- `cd addon`
17+
- `pnpm build`
1318

1419
## Running tests
1520

16-
- `ember test` – Runs the test suite on the current Ember version
17-
- `ember test --server` – Runs the test suite in "watch mode"
18-
- `ember try:each` – Runs the test suite against multiple Ember versions
21+
- `cd test-app`
22+
- `pnpm test` – Runs the test suite on the current Ember version
23+
- `pnpm test:watch` – Runs the test suite in "watch mode"
1924

20-
## Running the dummy application
25+
## Running the test application
2126

22-
- `ember serve`
23-
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
27+
- `cd test-app`
28+
- `pnpm start`
29+
- Visit the test application at [http://localhost:4200](http://localhost:4200).
2430

2531
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).

0 commit comments

Comments
 (0)