Skip to content

Commit

Permalink
Merge pull request #622 from buschtoens/v2-addon
Browse files Browse the repository at this point in the history
Convert addon to v2 format
  • Loading branch information
SergeAstapov authored Jul 9, 2024
2 parents ef5a607 + 1de1028 commit 01f8a60
Show file tree
Hide file tree
Showing 30 changed files with 1,092 additions and 342 deletions.
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

## Linting

Inside any of the packages you can run:

- `pnpm lint`
- `pnpm lint:fix`

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
## Compatibility

- Ember.js v4.12 or above
- Ember CLI v4.12 or above
- Embroider or ember-auto-import v2

## Installation

Expand Down
20 changes: 0 additions & 20 deletions ember-lazy-mount/.editorconfig

This file was deleted.

7 changes: 0 additions & 7 deletions ember-lazy-mount/.ember-cli

This file was deleted.

7 changes: 1 addition & 6 deletions ember-lazy-mount/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
/blueprints/*/files/

# compiled output
/declarations/
/dist/
/declarations/

# misc
/coverage/
!.*
.*/

# ember-try
/.node_modules.ember-try/
70 changes: 70 additions & 0 deletions ember-lazy-mount/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
'use strict';

module.exports = {
root: true,
// Only use overrides
// https://github.com/ember-cli/eslint-plugin-ember?tab=readme-ov-file#gtsgjs
overrides: [
{
files: ['**/*.js'],
env: { browser: true },
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
babelOptions: {
root: __dirname,
},
},
plugins: ['ember', 'import'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
rules: {
// require relative imports use full extensions
'import/extensions': ['error', 'always', { ignorePackages: true }],
// Add any custom rules here
},
},
{
files: ['**/*.gjs'],
parser: 'ember-eslint-parser',
plugins: ['ember', 'import'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:ember/recommended-gjs',
'plugin:prettier/recommended',
],
rules: {
// require relative imports use full extensions
'import/extensions': ['error', 'always', { ignorePackages: true }],
// Add any custom rules here
},
},
// node files
{
files: [
'./.eslintrc.cjs',
'./.prettierrc.cjs',
'./.template-lintrc.cjs',
'./addon-main.cjs',
],
parserOptions: {
sourceType: 'script',
},
env: {
browser: false,
node: true,
},
plugins: ['n'],
extends: [
'eslint:recommended',
'plugin:n/recommended',
'plugin:prettier/recommended',
],
},
],
};
56 changes: 0 additions & 56 deletions ember-lazy-mount/.eslintrc.js

This file was deleted.

37 changes: 0 additions & 37 deletions ember-lazy-mount/.npmignore

This file was deleted.

9 changes: 9 additions & 0 deletions ember-lazy-mount/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# unconventional js
/blueprints/*/files/

# compiled output
/dist/
/declarations/

# misc
/coverage/
3 changes: 0 additions & 3 deletions ember-lazy-mount/.prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions ember-lazy-mount/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = {
plugins: ['prettier-plugin-ember-template-tag'],
singleQuote: true,
};
8 changes: 0 additions & 8 deletions ember-lazy-mount/.stylelintignore

This file was deleted.

5 changes: 0 additions & 5 deletions ember-lazy-mount/.stylelintrc.js

This file was deleted.

File renamed without changes.
3 changes: 0 additions & 3 deletions ember-lazy-mount/.watchmanconfig

This file was deleted.

4 changes: 4 additions & 0 deletions ember-lazy-mount/addon-main.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

const { addonV1Shim } = require('@embroider/addon-shim');
module.exports = addonV1Shim(__dirname);
1 change: 0 additions & 1 deletion ember-lazy-mount/app/components/lazy-mount.js

This file was deleted.

1 change: 0 additions & 1 deletion ember-lazy-mount/app/services/engine-loader.js

This file was deleted.

10 changes: 10 additions & 0 deletions ember-lazy-mount/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
"@embroider/addon-dev/template-colocation-plugin",
["babel-plugin-ember-template-compilation", {
"targetFormat": "hbs",
"transforms": []
}],
["module:decorator-transforms", { "runtime": { "import": "decorator-transforms/runtime" } }]
]
}
11 changes: 0 additions & 11 deletions ember-lazy-mount/ember-cli-build.js

This file was deleted.

10 changes: 0 additions & 10 deletions ember-lazy-mount/index.js

This file was deleted.

Loading

0 comments on commit 01f8a60

Please sign in to comment.