Skip to content

Commit db4d268

Browse files
Update ember-cli to 3.28.6
1 parent fd1d4f9 commit db4d268

15 files changed

+1406
-579
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# misc
1414
/coverage/
1515
!.*
16+
.*/
17+
.eslintcache
1618

1719
# ember-try
1820
/.node_modules.ember-try/

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ storybook-static
1313
/.env*
1414
/.pnp*
1515
/.sass-cache
16+
/.eslintcache
1617
/connect.lock
1718
/coverage/
1819
/libpeerconnection.log

.npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
/.editorconfig
1111
/.ember-cli
1212
/.env*
13+
/.eslintcache
1314
/.eslintignore
1415
/.eslintrc.js
1516
/.git/
1617
/.gitignore
18+
/.prettierignore
19+
/.prettierrc.js
1720
/.template-lintrc.js
1821
/.travis.yml
1922
/.watchmanconfig
@@ -23,6 +26,7 @@
2326
/ember-cli-build.js
2427
/testem.js
2528
/tests/
29+
/yarn-error.log
2630
/yarn.lock
2731
.gitkeep
2832

.prettierignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# unconventional js
2+
/blueprints/*/files/
3+
/vendor/
4+
5+
# compiled output
6+
/dist/
7+
/tmp/
8+
9+
# dependencies
10+
/bower_components/
11+
/node_modules/
12+
13+
# misc
14+
/coverage/
15+
!.*
16+
.eslintcache
17+
18+
# ember-try
19+
/.node_modules.ember-try/
20+
/bower.json.ember-try
21+
/package.json.ember-try

.prettierrc

-11
This file was deleted.

.prettierrc.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
// eslint-disable-next-line no-undef
4+
module.exports = {
5+
arrowParens: 'always',
6+
bracketSpacing: true,
7+
printWidth: 120,
8+
proseWrap: 'preserve',
9+
semi: true,
10+
singleQuote: true,
11+
tabWidth: 2,
12+
trailingComma: 'none',
13+
useTabs: false
14+
};

.template-lintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
module.exports = {
4-
extends: 'octane',
4+
extends: 'recommended',
55

66
plugins: ['./linters/handlebars'],
77

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
## Linting
1010

11-
* `npm run lint:hbs`
12-
* `npm run lint:js`
13-
* `npm run lint:js -- --fix`
11+
* `yarn lint`
12+
* `yarn lint:hbs`
13+
* `yarn lint:fix`
1414

1515
## Running tests
1616

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ components for usage in our projects.
99
Compatibility
1010
------------------------------------------------------------------------------
1111

12-
* Ember.js v3.12 or above
13-
* Ember CLI v2.13 or above
14-
* Node.js v10 or above
12+
* Ember.js v3.24 or above
13+
* Ember CLI v3.24 or above
14+
* Node.js v12 or above
1515

1616

1717
Installation

addon/components/o-s-s/password-input.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<OSS::InputContainer @errorMessage={{this.errorMessage}} ...attributes>
22
<:input>
3-
<Input @value={{@value}} @placeholder={{this.placeholder}} type={{this.visibility}}
3+
<Input @value={{@value}} @placeholder={{this.placeholder}} @type={{this.visibility}}
44
{{on "keyup" this.validateInput}} autocomplete="current-password" />
55
</:input>
66
<:suffix>

addon/components/radio-button.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default Component.extend({
1919
click(e) {
2020
e.stopPropagation();
2121
if (!this.disabled) {
22-
// eslint-disable-next-line
22+
// eslint-disable-next-line ember/closure-actions
2323
this.sendAction('onCheck', this.value);
2424
}
2525
}

config/ember-try.js

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
'use strict';
22

33
const getChannelURL = require('ember-source-channel-url');
4+
const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');
45

56
module.exports = async function () {
67
return {
78
scenarios: [
89
{
9-
name: 'ember-lts-3.12',
10+
name: 'ember-lts-3.24',
1011
npm: {
1112
devDependencies: {
12-
'ember-source': '~3.12.0'
13+
'ember-source': '~3.24.3'
1314
}
1415
}
1516
},
1617
{
17-
name: 'ember-lts-3.16',
18+
name: 'ember-lts-3.28',
1819
npm: {
1920
devDependencies: {
20-
'ember-source': '~3.16.0'
21+
'ember-source': '~3.28.0'
2122
}
2223
}
2324
},
@@ -45,16 +46,6 @@ module.exports = async function () {
4546
}
4647
}
4748
},
48-
// The default `.travis.yml` runs this scenario via `npm test`,
49-
// not via `ember try`. It's still included here so that running
50-
// `ember try:each` manually or from a customized CI config will run it
51-
// along with all the other scenarios.
52-
{
53-
name: 'ember-default',
54-
npm: {
55-
devDependencies: {}
56-
}
57-
},
5849
{
5950
name: 'ember-default-with-jquery',
6051
env: {
@@ -64,7 +55,7 @@ module.exports = async function () {
6455
},
6556
npm: {
6657
devDependencies: {
67-
'@ember/jquery': '^0.5.1'
58+
'@ember/jquery': '^1.1.0'
6859
}
6960
}
7061
},
@@ -78,11 +69,16 @@ module.exports = async function () {
7869
})
7970
},
8071
npm: {
72+
devDependencies: {
73+
'ember-source': '~3.28.0'
74+
},
8175
ember: {
8276
edition: 'classic'
8377
}
8478
}
85-
}
79+
},
80+
embroiderSafe(),
81+
embroiderOptimized()
8682
]
8783
};
8884
};

ember-cli-build.js

+15-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,19 @@ module.exports = function (defaults) {
99
}
1010
});
1111

12-
return app.toTree();
12+
/*
13+
This build file specifies the options for the dummy test app of this
14+
addon, located in `/tests/dummy`
15+
This build file does *not* influence how the addon or the app using it
16+
behave. You most likely want to be modifying `./index.js` or app's build file
17+
*/
18+
19+
const { maybeEmbroider } = require('@embroider/test-setup');
20+
return maybeEmbroider(app, {
21+
skipBabel: [
22+
{
23+
package: 'qunit'
24+
}
25+
]
26+
});
1327
};

