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 CHANGED
@@ -1,11 +1,42 @@
1
1
  # ember-cli Changelog
2
2
 
3
- ## v4.11.0-beta.0
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.10.0...v4.11.0-beta.0)
8
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.10.0...v4.11.0-beta.0)
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.0.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": "^3.28.0 || ^4.0.0"
14
+ "ember-source": "^4.0.0"
15
15
  },
16
16
  "ember-addon": {
17
17
  "configPath": "tests/dummy/config"
@@ -57,12 +57,11 @@ jobs:
57
57
  fail-fast: false
58
58
  matrix:
59
59
  try-scenario:
60
- - ember-lts-3.28
61
60
  - ember-lts-4.4
61
+ - ember-lts-4.8
62
62
  - ember-release
63
63
  - ember-beta
64
64
  - ember-canary
65
- - ember-classic
66
65
  - embroider-safe
67
66
  - embroider-optimized
68
67
 
@@ -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) { %>
@@ -5,8 +5,8 @@
5
5
 
6
6
  ## Compatibility
7
7
 
8
- * Ember.js v3.28 or above
9
- * Ember CLI v3.28 or above
8
+ * Ember.js v4.4 or above
9
+ * Ember CLI v4.4 or above
10
10
  * Node.js v14 or above
11
11
 
12
12
 
@@ -8,18 +8,18 @@ module.exports = async function () {
8
8
  <% if (yarn) { %>useYarn: true,
9
9
  <% } %>scenarios: [
10
10
  {
11
- name: 'ember-lts-3.28',
11
+ name: 'ember-lts-4.4',
12
12
  npm: {
13
13
  devDependencies: {
14
- 'ember-source': '~3.28.0',
14
+ 'ember-source': '~4.4.0',
15
15
  },
16
16
  },
17
17
  },
18
18
  {
19
- name: 'ember-lts-4.4',
19
+ name: 'ember-lts-4.8',
20
20
  npm: {
21
21
  devDependencies: {
22
- 'ember-source': '~4.4.0',
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
  ],
@@ -18,6 +18,8 @@
18
18
  /.gitignore
19
19
  /.prettierignore
20
20
  /.prettierrc.js
21
+ /.stylelintignore
22
+ /.stylelintrc.js
21
23
  /.template-lintrc.js
22
24
  /.travis.yml
23
25
  /.watchmanconfig
@@ -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-eslint' %>',
5
+ parser: '<%= typescript ? '@typescript-eslint/parser' : '@babel/eslint-parser' %>',
6
6
  parserOptions: {
7
- ecmaVersion: 2018,<% if (!typescript) { %>
7
+ ecmaVersion: 'latest',<% if (!typescript) { %>
8
8
  sourceType: 'module',
9
- ecmaFeatures: {
10
- legacyDecorators: true,
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,8 @@
1
+ # unconventional files
2
+ /blueprints/*/files/
3
+
4
+ # compiled output
5
+ /dist/
6
+
7
+ # addons
8
+ /.node_modules.ember-try/
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
5
+ };
@@ -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
- "@ember/optional-features": "^2.0.0",
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.0.2",
31
- "@embroider/core": "^2.0.2",
32
- "@embroider/webpack": "^2.0.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.48.2",
36
- "@typescript-eslint/parser": "^5.48.2<% } else { %>",
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.5.0",
43
+ "ember-auto-import": "^2.6.1",
41
44
  "ember-cli": "~<%= emberCLIVersion %>",
42
- "ember-cli-app-version": "^5.0.0",
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.10.0-beta.3",
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.0.0",
55
+ "ember-modifier": "^4.1.0",
53
56
  "ember-page-title": "^7.0.0",
54
- "ember-qunit": "^6.1.1",
57
+ "ember-qunit": "^6.2.0",
55
58
  "ember-resolver": "^10.0.0",
56
- "ember-source": "~4.11.0-beta.1",
57
- "ember-template-lint": "^5.3.2<% if (welcome) { %>",
58
- "ember-welcome-page": "^6.2.0<% } %>",
59
- "eslint": "^7.32.0",
60
- "eslint-config-prettier": "^8.6.0",
61
- "eslint-plugin-ember": "^11.4.3",
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.3",
67
- "qunit": "^2.19.3",
69
+ "prettier": "^2.8.4",
70
+ "qunit": "^2.19.4",
68
71
  "qunit-dom": "^2.0.0",
69
- "tracked-built-ins": "^3.1.0",
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