ember-cli 4.1.1 → 4.3.0-beta.1
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/.github/workflows/ci.yml +8 -4
- package/CHANGELOG.md +37 -0
- package/README.md +1 -2
- package/blueprints/addon/additional-dev-dependencies.json +1 -1
- package/blueprints/addon/files/.github/workflows/ci.yml +3 -3
- package/blueprints/addon/files/CONTRIBUTING.md +1 -1
- package/blueprints/addon/files/gitignore +2 -0
- package/blueprints/app/files/.ember-cli +7 -1
- package/blueprints/app/files/.github/workflows/ci.yml +2 -2
- package/blueprints/app/files/README.md +2 -2
- package/blueprints/app/files/app/index.html +0 -1
- package/blueprints/app/files/gitignore +3 -0
- package/blueprints/app/files/package.json +12 -12
- package/blueprints/app/files/tests/helpers/index.js +42 -0
- package/blueprints/app/files/tests/index.html +0 -1
- package/docs/build/data.json +217 -97
- package/lib/broccoli/default-packager.js +14 -1
- package/lib/broccoli/ember-app.js +4 -4
- package/lib/commands/destroy.js +7 -0
- package/lib/commands/generate.js +16 -7
- package/lib/debug/assert.js +37 -0
- package/lib/debug/deprecate.js +111 -0
- package/lib/debug/index.js +6 -0
- package/lib/models/blueprint.js +209 -4
- package/lib/models/installation-checker.js +1 -1
- package/lib/models/project.js +47 -4
- package/package.json +22 -21
- package/tests/helpers/fixturify-project.js +1 -0
- package/tests/helpers/package-cache.js +1 -1
- package/blueprints/app/files/tests/helpers/.gitkeep +0 -0
package/.github/workflows/ci.yml
CHANGED
|
@@ -14,6 +14,10 @@ on:
|
|
|
14
14
|
schedule:
|
|
15
15
|
- cron: '0 3 * * *' # daily, at 3am
|
|
16
16
|
|
|
17
|
+
concurrency:
|
|
18
|
+
group: ci-${{ github.head_ref || github.ref }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
17
21
|
jobs:
|
|
18
22
|
linting:
|
|
19
23
|
name: Linting
|
|
@@ -21,7 +25,7 @@ jobs:
|
|
|
21
25
|
|
|
22
26
|
steps:
|
|
23
27
|
- uses: actions/checkout@v2
|
|
24
|
-
- uses: actions/setup-node@v2.5.
|
|
28
|
+
- uses: actions/setup-node@v2.5.1
|
|
25
29
|
with:
|
|
26
30
|
node-version: 12.x
|
|
27
31
|
cache: 'yarn'
|
|
@@ -39,7 +43,7 @@ jobs:
|
|
|
39
43
|
|
|
40
44
|
steps:
|
|
41
45
|
- uses: actions/checkout@v2
|
|
42
|
-
- uses: actions/setup-node@v2.5.
|
|
46
|
+
- uses: actions/setup-node@v2.5.1
|
|
43
47
|
with:
|
|
44
48
|
node-version: 12.x
|
|
45
49
|
cache: 'yarn'
|
|
@@ -61,7 +65,7 @@ jobs:
|
|
|
61
65
|
|
|
62
66
|
steps:
|
|
63
67
|
- uses: actions/checkout@v2
|
|
64
|
-
- uses: actions/setup-node@v2.5.
|
|
68
|
+
- uses: actions/setup-node@v2.5.1
|
|
65
69
|
with:
|
|
66
70
|
node-version: ${{ matrix.node-version }}
|
|
67
71
|
cache: 'yarn'
|
|
@@ -86,7 +90,7 @@ jobs:
|
|
|
86
90
|
|
|
87
91
|
steps:
|
|
88
92
|
- uses: actions/checkout@v2
|
|
89
|
-
- uses: actions/setup-node@v2.5.
|
|
93
|
+
- uses: actions/setup-node@v2.5.1
|
|
90
94
|
with:
|
|
91
95
|
node-version: 12.x
|
|
92
96
|
cache: 'yarn'
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
+
## v4.3.0-beta.1
|
|
4
|
+
|
|
5
|
+
#### Blueprint Changes
|
|
6
|
+
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.2.0...v4.3.0-beta.1)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.2.0...v4.3.0-beta.1)
|
|
9
|
+
|
|
10
|
+
#### Changelog
|
|
11
|
+
|
|
12
|
+
- [#9707](https://github.com/ember-cli/ember-cli/pull/9707) [RFC 772] Deprecate Bower support [@bertdeblock](https://github.com/bertdeblock)
|
|
13
|
+
- [#9387](https://github.com/ember-cli/ember-cli/pull/9387) Add support for specifying a path for the generate command [@NullVoxPopuli](https://github.com/NullVoxPopuli)
|
|
14
|
+
- [#9638](https://github.com/ember-cli/ember-cli/pull/9638) Update ember-cli's own dependencies to latest [@rwjblue](https://github.com/rwjblue)
|
|
15
|
+
- [#9680](https://github.com/ember-cli/ember-cli/pull/9680) Ignore default folder name used by broccoli-debug [@notmessenger](https://github.com/notmessenger)
|
|
16
|
+
- [#9683](https://github.com/ember-cli/ember-cli/pull/9683) chore: replace json-stable-stringify with safe-stable-stringify [@BridgeAR](https://github.com/BridgeAR)
|
|
17
|
+
- [#9769](https://github.com/ember-cli/ember-cli/pull/9769) Update markdown-it to v12.3.2 to address vulnerabiliity [@locks](https://github.com/locks)
|
|
18
|
+
- [#9781](https://github.com/ember-cli/ember-cli/pull/9781) [ENHANCEMENT] Remove `X-UA-Compatible` meta tag for IE browser [@bobisjan](https://github.com/bobisjan)
|
|
19
|
+
- [#9790](https://github.com/ember-cli/ember-cli/pull/9790) Upgrade broccoli-merge-trees [@locks](https://github.com/locks)
|
|
20
|
+
- [#9803](https://github.com/ember-cli/ember-cli/pull/9803) [RFC 637] Customizable test setups [@bertdeblock](https://github.com/bertdeblock)
|
|
21
|
+
- [#9804](https://github.com/ember-cli/ember-cli/pull/9804) Fix formatting of CI file in app and addon blueprints [@bertdeblock](https://github.com/bertdeblock)
|
|
22
|
+
- [#9817](https://github.com/ember-cli/ember-cli/pull/9817) update beta deps [@kellyselden](https://github.com/kellyselden)
|
|
23
|
+
|
|
24
|
+
## v4.2.0
|
|
25
|
+
|
|
26
|
+
#### Blueprint Changes
|
|
27
|
+
|
|
28
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.1.1...v4.2.0)
|
|
29
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.1.1...v4.2.0)
|
|
30
|
+
|
|
31
|
+
#### Changelog
|
|
32
|
+
|
|
33
|
+
- [#9681](https://github.com/ember-cli/ember-cli/pull/9681) Update URL to Ember CLI website everywhere [@bertdeblock](https://github.com/bertdeblock)
|
|
34
|
+
- [#9726](https://github.com/ember-cli/ember-cli/pull/9726) Cancel stale workflows when starting a new one. [@rwjblue](https://github.com/rwjblue)
|
|
35
|
+
- [#9731](https://github.com/ember-cli/ember-cli/pull/9731) Add an `assert` and a `deprecate` utility [@bertdeblock](https://github.com/bertdeblock)
|
|
36
|
+
- [#9753](https://github.com/ember-cli/ember-cli/pull/9753) Upgrade to `ember-template-lint` v4 in blueprint [@bmish](https://github.com/bmish)
|
|
37
|
+
|
|
38
|
+
Thank you to all who took the time to contribute!
|
|
39
|
+
|
|
3
40
|
## v4.1.1
|
|
4
41
|
|
|
5
42
|
#### Blueprint Changes
|
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
ember-cli
|
|
3
2
|
==============================================================================
|
|
4
3
|
|
|
@@ -65,7 +64,7 @@ Community
|
|
|
65
64
|
|
|
66
65
|
- Discord: [Get your invite](https://discord.gg/emberjs)
|
|
67
66
|
- Issues: [ember-cli/issues](https://github.com/ember-cli/ember-cli/issues)
|
|
68
|
-
- Documentation: [
|
|
67
|
+
- Documentation: [cli.emberjs.com](https://cli.emberjs.com/release/)
|
|
69
68
|
|
|
70
69
|
|
|
71
70
|
|
|
@@ -8,8 +8,8 @@ on:
|
|
|
8
8
|
pull_request: {}
|
|
9
9
|
|
|
10
10
|
concurrency:
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
group: ci-${{ github.head_ref || github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
15
|
test:
|
|
@@ -48,7 +48,7 @@ jobs:
|
|
|
48
48
|
try-scenarios:
|
|
49
49
|
name: ${{ matrix.try-scenario }}
|
|
50
50
|
runs-on: ubuntu-latest
|
|
51
|
-
needs:
|
|
51
|
+
needs: "test"
|
|
52
52
|
|
|
53
53
|
strategy:
|
|
54
54
|
fail-fast: false
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* `ember serve`
|
|
23
23
|
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
|
|
24
24
|
|
|
25
|
-
For more information on using ember-cli, visit [https://
|
|
25
|
+
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
|
|
@@ -5,5 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Setting `disableAnalytics` to true will prevent any data from being sent.
|
|
7
7
|
*/
|
|
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
|
|
9
15
|
}
|
|
@@ -10,7 +10,7 @@ You will need the following things properly installed on your computer.
|
|
|
10
10
|
* [Git](https://git-scm.com/)
|
|
11
11
|
* [Node.js](https://nodejs.org/)<% if (yarn) { %>
|
|
12
12
|
* [Yarn](https://yarnpkg.com/)<% } else { %> (with npm)<% } %>
|
|
13
|
-
* [Ember CLI](https://
|
|
13
|
+
* [Ember CLI](https://cli.emberjs.com/release/)
|
|
14
14
|
* [Google Chrome](https://google.com/chrome/)
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
@@ -51,7 +51,7 @@ Specify what it takes to deploy your app.
|
|
|
51
51
|
## Further Reading / Useful Links
|
|
52
52
|
|
|
53
53
|
* [ember.js](https://emberjs.com/)
|
|
54
|
-
* [ember-cli](https://
|
|
54
|
+
* [ember-cli](https://cli.emberjs.com/release/)
|
|
55
55
|
* Development Browser Extensions
|
|
56
56
|
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
|
|
57
57
|
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<html<% if(lang) { %> lang="<%= lang %>"<% } %>>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
5
|
<title><%= namespace %></title>
|
|
7
6
|
<meta name="description" content="">
|
|
8
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@ember/optional-features": "^2.0.0",
|
|
27
27
|
"@ember/test-helpers": "^2.6.0<% if (embroider) { %>",
|
|
28
|
-
"@embroider/compat": "^1.
|
|
29
|
-
"@embroider/core": "^1.
|
|
30
|
-
"@embroider/webpack": "^1.
|
|
28
|
+
"@embroider/compat": "^1.2.0",
|
|
29
|
+
"@embroider/core": "^1.2.0",
|
|
30
|
+
"@embroider/webpack": "^1.2.0<% } %>",
|
|
31
31
|
"@glimmer/component": "^1.0.4",
|
|
32
32
|
"@glimmer/tracking": "^1.0.4",
|
|
33
33
|
"babel-eslint": "^10.1.0",
|
|
34
34
|
"broccoli-asset-rev": "^3.0.0",
|
|
35
|
-
"ember-auto-import": "^2.
|
|
35
|
+
"ember-auto-import": "^2.4.0",
|
|
36
36
|
"ember-cli": "~<%= emberCLIVersion %>",
|
|
37
37
|
"ember-cli-app-version": "^5.0.0",
|
|
38
38
|
"ember-cli-babel": "^7.26.11",
|
|
@@ -41,28 +41,28 @@
|
|
|
41
41
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
42
42
|
"ember-cli-sri": "^2.1.1",
|
|
43
43
|
"ember-cli-terser": "^4.0.2",
|
|
44
|
-
"ember-data": "~4.
|
|
44
|
+
"ember-data": "~4.3.0-beta.0",
|
|
45
45
|
"ember-export-application-global": "^2.0.1",
|
|
46
46
|
"ember-fetch": "^8.1.1",
|
|
47
47
|
"ember-load-initializers": "^2.1.2",
|
|
48
48
|
"ember-page-title": "^7.0.0",
|
|
49
49
|
"ember-qunit": "^5.1.5",
|
|
50
50
|
"ember-resolver": "^8.0.3",
|
|
51
|
-
"ember-source": "~4.
|
|
52
|
-
"ember-template-lint": "^
|
|
53
|
-
"ember-welcome-page": "^6.
|
|
51
|
+
"ember-source": "~4.3.0-beta.1",
|
|
52
|
+
"ember-template-lint": "^4.2.0<% if (welcome) { %>",
|
|
53
|
+
"ember-welcome-page": "^6.1.0<% } %>",
|
|
54
54
|
"eslint": "^7.32.0",
|
|
55
|
-
"eslint-config-prettier": "^8.
|
|
56
|
-
"eslint-plugin-ember": "^10.5.
|
|
55
|
+
"eslint-config-prettier": "^8.4.0",
|
|
56
|
+
"eslint-plugin-ember": "^10.5.9",
|
|
57
57
|
"eslint-plugin-node": "^11.1.0",
|
|
58
58
|
"eslint-plugin-prettier": "^4.0.0",
|
|
59
59
|
"eslint-plugin-qunit": "^7.2.0",
|
|
60
60
|
"loader.js": "^4.7.0",
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
62
|
"prettier": "^2.5.1",
|
|
63
|
-
"qunit": "^2.
|
|
63
|
+
"qunit": "^2.18.0",
|
|
64
64
|
"qunit-dom": "^2.0.0",
|
|
65
|
-
"webpack": "^5.
|
|
65
|
+
"webpack": "^5.69.1"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "12.* || 14.* || >= 16"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
setupApplicationTest as upstreamSetupApplicationTest,
|
|
3
|
+
setupRenderingTest as upstreamSetupRenderingTest,
|
|
4
|
+
setupTest as upstreamSetupTest,
|
|
5
|
+
} from 'ember-qunit';
|
|
6
|
+
|
|
7
|
+
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
|
|
8
|
+
// test setup functions. This way, you can easily extend the setup that is
|
|
9
|
+
// needed per test type.
|
|
10
|
+
|
|
11
|
+
function setupApplicationTest(hooks, options) {
|
|
12
|
+
upstreamSetupApplicationTest(hooks, options);
|
|
13
|
+
|
|
14
|
+
// Additional setup for application tests can be done here.
|
|
15
|
+
//
|
|
16
|
+
// For example, if you need an authenticated session for each
|
|
17
|
+
// application test, you could do:
|
|
18
|
+
//
|
|
19
|
+
// hooks.beforeEach(async function () {
|
|
20
|
+
// await authenticateSession(); // ember-simple-auth
|
|
21
|
+
// });
|
|
22
|
+
//
|
|
23
|
+
// This is also a good place to call test setup functions coming
|
|
24
|
+
// from other addons:
|
|
25
|
+
//
|
|
26
|
+
// setupIntl(hooks); // ember-intl
|
|
27
|
+
// setupMirage(hooks); // ember-cli-mirage
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function setupRenderingTest(hooks, options) {
|
|
31
|
+
upstreamSetupRenderingTest(hooks, options);
|
|
32
|
+
|
|
33
|
+
// Additional setup for rendering tests can be done here.
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function setupTest(hooks, options) {
|
|
37
|
+
upstreamSetupTest(hooks, options);
|
|
38
|
+
|
|
39
|
+
// Additional setup for unit tests can be done here.
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { setupApplicationTest, setupRenderingTest, setupTest };
|