package.json

+25-18
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"scripts": {
1919
"build": "ember build --environment=production",
2020
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
21+
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
2122
"lint:hbs": "ember-template-lint .",
23+
"lint:hbs:fix": "ember-template-lint . --fix",
2224
"lint:js": "eslint .",
25+
"lint:js:fix": "eslint . --fix",
2326
"start": "ember serve",
2427
"test": "npm-run-all lint:* test:*",
2528
"test:ember": "ember test --silent -r dot",
@@ -37,8 +40,8 @@
3740
"babel-plugin-debug-macros": "^0.3.1",
3841
"bootstrap": "^3.3.7",
3942
"calculate-cache-key-for-tree": "^2.0.0",
40-
"ember-cli-babel": "^7.19.0",
41-
"ember-cli-htmlbars": "^4.3.1",
43+
"ember-cli-babel": "^7.26.10",
44+
"ember-cli-htmlbars": "^5.7.2",
4245
"ember-cli-ifa": "^0.10.0",
4346
"ember-cli-less": "^1.5.3",
4447
"ember-cli-typescript": "^4.2.1",
@@ -52,11 +55,12 @@
5255
"devDependencies": {
5356
"@babel/core": "^7.11.6",
5457
"@ember/jquery": "^2.0.0",
55-
"@ember/optional-features": "^1.3.0",
58+
"@ember/optional-features": "^2.0.0",
5659
"@ember/render-modifiers": "^1.0.2",
5760
"@ember/test-helpers": "^2.8.1",
58-
"@glimmer/component": "^1.0.0",
59-
"@glimmer/tracking": "^1.0.0",
61+
"@embroider/test-setup": "^0.48.1",
62+
"@glimmer/component": "^1.0.4",
63+
"@glimmer/tracking": "^1.0.4",
6064
"@storybook/addon-actions": "6.4.9",
6165
"@storybook/addon-essentials": "6.4.9",
6266
"@storybook/addon-links": "6.4.9",
@@ -91,37 +95,40 @@
9195
"babel-loader": "^8.1.0",
9296
"broccoli-asset-rev": "^3.0.0",
9397
"ember-auto-import": "^1.5.3",
94-
"ember-cli": "~3.18.0",
98+
"ember-cli": "~3.28.6",
9599
"ember-cli-dependency-checker": "^3.2.0",
96-
"ember-cli-inject-live-reload": "^2.0.2",
100+
"ember-cli-inject-live-reload": "^2.1.0",
101+
"ember-cli-terser": "^4.0.2",
97102
"ember-cli-typescript-blueprints": "^3.0.0",
98103
"ember-disable-prototype-extensions": "^1.1.3",
99104
"ember-export-application-global": "^2.0.1",
100-
"ember-load-initializers": "^2.1.1",
105+
"ember-load-initializers": "^2.1.2",
101106
"ember-maybe-import-regenerator": "^0.1.6",
107+
"ember-page-title": "^6.2.2",
102108
"ember-qunit": "^5.1.5",
103-
"ember-resolver": "^8.0.0",
109+
"ember-resolver": "8.0.3",
104110
"ember-sinon-qunit": "^5.0.0",
105-
"ember-source": "~3.18.0",
106-
"ember-source-channel-url": "^2.0.1",
107-
"ember-template-lint": "^2.6.0",
111+
"ember-source": "~3.28.8",
112+
"ember-source-channel-url": "^3.0.0",
113+
"ember-template-lint": "^3.15.0",
108114
"ember-try": "^1.4.0",
109-
"eslint": "^6.8.0",
115+
"eslint": "^7.32.0",
110116
"eslint-config-prettier": "^8.3.0",
111-
"eslint-plugin-ember": "^8.4.0",
117+
"eslint-plugin-ember": "^10.5.8",
112118
"eslint-plugin-node": "^11.1.0",
113-
"eslint-plugin-prettier": "^3.4.0",
119+
"eslint-plugin-prettier": "^3.4.1",
120+
"eslint-plugin-qunit": "^6.2.0",
114121
"less-loader": "^7.1.0",
115122
"loader.js": "^4.7.0",
116123
"npm-run-all": "^4.1.5",
117-
"prettier": "^2.3.2",
124+
"prettier": "^2.5.1",
118125
"qunit": "^2.17.2",
119-
"qunit-dom": "^1.2.0",
126+
"qunit-dom": "^1.6.0",
120127
"react-is": "^16.13.1",
121128
"typescript": "^4.4.4"
122129
},
123130
"engines": {
124-
"node": "10.* || >= 12"
131+
"node": "12.* || 14.* || >= 16"
125132
},
126133
"ember": {
127134
"edition": "octane"

0 commit comments

Comments
 (0)