-
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.
feat(internal): convert to the Addon@v2 format
This addon is now a native npm package, and means consuming apps will have less work to do when compiling this addon (because it's already compiled)
- Loading branch information
1 parent
bb95c4b
commit 54fca76
Showing
81 changed files
with
3,863 additions
and
2,224 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
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 |
---|---|---|
@@ -1,31 +1,54 @@ | ||
name: Types | ||
|
||
# based on: | ||
# - https://github.com/NullVoxPopuli/eslint-plugin-decorator-position/blob/master/.github/workflows/lint.yml | ||
# - https://github.com/NullVoxPopuli/ember-autostash-modifier/blob/master/.github/workflows/ci.yml | ||
# - https://github.com/emberjs/ember-test-helpers/blob/master/.github/workflows/ci-build.yml | ||
name: "Types" | ||
on: | ||
pull_request: | ||
push: | ||
# filtering branches here prevents duplicate builds from pull_request and push | ||
branches: | ||
- main | ||
- master | ||
|
||
env: | ||
CI: true | ||
CACHE_PATH: '**/node_modules' | ||
LIBRARY_DIR: './ember-statechart-component' | ||
TEST_DIR: './testing/ember-app' | ||
|
||
jobs: | ||
types: | ||
install_dependencies: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
name: Type Checking | ||
name: Install Dependencies | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: volta-cli/action@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: volta-cli/action@v1 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_PATH }} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: "${{ runner.os }}-modules-" | ||
- run: yarn install | ||
|
||
- run: yarn install | ||
types: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
name: "Type Correctness" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
needs: [install_dependencies] | ||
|
||
- name: Type Checking | ||
run: yarn prepack | ||
# run: npm run prepack | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: volta-cli/action@v1 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CACHE_PATH }} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- run: yarn install | ||
- run: | | ||
cd ${{ env.LIBRARY_DIR }} | ||
yarn build:types | ||
# - run: npm run prepack | ||
# - run: yarn tsc --build | ||
# - run: npm run prepack | ||
# - run: npm exec tsc --build |
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 was deleted.
Oops, something went wrong.
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
4 changes: 0 additions & 4 deletions
4
app/instance-initializers/ember-statechart-component-setup.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist/ | ||
node_modules/ |
File renamed without changes.
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,2 @@ | ||
declarations/ | ||
dist/ |
File renamed without changes.
Oops, something went wrong.