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

Converted to v2 addon format #447

Merged
merged 4 commits into from
Apr 8, 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
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
package-location:
- 'ember-render-helpers'
- 'test-app'
timeout-minutes: 5
steps:
- name: Check out a copy of the repo
Expand All @@ -37,10 +42,16 @@ jobs:

- name: Lint
run: pnpm lint
working-directory: ${{ matrix.package-location }}

test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
package-location:
- 'ember-render-helpers'
- 'test-app'
timeout-minutes: 5
steps:
- name: Check out a copy of the repo
Expand All @@ -62,6 +73,7 @@ jobs:

- name: Test
run: pnpm test
working-directory: ${{ matrix.package-location }}

test-compatibility:
name: Test compatibility
Expand Down Expand Up @@ -99,3 +111,4 @@ jobs:

- name: Test
run: pnpm test:ember-compatibility ${{ matrix.scenario }} --- pnpm test
working-directory: 'test-app'
36 changes: 5 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,8 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist/
/tmp/

# dependencies
/node_modules/
node_modules/

# misc
/.env*
/.pnp*
/.DS_Store
/.sass-cache
/.eslintcache
/.stylelintcache
/connect.lock
/coverage/
/libpeerconnection.log
/npm-debug.log*
/testem.log
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/pnpm-lock.yaml.ember-try
/yarn.lock.ember-try

# broccoli-debug
/DEBUG/
.DS_Store
.env*
.eslintcache
.pnpm-debug.log
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019
Copyright (c) 2024

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:

Expand Down
1 change: 0 additions & 1 deletion app/helpers/did-insert-helper.js

This file was deleted.

1 change: 0 additions & 1 deletion app/helpers/did-update-helper.js

This file was deleted.

1 change: 0 additions & 1 deletion app/helpers/will-destroy-helper.js

This file was deleted.

25 changes: 0 additions & 25 deletions ember-cli-build.js

This file was deleted.

12 changes: 12 additions & 0 deletions ember-render-helpers/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# unconventional js
/blueprints/*/files/

# compiled output
/declarations/
/dist/

# misc
/coverage/
!.*
.*/

74 changes: 74 additions & 0 deletions ember-render-helpers/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
'use strict';

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'ember',
'@typescript-eslint',
'simple-import-sort',
'typescript-sort-keys',
],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
'plugin:typescript-sort-keys/recommended',
],
env: {
browser: true,
},
rules: {
curly: 'error',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
},
settings: {
'import/resolver': {
node: {
extensions: ['.gjs', '.gts', '.js', '.ts'],
},
typescript: true,
},
},
overrides: [
// TypeScript and JavaScript files
{
files: ['**/*.{gjs,gts,js,ts}'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'import/no-duplicates': 'error',
'import/no-unresolved': [
'error',
{ ignore: ['^@ember', '^dummy/', '^ember', 'fetch'] },
],
},
},
// Node files (v2 addon)
{
files: [
'./.eslintrc.js',
'./.prettierrc.js',
'./.stylelintrc.js',
'./.template-lintrc.js',
'./addon-main.cjs',
'./blueprints/*/index.js',
'./rollup.config.mjs',
],
env: {
browser: false,
node: true,
},
extends: ['plugin:n/recommended'],
},
],
};
12 changes: 12 additions & 0 deletions ember-render-helpers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# compiled output
/declarations/
/dist/

# dependencies
/node_modules/

# misc
/.eslintcache

# npm/pnpm/yarn pack output
*.tgz
9 changes: 9 additions & 0 deletions ember-render-helpers/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# unconventional js
/blueprints/*/files/

# compiled output
/declarations/
/dist/

# misc
/coverage/
File renamed without changes.
6 changes: 6 additions & 0 deletions ember-render-helpers/.template-lintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = {
plugins: ['ember-template-lint-plugin-prettier'],
extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
};
9 changes: 9 additions & 0 deletions ember-render-helpers/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2024

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.
Loading