Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert addon to v2 format #622

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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