Skip to content

Commit 20fb294

Browse files
committed
Convert to V2 Addon
1 parent 18acf2c commit 20fb294

35 files changed

+2570
-3246
lines changed

.github/workflows/ci-build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- 'v*'
87
pull_request:
98
workflow_dispatch:
109
schedule:
@@ -19,8 +18,7 @@ jobs:
1918
- uses: actions/checkout@v4
2019
- uses: wyvox/action-setup-pnpm@v3
2120
# type checking requires build
22-
- run: pnpm prepack
23-
working-directory: addon
21+
- run: pnpm build
2422
- run: pnpm lint
2523

2624
test:

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+411
Large diffs are not rendered by default.

addon/.ember-cli

-9
This file was deleted.

addon/.eslintignore

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
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-
17-
# ember-try
18-
/.node_modules.ember-try/
19-
/bower.json.ember-try
20-
/package.json.ember-try

addon/.eslintrc.cjs

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
'use strict';
2+
3+
module.exports = {
4+
root: true,
5+
parser: '@typescript-eslint/parser',
6+
parserOptions: {
7+
ecmaVersion: 2024,
8+
sourceType: 'module',
9+
},
10+
plugins: ['ember', 'prettier', '@typescript-eslint'],
11+
extends: [
12+
'eslint:recommended',
13+
'plugin:ember/recommended',
14+
'prettier',
15+
'plugin:@typescript-eslint/eslint-recommended',
16+
],
17+
env: {
18+
browser: true,
19+
node: false,
20+
},
21+
rules: {
22+
'prettier/prettier': 'error',
23+
'no-unused-vars': 'off',
24+
'@typescript-eslint/no-unused-vars': 'error',
25+
'prefer-const': 'off',
26+
},
27+
overrides: [
28+
// node files
29+
{
30+
files: ['*.cjs'],
31+
parserOptions: {
32+
sourceType: 'script',
33+
ecmaVersion: 2022,
34+
},
35+
env: {
36+
browser: false,
37+
node: true,
38+
},
39+
plugins: ['n'],
40+
extends: ['plugin:n/recommended'],
41+
},
42+
],
43+
};

addon/.eslintrc.js

-72
This file was deleted.

addon/.gitignore

+3-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
3-
# compiled output
1+
/README.md
2+
/LICENSE.md
43
/dist/
5-
/tmp/
6-
7-
# dependencies
8-
/bower_components/
9-
/node_modules/
10-
11-
# misc
12-
/.env*
13-
/.pnp*
14-
/.sass-cache
15-
/connect.lock
16-
/coverage/
17-
/libpeerconnection.log
18-
/npm-debug.log*
19-
/testem.log
20-
/yarn-error.log
21-
22-
# ember-try
23-
/.node_modules.ember-try/
24-
/bower.json.ember-try
25-
/package.json.ember-try
26-
/addon/**/*.js
27-
28-
types/*.d.ts
29-
*.d.ts
30-
!/types/**/*.d.ts
4+
declarations/
315
*.tgz

addon/.npmignore

-41
This file was deleted.

addon/.prettierignore

+4-25
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
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/
12-
13-
# misc
14-
/coverage/
15-
!.*
16-
.eslintcache
17-
18-
# ember-try
19-
/.node_modules.ember-try/
20-
/bower.json.ember-try
21-
/package.json.ember-try
22-
23-
addon/**/*.js
24-
**/*.d.ts
1+
dist/
2+
declarations/
3+
node_modules/
254
*.md
26-
*.html
5+
.eslintcache

addon/.watchmanconfig

-3
This file was deleted.

addon/RELEASE.md

-62
This file was deleted.

addon/addon-main.cjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
const { addonV1Shim } = require('@embroider/addon-shim');
4+
5+
module.exports = addonV1Shim(__dirname);

addon/babel.config.cjs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: [
5+
['@babel/plugin-transform-typescript', { allowDeclareFields: true }],
6+
['module:decorator-transforms', { runtime: { import: 'decorator-transforms/runtime' } }],
7+
],
8+
};

addon/ember-cli-build.js

-24
This file was deleted.

addon/index.js

-5
This file was deleted.

0 commit comments

Comments
 (0)