-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from BBVAEngineering/update-to-ember-3.26
Update to ember 3.28
- Loading branch information
Showing
44 changed files
with
7,297 additions
and
4,219 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'] | ||
extends: ['@commitlint/config-conventional'], | ||
}; |
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 |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
|
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,60 +1,54 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
legacyDecorators: true | ||
} | ||
}, | ||
plugins: [ | ||
'ember', | ||
'bbva' | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'eslint-config-bbva' | ||
], | ||
env: { | ||
browser: true | ||
}, | ||
rules: { | ||
'ember/no-jquery': 'error' | ||
}, | ||
overrides: [{ | ||
files: [ | ||
'.huskyrc.js', | ||
'.commitlintrc.js', | ||
'.eslintrc.js', | ||
'.template-lintrc.js', | ||
'ember-cli-build.js', | ||
'index.js', | ||
'testem.js', | ||
'blueprints/*/index.js', | ||
'config/**/*.js', | ||
'tests/dummy/config/**/*.js' | ||
], | ||
excludedFiles: [ | ||
'addon/**', | ||
'addon-test-support/**', | ||
'app/**', | ||
'tests/dummy/app/**' | ||
], | ||
parserOptions: { | ||
sourceType: 'script' | ||
}, | ||
env: { | ||
browser: false, | ||
node: true | ||
}, | ||
plugins: ['node'], | ||
extends: ['plugin:node/recommended'], | ||
rules: { | ||
'no-process-env': 0 | ||
} | ||
}] | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
legacyDecorators: true, | ||
}, | ||
}, | ||
plugins: ['ember'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
env: { | ||
browser: true, | ||
}, | ||
rules: {}, | ||
overrides: [ | ||
// node files | ||
{ | ||
files: [ | ||
'./.commitlintrc.js', | ||
'./.eslintrc.js', | ||
'./.prettierrc.js', | ||
'./.template-lintrc.js', | ||
'./ember-cli-build.js', | ||
'./index.js', | ||
'./testem.js', | ||
'./blueprints/*/index.js', | ||
'./config/**/*.js', | ||
'./tests/dummy/config/**/*.js', | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
plugins: ['node'], | ||
extends: ['plugin:node/recommended'], | ||
}, | ||
{ | ||
// Test files: | ||
files: ['tests/**/*-test.{js,ts}'], | ||
extends: ['plugin:qunit/recommended'], | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
|
@@ -5,38 +5,79 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
cache: yarn | ||
- name: Install dependencies | ||
run: | | ||
yarn install | ||
run: yarn install | ||
- name: Test | ||
run: | | ||
yarn lint | ||
yarn test | ||
- uses: codecov/codecov-action@v1 | ||
run: yarn test | ||
- name: Release dry-run | ||
run: yarn test:release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Upload codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage/lcov.info | ||
fail_ci_if_error: true | ||
regression: | ||
if: github.ref != 'refs/heads/master' | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: Regression test - ${{ matrix.ember_try_scenario }} - Experimental ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
ember_try_scenario: | ||
- ember-lts-3.20 | ||
- ember-lts-3.24 | ||
- ember-release | ||
- ember-beta | ||
- ember-default-with-jquery | ||
- ember-classic | ||
- embroider-safe | ||
- embroider-optimized | ||
experimental: [false] | ||
include: | ||
- ember_try_scenario: ember-canary | ||
experimental: true | ||
continue-on-error: ${{ matrix.experimental }} | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Test | ||
run: yarn ember try:one ${{ matrix.ember_try_scenario }} | ||
release: | ||
if: github.ref == 'refs/heads/master' | ||
needs: test | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
name: Release | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN }} | ||
- uses: actions/setup-node@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: "https://registry.npmjs.org" | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Configure CI Git User | ||
run: | | ||
git config --global user.email [email protected] | ||
|
@@ -46,6 +87,7 @@ jobs: | |
- name: Release | ||
run: yarn semantic-release | ||
env: | ||
HUSKY: 0 | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit "$1" |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn test |
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
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,24 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
|
||
# misc | ||
/coverage/ | ||
/.nyc_output/ | ||
!.* | ||
.eslintcache | ||
*.html | ||
*.hbs | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
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,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
singleQuote: true, | ||
}; |
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,26 +1,24 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'octane', | ||
rules: { | ||
'no-bare-strings': true, | ||
'block-indentation': 'tab', | ||
'no-html-comments': true, | ||
'no-nested-interactive': true, | ||
'self-closing-void-elements': true, | ||
'no-triple-curlies': true, | ||
'deprecated-each-syntax': true, | ||
'link-rel-noopener': true, | ||
'no-invalid-interactive': true, | ||
'require-valid-alt-text': true, | ||
'style-concatenation': true, | ||
'deprecated-inline-view-helper': true, | ||
'no-unused-block-params': true, | ||
'inline-link-to': true, | ||
'no-inline-styles': true, | ||
'simple-unless': false | ||
}, | ||
ignore: [ | ||
'tests/dummy/**' | ||
] | ||
extends: 'recommended', | ||
rules: { | ||
'no-bare-strings': true, | ||
'block-indentation': 'tab', | ||
'no-html-comments': true, | ||
'no-nested-interactive': true, | ||
'self-closing-void-elements': true, | ||
'no-triple-curlies': true, | ||
'deprecated-each-syntax': true, | ||
'link-rel-noopener': true, | ||
'no-invalid-interactive': true, | ||
'require-valid-alt-text': true, | ||
'style-concatenation': true, | ||
'deprecated-inline-view-helper': true, | ||
'no-unused-block-params': true, | ||
'inline-link-to': true, | ||
'no-inline-styles': true, | ||
'simple-unless': false, | ||
}, | ||
ignore: ['tests/dummy/**'], | ||
}; |
Oops, something went wrong.