ember-cli 4.11.0-beta.0 → 4.11.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -3
- package/bin/ember +0 -0
- package/blueprints/addon/additional-package.json +2 -2
- package/blueprints/addon/files/.github/workflows/ci.yml +1 -2
- package/blueprints/addon/files/.travis.yml +1 -2
- package/blueprints/addon/files/README.md +2 -2
- package/blueprints/addon/files/addon-config/ember-try.js +4 -22
- package/blueprints/addon/files/npmignore +2 -0
- package/blueprints/addon/index.js +0 -7
- package/blueprints/app/files/.eslintrc.js +8 -4
- package/blueprints/app/files/.stylelintignore +8 -0
- package/blueprints/app/files/.stylelintrc.js +5 -0
- package/blueprints/app/files/app/styles/app.css +1 -0
- package/blueprints/app/files/ember-cli-build.js +0 -13
- package/blueprints/app/files/package.json +30 -23
- package/blueprints/in-repo-addon/files/__root__/__name__/index.js +0 -0
- package/blueprints/in-repo-addon/index.js +0 -0
- package/blueprints/lib/index.js +0 -0
- package/docs/build/data.json +459 -459
- package/lib/broccoli/default-packager.js +0 -3
- package/lib/commands/addon.js +13 -0
- package/lib/commands/new.js +2 -14
- package/lib/commands/test.js +3 -2
- package/lib/models/blueprint.js +10 -18
- package/lib/tasks/interactive-new.js +6 -4
- package/lib/tasks/npm-task.js +0 -20
- package/lib/tasks/transforms/amd/index.js +2 -2
- package/package.json +20 -18
- package/tests/helpers/assert-version-lock.js +1 -1
- package/lib/commands/uninstall-npm.js +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,42 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
-
## v4.11.
|
|
3
|
+
## v4.11.1-beta.0
|
|
4
4
|
|
|
5
5
|
#### Blueprint Changes
|
|
6
6
|
|
|
7
|
-
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.
|
|
8
|
-
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.11.0...v4.11.1-beta.0)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.11.0...v4.11.1-beta.0)
|
|
9
|
+
|
|
10
|
+
#### Changelog
|
|
11
|
+
|
|
12
|
+
- [#10039](https://github.com/ember-cli/ember-cli/pull/10039) [CLEANUP] Remove unused test fixtures [@bertdeblock](https://github.com/bertdeblock)
|
|
13
|
+
- [#10040](https://github.com/ember-cli/ember-cli/pull/10040) [CLEANUP] Remove MU-related debug code [@bertdeblock](https://github.com/bertdeblock)
|
|
14
|
+
- [#10091](https://github.com/ember-cli/ember-cli/pull/10091) [BUGFIX] Fix looking up the default blueprint for scoped addons [@GendelfLugansk](https://github.com/GendelfLugansk)
|
|
15
|
+
- [#10107](https://github.com/ember-cli/ember-cli/pull/10107) [INTERNAL] Remove old `uninstall:npm` command [@bertdeblock](https://github.com/bertdeblock)
|
|
16
|
+
- [#10122](https://github.com/ember-cli/ember-cli/pull/10122) [ENHANCEMENT] Add Stylelint setup to `app` and `addon` blueprints [RFC 814] [@bmish](https://github.com/bmish)
|
|
17
|
+
- [#10142](https://github.com/ember-cli/ember-cli/pull/10142) [ENHANCEMENT] Update ESLint to v8 in `app` and `addon` blueprints [@bertdeblock](https://github.com/bertdeblock)
|
|
18
|
+
- [#10157](https://github.com/ember-cli/ember-cli/pull/10157) [ENHANCEMENT] Exclude `ember-cli-terser` when generating apps using the `--embroider` option [@bertdeblock](https://github.com/bertdeblock)
|
|
19
|
+
- [#10159](https://github.com/ember-cli/ember-cli/pull/10159) [ENHANCEMENT] Exclude `ember-cli-sri` when generating apps using the `--embroider` option [@bertdeblock](https://github.com/bertdeblock)
|
|
20
|
+
- [#10161](https://github.com/ember-cli/ember-cli/pull/10161) [ENHANCEMENT] Remove NPM version checking [@bertdeblock](https://github.com/bertdeblock)
|
|
21
|
+
- [#10166](https://github.com/ember-cli/ember-cli/pull/10166) [INTERNAL] Remove unused dependencies [@bertdeblock](https://github.com/bertdeblock)
|
|
22
|
+
- [#10169](https://github.com/ember-cli/ember-cli/pull/10169) [ENHANCEMENT] Remove `app.import` comment in `app` blueprint [@bertdeblock](https://github.com/bertdeblock)
|
|
23
|
+
- [#10172](https://github.com/ember-cli/ember-cli/pull/10172) [PERFORMANCE] Lazy require heavier packages [@bertdeblock](https://github.com/bertdeblock)
|
|
24
|
+
- [#10173](https://github.com/ember-cli/ember-cli/pull/10173) [ENHANCEMENT] Don't delete the newly-generated app directory when an error occurs [@ef4](https://github.com/ef4)
|
|
25
|
+
- [#10174](https://github.com/ember-cli/ember-cli/pull/10174) [INTERNAL] Clean up removal of `bower.json` and `package.json` files in `addon` blueprint [@bertdeblock](https://github.com/bertdeblock)
|
|
26
|
+
- [#10180](https://github.com/ember-cli/ember-cli/pull/10180) [ENHANCEMENT] Update `ember-welcome-page` to v7 in `app` blueprint [@ijlee2](https://github.com/ijlee2)
|
|
27
|
+
- [#10188](https://github.com/ember-cli/ember-cli/pull/10188) [ENHANCEMENT] Update ESLint parser `ecmaVersion` to `latest` in `app` blueprint [@elwayman02](https://github.com/elwayman02)
|
|
28
|
+
- [#10189](https://github.com/ember-cli/ember-cli/pull/10189) [ENHANCEMENT] Add v4.8 LTS to `addon` blueprint - Remove v3.28 LTS and `ember-classic` scenario [@bertdeblock](https://github.com/bertdeblock)
|
|
29
|
+
- [#10192](https://github.com/ember-cli/ember-cli/pull/10192) [BUGFIX] The `addon` command should throw when no addon name is provided [@bertdeblock](https://github.com/bertdeblock)
|
|
30
|
+
- [#10198](https://github.com/ember-cli/ember-cli/pull/10198) [INTERNAL] Output TypeScript apps and addons for StackBlitz [@NullVoxPopuli](https://github.com/NullVoxPopuli)
|
|
31
|
+
|
|
32
|
+
Thank you to all who took the time to contribute!
|
|
33
|
+
|
|
34
|
+
## v4.11.0
|
|
35
|
+
|
|
36
|
+
#### Blueprint Changes
|
|
37
|
+
|
|
38
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.10.0...v4.11.0)
|
|
39
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.10.0...v4.11.0)
|
|
9
40
|
|
|
10
41
|
#### Changelog
|
|
11
42
|
|
package/bin/ember
CHANGED
|
File without changes
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"test:ember-compatibility": "ember try:each"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@embroider/test-setup": "^2.
|
|
9
|
+
"@embroider/test-setup": "^2.1.1",
|
|
10
10
|
"ember-source-channel-url": "^3.0.0",
|
|
11
11
|
"ember-try": "^2.0.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"ember-source": "^
|
|
14
|
+
"ember-source": "^4.0.0"
|
|
15
15
|
},
|
|
16
16
|
"ember-addon": {
|
|
17
17
|
"configPath": "tests/dummy/config"
|
|
@@ -51,12 +51,11 @@ jobs:
|
|
|
51
51
|
|
|
52
52
|
# we recommend new addons test the current and previous LTS
|
|
53
53
|
# as well as latest stable release (bonus points to beta/canary)
|
|
54
|
-
- env: EMBER_TRY_SCENARIO=ember-lts-3.28
|
|
55
54
|
- env: EMBER_TRY_SCENARIO=ember-lts-4.4
|
|
55
|
+
- env: EMBER_TRY_SCENARIO=ember-lts-4.8
|
|
56
56
|
- env: EMBER_TRY_SCENARIO=ember-release
|
|
57
57
|
- env: EMBER_TRY_SCENARIO=ember-beta
|
|
58
58
|
- env: EMBER_TRY_SCENARIO=ember-canary
|
|
59
|
-
- env: EMBER_TRY_SCENARIO=ember-classic
|
|
60
59
|
- env: EMBER_TRY_SCENARIO=embroider-safe
|
|
61
60
|
- env: EMBER_TRY_SCENARIO=embroider-optimized
|
|
62
61
|
<% if (yarn) { %>
|
|
@@ -8,18 +8,18 @@ module.exports = async function () {
|
|
|
8
8
|
<% if (yarn) { %>useYarn: true,
|
|
9
9
|
<% } %>scenarios: [
|
|
10
10
|
{
|
|
11
|
-
name: 'ember-lts-
|
|
11
|
+
name: 'ember-lts-4.4',
|
|
12
12
|
npm: {
|
|
13
13
|
devDependencies: {
|
|
14
|
-
'ember-source': '~
|
|
14
|
+
'ember-source': '~4.4.0',
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: 'ember-lts-4.
|
|
19
|
+
name: 'ember-lts-4.8',
|
|
20
20
|
npm: {
|
|
21
21
|
devDependencies: {
|
|
22
|
-
'ember-source': '~4.
|
|
22
|
+
'ember-source': '~4.8.0',
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -47,24 +47,6 @@ module.exports = async function () {
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
|
-
{
|
|
51
|
-
name: 'ember-classic',
|
|
52
|
-
env: {
|
|
53
|
-
EMBER_OPTIONAL_FEATURES: JSON.stringify({
|
|
54
|
-
'application-template-wrapper': true,
|
|
55
|
-
'default-async-observers': false,
|
|
56
|
-
'template-only-glimmer-components': false,
|
|
57
|
-
}),
|
|
58
|
-
},
|
|
59
|
-
npm: {
|
|
60
|
-
devDependencies: {
|
|
61
|
-
'ember-source': '~3.28.0',
|
|
62
|
-
},
|
|
63
|
-
ember: {
|
|
64
|
-
edition: 'classic',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
50
|
embroiderSafe(),
|
|
69
51
|
embroiderOptimized(),
|
|
70
52
|
],
|
|
@@ -111,13 +111,6 @@ module.exports = {
|
|
|
111
111
|
},
|
|
112
112
|
|
|
113
113
|
async afterInstall(options) {
|
|
114
|
-
let packagePath = path.join(this.path, 'files', 'package.json');
|
|
115
|
-
let bowerPath = path.join(this.path, 'files', 'bower.json');
|
|
116
|
-
|
|
117
|
-
[packagePath, bowerPath].forEach((filePath) => {
|
|
118
|
-
fs.removeSync(filePath);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
114
|
if (options.typescript) {
|
|
122
115
|
await this.addAddonToProject({
|
|
123
116
|
name: 'ember-cli-typescript',
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
root: true,
|
|
5
|
-
parser: '<%= typescript ? '@typescript-eslint/parser' : 'babel-
|
|
5
|
+
parser: '<%= typescript ? '@typescript-eslint/parser' : '@babel/eslint-parser' %>',
|
|
6
6
|
parserOptions: {
|
|
7
|
-
ecmaVersion:
|
|
7
|
+
ecmaVersion: 'latest',<% if (!typescript) { %>
|
|
8
8
|
sourceType: 'module',
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
requireConfigFile: false,
|
|
10
|
+
babelOptions: {
|
|
11
|
+
plugins: [
|
|
12
|
+
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
|
|
13
|
+
],
|
|
11
14
|
},<% } %>
|
|
12
15
|
},
|
|
13
16
|
plugins: ['ember'<% if (typescript) { %>, '@typescript-eslint'<% } %>],
|
|
@@ -35,6 +38,7 @@ module.exports = {
|
|
|
35
38
|
files: [
|
|
36
39
|
'./.eslintrc.js',
|
|
37
40
|
'./.prettierrc.js',
|
|
41
|
+
'./.stylelintrc.js',
|
|
38
42
|
'./.template-lintrc.js',
|
|
39
43
|
'./ember-cli-build.js',<% if (blueprint !== 'app') { %>
|
|
40
44
|
'./index.js',<% } %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
|
|
@@ -7,19 +7,6 @@ module.exports = function (defaults) {
|
|
|
7
7
|
// Add options here
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
// Use `app.import` to add additional libraries to the generated
|
|
11
|
-
// output files.
|
|
12
|
-
//
|
|
13
|
-
// If you need to use different assets in different
|
|
14
|
-
// environments, specify an object as the first parameter. That
|
|
15
|
-
// object's keys should be the environment name and the values
|
|
16
|
-
// should be the asset to use in that environment.
|
|
17
|
-
//
|
|
18
|
-
// If the library that you are including contains AMD or ES6
|
|
19
|
-
// modules that you would like to import into your application
|
|
20
|
-
// please specify an object with the list of modules as keys
|
|
21
|
-
// along with the exports of each module as its value.
|
|
22
|
-
|
|
23
10
|
<% if (embroider) { %>const { Webpack } = require('@embroider/webpack');
|
|
24
11
|
return require('@embroider/compat').compatBuild(app, Webpack, {
|
|
25
12
|
skipBabel: [
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "ember build --environment=production",
|
|
15
15
|
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
|
|
16
|
+
"lint:css": "stylelint \"**/*.css\"",
|
|
17
|
+
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
|
|
16
18
|
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
|
|
17
19
|
"lint:hbs": "ember-template-lint .",
|
|
18
20
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
@@ -24,49 +26,54 @@
|
|
|
24
26
|
"test:ember": "ember test"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
|
-
"
|
|
29
|
+
"<% if (!typescript) { %>@babel/eslint-parser": "^7.19.1",
|
|
30
|
+
"@babel/plugin-proposal-decorators": "^7.21.0",
|
|
31
|
+
"<% } %>@ember/optional-features": "^2.0.0",
|
|
28
32
|
"@ember/string": "^3.0.1",
|
|
29
33
|
"@ember/test-helpers": "^2.9.3<% if (embroider) { %>",
|
|
30
|
-
"@embroider/compat": "^2.
|
|
31
|
-
"@embroider/core": "^2.
|
|
32
|
-
"@embroider/webpack": "^2.
|
|
34
|
+
"@embroider/compat": "^2.1.1",
|
|
35
|
+
"@embroider/core": "^2.1.1",
|
|
36
|
+
"@embroider/webpack": "^2.1.1<% } %>",
|
|
33
37
|
"@glimmer/component": "^1.1.2",
|
|
34
38
|
"@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
36
|
-
"@typescript-eslint/parser": "^5.
|
|
37
|
-
"babel-eslint": "^10.1.0<% } %>",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
40
|
+
"@typescript-eslint/parser": "^5.54.1<% } %>",
|
|
38
41
|
"broccoli-asset-rev": "^3.0.0",
|
|
39
42
|
"concurrently": "^7.6.0",
|
|
40
|
-
"ember-auto-import": "^2.
|
|
43
|
+
"ember-auto-import": "^2.6.1",
|
|
41
44
|
"ember-cli": "~<%= emberCLIVersion %>",
|
|
42
|
-
"ember-cli-app-version": "^
|
|
45
|
+
"ember-cli-app-version": "^6.0.0",
|
|
43
46
|
"ember-cli-babel": "^7.26.11",
|
|
44
47
|
"ember-cli-dependency-checker": "^3.3.1",
|
|
45
48
|
"ember-cli-htmlbars": "^6.2.0",
|
|
46
|
-
"ember-cli-inject-live-reload": "^2.1.0",
|
|
49
|
+
"ember-cli-inject-live-reload": "^2.1.0<% if (!embroider) { %>",
|
|
47
50
|
"ember-cli-sri": "^2.1.1",
|
|
48
|
-
"ember-cli-terser": "^4.0.2",
|
|
49
|
-
"ember-data": "~4.
|
|
51
|
+
"ember-cli-terser": "^4.0.2<% } %>",
|
|
52
|
+
"ember-data": "~4.11.3",
|
|
50
53
|
"ember-fetch": "^8.1.2",
|
|
51
54
|
"ember-load-initializers": "^2.1.2",
|
|
52
|
-
"ember-modifier": "^4.
|
|
55
|
+
"ember-modifier": "^4.1.0",
|
|
53
56
|
"ember-page-title": "^7.0.0",
|
|
54
|
-
"ember-qunit": "^6.
|
|
57
|
+
"ember-qunit": "^6.2.0",
|
|
55
58
|
"ember-resolver": "^10.0.0",
|
|
56
|
-
"ember-source": "~4.
|
|
57
|
-
"ember-template-lint": "^5.
|
|
58
|
-
"ember-welcome-page": "^
|
|
59
|
-
"eslint": "^
|
|
60
|
-
"eslint-config-prettier": "^8.
|
|
61
|
-
"eslint-plugin-ember": "^11.4.
|
|
59
|
+
"ember-source": "~4.12.0-beta.2",
|
|
60
|
+
"ember-template-lint": "^5.6.0<% if (welcome) { %>",
|
|
61
|
+
"ember-welcome-page": "^7.0.1<% } %>",
|
|
62
|
+
"eslint": "^8.35.0",
|
|
63
|
+
"eslint-config-prettier": "^8.7.0",
|
|
64
|
+
"eslint-plugin-ember": "^11.4.7",
|
|
62
65
|
"eslint-plugin-n": "^15.6.1",
|
|
63
66
|
"eslint-plugin-prettier": "^4.2.1",
|
|
64
67
|
"eslint-plugin-qunit": "^7.3.4",
|
|
65
68
|
"loader.js": "^4.7.0",
|
|
66
|
-
"prettier": "^2.8.
|
|
67
|
-
"qunit": "^2.19.
|
|
69
|
+
"prettier": "^2.8.4",
|
|
70
|
+
"qunit": "^2.19.4",
|
|
68
71
|
"qunit-dom": "^2.0.0",
|
|
69
|
-
"
|
|
72
|
+
"stylelint": "^15.2.0",
|
|
73
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
74
|
+
"stylelint-config-standard": "^30.0.1",
|
|
75
|
+
"stylelint-prettier": "^3.0.0",
|
|
76
|
+
"tracked-built-ins": "^3.1.1",
|
|
70
77
|
"webpack": "^5.75.0"
|
|
71
78
|
},
|
|
72
79
|
"engines": {
|
|
File without changes
|
|
File without changes
|
package/blueprints/lib/index.js
CHANGED
|
File without changes
|