Skip to content

Commit 0047da9

Browse files
authored
Merge pull request #1125 from andreyfel/update-ember
Update ember to 5.5, drop Nodes below 18, drop Mocha support
2 parents 1ee3a8f + c954188 commit 0047da9

File tree

88 files changed

+6043
-7675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+6043
-7675
lines changed

.bowerrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.ember-cli

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
/**
3-
Ember CLI sends analytics information by default. The data is completely
4-
anonymous, but there are times when you might want to disable this behavior.
5-
6-
Setting `disableAnalytics` to true will prevent any data from being sent.
3+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
4+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
75
*/
8-
"disableAnalytics": false
6+
"isTypeScriptProject": false
97
}

.eslintignore

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
# unconventional js
22
/blueprints/*/files/
3-
/vendor/
43

54
# compiled output
65
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
126

137
# misc
148
/coverage/
159
!.*
10+
.*/
1611

1712
# ember-try
1813
/.node_modules.ember-try/
19-
/bower.json.ember-try
20-
/package.json.ember-try

.eslintrc.js

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
module.exports = {
44
root: true,
5-
parser: 'babel-eslint',
5+
parser: '@babel/eslint-parser',
66
parserOptions: {
7-
ecmaVersion: 2018,
7+
ecmaVersion: 'latest',
88
sourceType: 'module',
9-
ecmaFeatures: {
10-
legacyDecorators: true,
9+
requireConfigFile: false,
10+
babelOptions: {
11+
plugins: [
12+
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
13+
],
1114
},
1215
},
1316
plugins: ['ember'],
@@ -24,25 +27,20 @@ module.exports = {
2427
// node files
2528
{
2629
files: [
27-
'.eslintrc.js',
28-
'.prettierrc.js',
29-
'.template-lintrc.js',
30-
'ember-cli-build.js',
31-
'index.js',
32-
'testem.js',
33-
'testem.multiple-test-page.js',
34-
'testem.no-test-page.js',
35-
'testem.simple-test-page.js',
36-
'blueprints/*/index.js',
37-
'config/**/*.js',
38-
'tests/dummy/config/**/*.js',
39-
'lib/**/*',
40-
],
41-
excludedFiles: [
42-
'addon/**',
43-
'addon-test-support/**',
44-
'app/**',
45-
'tests/dummy/app/**',
30+
'./.eslintrc.js',
31+
'./.prettierrc.js',
32+
'./.stylelintrc.js',
33+
'./.template-lintrc.js',
34+
'./ember-cli-build.js',
35+
'./index.js',
36+
'./testem.js',
37+
'./testem.multiple-test-page.js',
38+
'./testem.no-test-page.js',
39+
'./testem.simple-test-page.js',
40+
'./blueprints/*/index.js',
41+
'./config/**/*.js',
42+
'./tests/dummy/config/**/*.js',
43+
'./lib/**/*',
4644
],
4745
parserOptions: {
4846
sourceType: 'script',
@@ -51,8 +49,7 @@ module.exports = {
5149
browser: false,
5250
node: true,
5351
},
54-
plugins: ['node'],
55-
extends: ['plugin:node/recommended'],
52+
extends: ['plugin:n/recommended'],
5653
},
5754
{
5855
files: ['node-tests/**/*'],
@@ -62,7 +59,6 @@ module.exports = {
6259
},
6360
env: {
6461
node: true,
65-
mocha: true,
6662
},
6763
rules: {
6864
'ember/no-test-support-import': 'off',

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ on:
66
pull_request:
77
branches: [ master ]
88

9+
concurrency:
10+
group: ci-${{ github.head_ref || github.ref }}
11+
cancel-in-progress: true
912

1013
jobs:
1114
test:
1215
name: Tests
1316
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1418

1519
steps:
1620
- uses: actions/checkout@v2
@@ -22,6 +26,7 @@ jobs:
2226
floating-dependencies:
2327
name: "Floating Dependencies"
2428
runs-on: ubuntu-latest
29+
timeout-minutes: 10
2530

2631
steps:
2732
- uses: actions/checkout@v2
@@ -31,34 +36,27 @@ jobs:
3136

3237
try-scenarios:
3338
name: "Try: ${{ matrix.ember-try-scenario }}"
34-
3539
runs-on: ubuntu-latest
36-
40+
timeout-minutes: 10
3741
needs: test
3842

3943
strategy:
4044
fail-fast: false
4145
matrix:
4246
ember-try-scenario:
43-
- ember-default-with-jquery
44-
- ember-default-with-mocha
45-
- ember-classic
4647
- embroider-safe
47-
- embroider-safe-with-mocha
4848
- embroider-optimized
49-
- embroider-optimized-with-mocha
50-
- ember-lts-3.24
51-
- ember-lts-3.20
49+
- ember-lts-4.8
50+
- ember-lts-4.12
5251
- ember-release
5352
- ember-beta
5453
- ember-canary
55-
- ember-qunit-4
5654

5755
steps:
5856
- uses: actions/checkout@v2
5957
- uses: volta-cli/action@v1
6058
with:
61-
node-version: 12.x
59+
node-version: 18
6260
- name: install dependencies
6361
run: yarn install --frozen-lockfile
6462
- name: test

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v2
1616
with:
17-
node-version: 14
17+
node-version: 18
1818
registry-url: 'https://registry.npmjs.org'
1919

2020
- run: yarn install

.gitignore

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# compiled output
42
/dist/
5-
/tmp/
3+
/declarations/
64

75
# dependencies
8-
/bower_components/
96
/node_modules/
107

118
# misc
12-
/.sass-cache
139
/connect.lock
10+
/.env*
11+
/.pnp*
12+
/.eslintcache
1413
/coverage/
1514
/libpeerconnection.log
1615
/npm-debug.log*
@@ -19,6 +18,11 @@
1918

2019
# ember-try
2120
/.node_modules.ember-try/
22-
/bower.json.ember-try
21+
/npm-shrinkwrap.json.ember-try
2322
/package.json.ember-try
2423
/.nyc_output/
24+
/package-lock.json.ember-try
25+
/yarn.lock.ember-try
26+
27+
# broccoli-debug
28+
/DEBUG/

.npmignore

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@
22
/dist/
33
/tmp/
44

5-
# dependencies
6-
/bower_components/
7-
85
# misc
9-
.eslintrc
10-
/.*
11-
/bin/
12-
/bower.json
6+
/.editorconfig
7+
/.ember-cli
8+
/.env*
9+
/.eslintcache
10+
/.eslintignore
11+
/.eslintrc.js
12+
/.git/
13+
/.github/
14+
/.gitignore
15+
/.prettierignore
16+
/.prettierrc.js
17+
/.stylelintignore
18+
/.stylelintrc.js
19+
/.template-lintrc.js
20+
/.travis.yml
21+
/.watchmanconfig
1322
/CHANGELOG.md
1423
/CONTRIBUTING.md
1524
/config/
@@ -24,7 +33,8 @@
2433

2534
# ember-try
2635
/.node_modules.ember-try/
27-
/bower.json.ember-try
36+
/npm-shrinkwrap.json.ember-try
2837
/package.json.ember-try
2938
/.nyc_output/
30-
/config/addon-docs.js
39+
/package-lock.json.ember-try
40+
/yarn.lock.ember-try

.prettierignore

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
# unconventional js
22
/blueprints/*/files/
3-
/vendor/
43

54
# compiled output
65
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
126

137
# misc
148
/coverage/
159
!.*
16-
.eslintcache
17-
.lint-todo/
10+
.*/
1811

1912
# ember-try
2013
/.node_modules.ember-try/
21-
/bower.json.ember-try
22-
/npm-shrinkwrap.json.ember-try
23-
/package.json.ember-try
24-
/package-lock.json.ember-try
25-
/yarn.lock.ember-try

.prettierrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
'use strict';
22

33
module.exports = {
4-
singleQuote: true,
4+
overrides: [
5+
{
6+
files: '*.{js,ts}',
7+
options: {
8+
singleQuote: true,
9+
},
10+
},
11+
],
512
};

0 commit comments

Comments
 (0)