Skip to content

Commit c703e3c

Browse files
Merge pull request #105 from mkszepp/ember-v5-support
Update addon to support ember v5
2 parents 0c2e253 + adcea57 commit c703e3c

File tree

21 files changed

+4054
-5437
lines changed

21 files changed

+4054
-5437
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ jobs:
1919
test:
2020
name: "Tests"
2121
runs-on: ubuntu-latest
22+
timeout-minutes: 10
2223

2324
steps:
24-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2526
- name: Set up Volta
26-
uses: volta-cli/action@v1
27+
uses: volta-cli/action@v3
2728
- name: Install Dependencies
2829
run: yarn install --frozen-lockfile
2930
- name: Lint
@@ -34,11 +35,12 @@ jobs:
3435
floating:
3536
name: "Floating Dependencies"
3637
runs-on: ubuntu-latest
38+
timeout-minutes: 10
3739

3840
steps:
39-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v3
4042
- name: Set up Volta
41-
uses: volta-cli/action@v1
43+
uses: volta-cli/action@v3
4244
- name: Install Dependencies
4345
run: yarn install --no-lockfile
4446
- name: Run Tests
@@ -48,13 +50,18 @@ jobs:
4850
name: ${{ matrix.try-scenario }}
4951
runs-on: ubuntu-latest
5052
needs: "test"
53+
timeout-minutes: 10
5154

5255
strategy:
5356
fail-fast: false
5457
matrix:
5558
try-scenario:
5659
- ember-lts-3.24
5760
- ember-lts-3.28
61+
- ember-lts-4.4
62+
- ember-lts-4.8
63+
- ember-lts-4.12
64+
- ember-5.0
5865
- ember-release
5966
- ember-beta
6067
- ember-canary
@@ -63,9 +70,9 @@ jobs:
6370
- embroider-optimized
6471

6572
steps:
66-
- uses: actions/checkout@v2
73+
- uses: actions/checkout@v3
6774
- name: Set up Volta
68-
uses: volta-cli/action@v1
75+
uses: volta-cli/action@v3
6976
- name: Install Dependencies
7077
run: yarn install --frozen-lockfile
7178
- name: Run Tests
@@ -79,9 +86,9 @@ jobs:
7986
runs-on: ubuntu-latest
8087
steps:
8188
- name: Checkout
82-
uses: actions/checkout@v1
89+
uses: actions/checkout@v3
8390
- name: Set up Volta
84-
uses: volta-cli/action@v1
91+
uses: volta-cli/action@v3
8592
- name: Set up npm
8693
run: |
8794
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}"> ~/.npmrc

ember-element-helper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"extends": "../package.json"
8282
},
8383
"peerDependencies": {
84-
"ember-source": "^3.8 || >= 4.0.0"
84+
"ember-source": "^3.8 || ^4.0.0 || >= 5.0.0"
8585
},
8686
"release-it": {
8787
"plugins": {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
"test": "yarn workspaces run test"
1919
},
2020
"volta": {
21-
"node": "14.20.0",
22-
"yarn": "1.22.17"
21+
"node": "14.21.3",
22+
"yarn": "1.22.19",
23+
"npm": "9.8.1"
2324
},
2425
"devDependencies": {
2526
"concurrently": "^7.2.2"

test-app/.ember-cli

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55

66
Setting `disableAnalytics` to true will prevent any data from being sent.
77
*/
8-
"disableAnalytics": false
8+
"disableAnalytics": false,
9+
10+
/**
11+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
12+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
13+
*/
14+
"isTypeScriptProject": false
915
}

test-app/.eslintrc.js

Lines changed: 9 additions & 6 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
'./index.js',
@@ -43,8 +47,7 @@ module.exports = {
4347
browser: false,
4448
node: true,
4549
},
46-
plugins: ['node'],
47-
extends: ['plugin:node/recommended'],
50+
extends: ['plugin:n/recommended'],
4851
},
4952
{
5053
// test files

test-app/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@
2727
/package.json.ember-try
2828
/package-lock.json.ember-try
2929
/yarn.lock.ember-try
30+
31+
# broccoli-debug
32+
/DEBUG/

test-app/.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
};

test-app/.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/

test-app/.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+
};

test-app/app/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
65
<title>TestApp</title>
76
<meta name="description" content="">
87
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)