-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync with embroider-addon blueprint and use decorator-transforms (#94)
- Loading branch information
1 parent
6f8e522
commit 16410c3
Showing
43 changed files
with
3,164 additions
and
2,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.hbs] | ||
insert_final_newline = false | ||
|
||
[*.{diff,md}] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Because this library needs to be built, | ||
# we can't easily point package.json files at the git repo for easy cross-repo testing. | ||
# | ||
# This workflow brings back that capability by placing the compiled assets on a "dist" branch | ||
# (configurable via the "branch" option below) | ||
name: Push dist | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
push-dist: | ||
name: Push dist | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
- uses: kategengler/[email protected] | ||
with: | ||
branch: dist | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: 'ember-engines-router-service' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"schemaVersion": "1.0.0", | ||
"projectName": "ember-engines-router-service", | ||
"packages": [ | ||
{ | ||
"name": "@embroider/addon-blueprint", | ||
"version": "2.17.0", | ||
"blueprints": [ | ||
{ | ||
"name": "@embroider/addon-blueprint", | ||
"isBaseBlueprint": true, | ||
"options": [ | ||
"--ci-provider=github", | ||
"--release-it", | ||
"--yarn" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
|
||
# dependencies | ||
/node_modules/ | ||
/declarations/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
], | ||
}, | ||
], | ||
}; |
Oops, something went wrong.