Skip to content

Commit 8d10caf

Browse files
authored
Merge pull request #137 from ember-learn/update-deps
Move to Ember 5.10
2 parents 64ac94c + b9b1b63 commit 8d10caf

36 files changed

+41861
-32978
lines changed

.ember-cli

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"disableAnalytics": false
2+
"disableAnalytics": false,
3+
/**
4+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
5+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
6+
*/
7+
"isTypeScriptProject": false
38
}

.eslintignore

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

54
# compiled output
5+
/declarations/
66
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
127

138
# misc
149
/coverage/
1510
!.*
1611
.*/
17-
.eslintcache
1812

1913
# ember-try
2014
/.node_modules.ember-try/
21-
/bower.json.ember-try
22-
/package.json.ember-try

.eslintrc.js

Lines changed: 10 additions & 12 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'],
@@ -26,6 +29,7 @@ module.exports = {
2629
files: [
2730
'./.eslintrc.js',
2831
'./.prettierrc.js',
32+
'./.stylelintrc.js',
2933
'./.template-lintrc.js',
3034
'./ember-cli-build.js',
3135
'./testem.js',
@@ -41,16 +45,10 @@ module.exports = {
4145
browser: false,
4246
node: true,
4347
},
44-
plugins: ['node'],
45-
extends: ['plugin:node/recommended'],
46-
rules: {
47-
// this can be removed once the following is fixed
48-
// https://github.com/mysticatea/eslint-plugin-node/issues/77
49-
'node/no-unpublished-require': 'off',
50-
},
48+
extends: ['plugin:n/recommended'],
5149
},
5250
{
53-
// Test files:
51+
// test files
5452
files: ['tests/**/*-test.{js,ts}'],
5553
extends: ['plugin:qunit/recommended'],
5654
},

.github/workflows/ci.yml

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,47 @@
11
name: CI
22

3-
on:
3+
on:
44
push:
55
branches:
66
- main
7-
pull_request:
7+
- master
8+
pull_request: {}
89

9-
env:
10-
NODE_VERSION: 14
10+
concurrency:
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
1113

1214
jobs:
1315
lint:
14-
name: Lint files
16+
name: "Lint"
1517
runs-on: ubuntu-latest
16-
timeout-minutes: 3
17-
steps:
18-
- name: Check out a copy of the repo
19-
uses: actions/checkout@v2
18+
timeout-minutes: 10
2019

21-
- name: Use Node.js ${{ env.NODE_VERSION }}
22-
uses: actions/setup-node@v2
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Install Node
23+
uses: actions/setup-node@v3
2324
with:
24-
cache: 'npm'
25-
node-version: ${{ env.NODE_VERSION }}
26-
27-
- name: Install dependencies
25+
node-version: 18
26+
cache: npm
27+
- name: Install Dependencies
2828
run: npm ci
29-
3029
- name: Lint
3130
run: npm run lint
3231

33-
34-
test-app:
35-
name: Test app
32+
test:
33+
name: "Test"
3634
runs-on: ubuntu-latest
37-
timeout-minutes: 3
38-
steps:
39-
- name: Check out a copy of the repo
40-
uses: actions/checkout@v2
35+
timeout-minutes: 10
4136

42-
- name: Use Node.js ${{ env.NODE_VERSION }}
43-
uses: actions/setup-node@v2
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Install Node
40+
uses: actions/setup-node@v3
4441
with:
45-
cache: 'npm'
46-
node-version: ${{ env.NODE_VERSION }}
47-
48-
- name: Install dependencies
42+
node-version: 18
43+
cache: npm
44+
- name: Install Dependencies
4945
run: npm ci
50-
51-
- name: Test
46+
- name: Run Tests
5247
run: npm test

.gitignore

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
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
129
/.env*
1310
/.pnp*
14-
/.sass-cache
1511
/.eslintcache
16-
/connect.lock
1712
/coverage/
18-
/libpeerconnection.log
1913
/npm-debug.log*
2014
/testem.log
2115

2216
# ember-try
2317
/.node_modules.ember-try/
24-
/bower.json.ember-try
18+
/npm-shrinkwrap.json.ember-try
2519
/package.json.ember-try
2620
.DS_Store
21+
/package-lock.json.ember-try
22+
/yarn.lock.ember-try
23+
24+
# broccoli-debug
25+
/DEBUG/

.prettierignore

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +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
10+
.*/
1711

1812
# ember-try
1913
/.node_modules.ember-try/
20-
/bower.json.ember-try
21-
/package.json.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
};

.stylelintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# unconventional files
2+
/blueprints/*/files/
3+
4+
# compiled output
5+
/dist/
6+
7+
# addons
8+
/.node_modules.ember-try/

.stylelintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
5+
};

.watchmanconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"ignore_dirs": ["tmp", "dist"]
2+
"ignore_dirs": ["dist"]
33
}

0 commit comments

Comments
 (0)