Skip to content

Commit 233d131

Browse files
authored
Merge pull request #259 from zeppelin/v2-addon
Convert to V2 addon format
2 parents fbd7c4f + 30d04e8 commit 233d131

Some content is hidden

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

77 files changed

+13892
-13519
lines changed

.ember-cli

-9
This file was deleted.

.github/workflows/ci.yml

+32-19
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,41 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: 7
2125
- name: Install Node
22-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v3
2327
with:
24-
node-version: 12.x
25-
cache: npm
28+
node-version: 14.x
29+
cache: pnpm
2630
- name: Install Dependencies
27-
run: npm install --no-shrinkwrap
31+
run: pnpm install --frozen-lockfile
2832
- name: Lint
29-
run: npm run lint
33+
run: pnpm lint
3034
- name: Run Tests
31-
run: npm run test:ember
35+
run: pnpm test
3236

3337
floating:
3438
name: "Floating Dependencies"
3539
runs-on: ubuntu-latest
3640

3741
steps:
38-
- uses: actions/checkout@v2
39-
- uses: actions/setup-node@v2
42+
- uses: actions/checkout@v3
43+
- name: Install pnpm
44+
uses: pnpm/action-setup@v2
45+
with:
46+
version: 7
47+
- uses: actions/setup-node@v3
4048
with:
41-
node-version: 12.x
42-
cache: npm
49+
node-version: 14.x
50+
cache: pnpm
4351
- name: Install Dependencies
44-
run: npm install --no-shrinkwrap
52+
run: pnpm install --no-lockfile
4553
- name: Run Tests
46-
run: npm run test:ember
54+
run: pnpm test
4755

4856
try-scenarios:
4957
name: ${{ matrix.try-scenario }}
@@ -57,22 +65,27 @@ jobs:
5765
- ember-3.8
5866
- ember-lts-3.24
5967
- ember-lts-3.28
68+
- ember-lts-4.4
6069
- ember-release
6170
- ember-beta
6271
- ember-canary
6372
- ember-classic
64-
- ember-default-with-jquery
6573
- embroider-safe
6674
- embroider-optimized
6775

6876
steps:
69-
- uses: actions/checkout@v2
77+
- uses: actions/checkout@v3
78+
- name: Install pnpm
79+
uses: pnpm/action-setup@v2
80+
with:
81+
version: 7
7082
- name: Install Node
71-
uses: actions/setup-node@v2
83+
uses: actions/setup-node@v3
7284
with:
73-
node-version: 12.x
74-
cache: npm
85+
node-version: 14.x
86+
cache: pnpm
7587
- name: Install Dependencies
76-
run: npm install --no-shrinkwrap
88+
run: pnpm install --frozen-lockfile
7789
- name: Run Tests
7890
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
91+
working-directory: test-app

.github/workflows/release.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,27 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
14+
- uses: actions/checkout@v3
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v2
1617
with:
17-
node-version: 14
18-
registry-url: 'https://registry.npmjs.org'
18+
version: 7
19+
- name: Install Node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 14.x
23+
cache: pnpm
24+
25+
- name: Install Dependencies
26+
run: pnpm install --frozen-lockfile
1927

20-
- run: yarn install
21-
- run: yarn build
28+
- name: Build package
29+
- run: pnpm build
2230

2331
- name: auto-dist-tag
24-
run: npx auto-dist-tag@1 --write
32+
run: pnpx auto-dist-tag@1 --write ./ember-click-outside/package.json
2533

26-
- run: npm publish
34+
- name: pnpm publish
35+
run: pnpm --filter ember-click-outside publish
2736
env:
2837
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist/
5-
/tmp/
4+
dist/
65

76
# dependencies
8-
/bower_components/
9-
/node_modules/
7+
node_modules/
108

119
# misc
1210
/.env*
1311
/.pnp*
12+
/.pnpm-debug.log
1413
/.sass-cache
15-
/.eslintcache
14+
.eslintcache
1615
/connect.lock
1716
/coverage/
1817
/libpeerconnection.log
@@ -22,5 +21,5 @@
2221

2322
# ember-try
2423
/.node_modules.ember-try/
25-
/bower.json.ember-try
2624
/package.json.ember-try
25+
/yarn.lock.ember-try

.npmignore

-36
This file was deleted.

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414
/coverage/
1515
!.*
1616
.eslintcache
17+
.lint-todo/
1718

1819
# ember-try
1920
/.node_modules.ember-try/
2021
/bower.json.ember-try
22+
/npm-shrinkwrap.json.ember-try
2123
/package.json.ember-try
24+
/package-lock.json.ember-try
25+
/yarn.lock.ember-try

.release-it.js

-20
This file was deleted.

.travis.yml

-64
This file was deleted.

CONTRIBUTING.md

+16-10
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,28 @@
44

55
* `git clone <repository-url>`
66
* `cd ember-click-outside`
7-
* `yarn install`
7+
* `pnpm install`
88

99
## Linting
1010

11-
* `yarn lint`
12-
* `yarn lint:fix`
11+
* `pnpm lint`
12+
* `pnpm lint:fix`
13+
14+
## Building the addon
15+
16+
* `cd ember-click-outside`
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

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

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Gabor Babicz
3+
Copyright (c) 2023 Gabor Babicz
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

0 commit comments

Comments
 (0)