ember-cli 5.8.0-beta.0 → 5.9.0-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 +18 -3
- package/blueprints/addon/files/CONTRIBUTING.md +10 -10
- package/blueprints/addon/files/README.md +3 -8
- package/blueprints/addon/index.js +1 -0
- package/blueprints/app/files/README.md +23 -23
- package/blueprints/app/files/package.json +17 -17
- package/blueprints/app/index.js +1 -0
- package/docs/build/data.json +53 -53
- package/lib/models/blueprint.js +0 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
-
## v5.
|
|
3
|
+
## v5.9.0-beta.0
|
|
4
4
|
|
|
5
5
|
#### Blueprint Changes
|
|
6
6
|
|
|
7
|
-
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.
|
|
8
|
-
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.8.0...v5.9.0-beta.0)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.8.0...v5.9.0-beta.0)
|
|
9
|
+
|
|
10
|
+
#### Changelog
|
|
11
|
+
|
|
12
|
+
- [#10446](https://github.com/ember-cli/ember-cli/pull/10446) [ENHANCEMENT] Format markdown files in blueprints with Prettier [@bertdeblock](https://github.com/bertdeblock)
|
|
13
|
+
- [#10450](https://github.com/ember-cli/ember-cli/pull/10450) [ENHANCEMENT] Remove warning when encountering a `.js` file when generating a TS blueprint [@bertdeblock](https://github.com/bertdeblock)
|
|
14
|
+
- [#10452](https://github.com/ember-cli/ember-cli/pull/10452) [BUGFIX] Make sure to use the correct package manager in concurrently scripts [@bertdeblock](https://github.com/bertdeblock)
|
|
15
|
+
|
|
16
|
+
Thank you to all who took the time to contribute!
|
|
17
|
+
|
|
18
|
+
## v5.8.0
|
|
19
|
+
|
|
20
|
+
#### Blueprint Changes
|
|
21
|
+
|
|
22
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.7.0...v5.8.0)
|
|
23
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.7.0...v5.8.0)
|
|
9
24
|
|
|
10
25
|
#### Changelog
|
|
11
26
|
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
- `git clone <repository-url>`
|
|
6
|
+
- `cd <%= addonDirectory %>`
|
|
7
|
+
- `<% if (pnpm) { %>pnpm<% } else if (yarn) { %>yarn<% } else { %>npm<% } %> install`
|
|
8
8
|
|
|
9
9
|
## Linting
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
- `<%= invokeScriptPrefix %> lint`
|
|
12
|
+
- `<%= invokeScriptPrefix %> lint:fix`
|
|
13
13
|
|
|
14
14
|
## Running tests
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
- `<%= invokeScriptPrefix %> test` – Runs the test suite on the current Ember version
|
|
17
|
+
- `<%= invokeScriptPrefix %> test:ember <% if (npm) { %>-- <% } %>--server` – Runs the test suite in "watch mode"
|
|
18
|
+
- `<%= invokeScriptPrefix %> test:ember-compatibility` – Runs the test suite against multiple Ember versions
|
|
19
19
|
|
|
20
20
|
## Running the dummy application
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
- `<%= invokeScriptPrefix %> start`
|
|
23
|
+
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
|
|
24
24
|
|
|
25
25
|
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
[Short description of the addon.]
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
## Compatibility
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
- Ember.js v4.12 or above
|
|
8
|
+
- Ember CLI v4.12 or above
|
|
9
|
+
- Node.js v18 or above
|
|
12
10
|
|
|
13
11
|
## Installation
|
|
14
12
|
|
|
@@ -16,17 +14,14 @@
|
|
|
16
14
|
ember install <%= addonName %>
|
|
17
15
|
```
|
|
18
16
|
|
|
19
|
-
|
|
20
17
|
## Usage
|
|
21
18
|
|
|
22
19
|
[Longer description of how to use the addon in apps.]
|
|
23
20
|
|
|
24
|
-
|
|
25
21
|
## Contributing
|
|
26
22
|
|
|
27
23
|
See the [Contributing](CONTRIBUTING.md) guide for details.
|
|
28
24
|
|
|
29
|
-
|
|
30
25
|
## License
|
|
31
26
|
|
|
32
27
|
This project is licensed under the [MIT License](LICENSE.md).
|
|
@@ -7,24 +7,24 @@ A short introduction of this app could easily go here.
|
|
|
7
7
|
|
|
8
8
|
You will need the following things properly installed on your computer.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
- [Git](https://git-scm.com/)
|
|
11
|
+
- [Node.js](https://nodejs.org/)<% if (pnpm) { %>
|
|
12
|
+
- [pnpm](https://pnpm.io/)<% } else if (yarn) { %>
|
|
13
|
+
- [Yarn](https://yarnpkg.com/)<% } else { %> (with npm)<% } %>
|
|
14
|
+
- [Ember CLI](https://cli.emberjs.com/release/)
|
|
15
|
+
- [Google Chrome](https://google.com/chrome/)
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
- `git clone <repository-url>` this repository
|
|
20
|
+
- `cd <%= appDirectory %>`
|
|
21
|
+
- `<% if (pnpm) { %>pnpm<% } else if (yarn) { %>yarn<% } else { %>npm<% } %> install`
|
|
22
22
|
|
|
23
23
|
## Running / Development
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
- `<%= invokeScriptPrefix %> start`
|
|
26
|
+
- Visit your app at [http://localhost:4200](http://localhost:4200).
|
|
27
|
+
- Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
|
|
28
28
|
|
|
29
29
|
### Code Generators
|
|
30
30
|
|
|
@@ -32,18 +32,18 @@ Make use of the many generators for code, try `ember help generate` for more det
|
|
|
32
32
|
|
|
33
33
|
### Running Tests
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
- `<%= invokeScriptPrefix %> test`
|
|
36
|
+
- `<%= invokeScriptPrefix %> test:ember <% if (npm) { %>-- <% } %>--server`
|
|
37
37
|
|
|
38
38
|
### Linting
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
- `<%= invokeScriptPrefix %> lint`
|
|
41
|
+
- `<%= invokeScriptPrefix %> lint:fix`
|
|
42
42
|
|
|
43
43
|
### Building
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
- `<%= execBinPrefix %> ember build` (development)
|
|
46
|
+
- `<%= invokeScriptPrefix %> build` (production)
|
|
47
47
|
|
|
48
48
|
### Deploying
|
|
49
49
|
|
|
@@ -51,8 +51,8 @@ Specify what it takes to deploy your app.
|
|
|
51
51
|
|
|
52
52
|
## Further Reading / Useful Links
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
- [ember.js](https://emberjs.com/)
|
|
55
|
+
- [ember-cli](https://cli.emberjs.com/release/)
|
|
56
|
+
- Development Browser Extensions
|
|
57
|
+
- [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
|
|
58
|
+
- [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
|
|
@@ -12,34 +12,34 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "ember build --environment=production",
|
|
15
|
-
"lint": "concurrently \"
|
|
15
|
+
"lint": "concurrently \"<%= packageManager %>:lint:*(!fix)\" --names \"lint:\"",
|
|
16
16
|
"lint:css": "stylelint \"**/*.css\"",
|
|
17
|
-
"lint:css:fix": "concurrently \"
|
|
18
|
-
"lint:fix": "concurrently \"
|
|
17
|
+
"lint:css:fix": "concurrently \"<%= packageManager %>:lint:css -- --fix\"",
|
|
18
|
+
"lint:fix": "concurrently \"<%= packageManager %>:lint:*:fix\" --names \"fix:\"",
|
|
19
19
|
"lint:hbs": "ember-template-lint .",
|
|
20
20
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
21
21
|
"lint:js": "eslint . --cache",
|
|
22
22
|
"lint:js:fix": "eslint . --fix<% if (typescript) { %>",
|
|
23
23
|
"lint:types": "tsc --noEmit<% } %>",
|
|
24
24
|
"start": "ember serve",
|
|
25
|
-
"test": "concurrently \"
|
|
25
|
+
"test": "concurrently \"<%= packageManager %>:lint\" \"<%= packageManager %>:test:*\" --names \"lint,test:\"",
|
|
26
26
|
"test:ember": "ember test"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/core": "^7.24.
|
|
30
|
-
"<% if (!typescript) { %>@babel/eslint-parser": "^7.
|
|
31
|
-
"@babel/plugin-proposal-decorators": "^7.24.
|
|
29
|
+
"@babel/core": "^7.24.4",
|
|
30
|
+
"<% if (!typescript) { %>@babel/eslint-parser": "^7.24.1",
|
|
31
|
+
"@babel/plugin-proposal-decorators": "^7.24.1",
|
|
32
32
|
"<% } %>@ember/optional-features": "^2.1.0",
|
|
33
33
|
"@ember/string": "^3.1.1",
|
|
34
34
|
"@ember/test-helpers": "^3.3.0<% if (embroider) { %>",
|
|
35
|
-
"@embroider/compat": "^3.4.
|
|
36
|
-
"@embroider/core": "^3.4.
|
|
37
|
-
"@embroider/webpack": "^3.2.
|
|
35
|
+
"@embroider/compat": "^3.4.7",
|
|
36
|
+
"@embroider/core": "^3.4.7",
|
|
37
|
+
"@embroider/webpack": "^3.2.3<% } %>",
|
|
38
38
|
"@glimmer/component": "^1.1.2",
|
|
39
39
|
"@glimmer/tracking": "^1.1.2<% if (typescript) { %>",
|
|
40
|
-
"@glint/environment-ember-loose": "^1.
|
|
41
|
-
"@glint/template": "^1.
|
|
42
|
-
"@tsconfig/ember": "^3.0.
|
|
40
|
+
"@glint/environment-ember-loose": "^1.4.0",
|
|
41
|
+
"@glint/template": "^1.4.0",
|
|
42
|
+
"@tsconfig/ember": "^3.0.6",
|
|
43
43
|
"@types/ember": "^4.0.11",
|
|
44
44
|
"@types/ember-data": "^4.4.16",
|
|
45
45
|
"@types/ember-data__adapter": "^4.0.6",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"ember-fetch": "^8.1.2",
|
|
87
87
|
"ember-load-initializers": "^2.1.2",
|
|
88
88
|
"ember-modifier": "^4.1.0",
|
|
89
|
-
"ember-page-title": "^8.2.
|
|
89
|
+
"ember-page-title": "^8.2.3",
|
|
90
90
|
"ember-qunit": "^8.0.2",
|
|
91
91
|
"ember-resolver": "^11.0.1",
|
|
92
|
-
"ember-source": "~5.
|
|
92
|
+
"ember-source": "~5.9.0-beta.1",
|
|
93
93
|
"ember-template-lint": "^5.13.0<% if (welcome) { %>",
|
|
94
94
|
"ember-welcome-page": "^7.0.2<% } %>",
|
|
95
95
|
"eslint": "^8.57.0",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"stylelint-config-standard": "^34.0.0",
|
|
107
107
|
"stylelint-prettier": "^4.1.0",
|
|
108
108
|
"tracked-built-ins": "^3.3.0<% if (typescript) { %>",
|
|
109
|
-
"typescript": "^5.
|
|
110
|
-
"webpack": "^5.
|
|
109
|
+
"typescript": "^5.4.5<% } %>",
|
|
110
|
+
"webpack": "^5.91.0"
|
|
111
111
|
},
|
|
112
112
|
"engines": {
|
|
113
113
|
"node": ">= 18"
|
package/blueprints/app/index.js
CHANGED
package/docs/build/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"logo": "https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png",
|
|
4
4
|
"name": "ember-cli",
|
|
5
5
|
"description": "Command line tool for developing ambitious ember.js apps",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.9.0-beta.0-beta-de8f31e599"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"lib/broccoli/default-packager.js": {
|
|
@@ -3874,7 +3874,7 @@
|
|
|
3874
3874
|
},
|
|
3875
3875
|
{
|
|
3876
3876
|
"file": "lib/models/blueprint.js",
|
|
3877
|
-
"line":
|
|
3877
|
+
"line": 508,
|
|
3878
3878
|
"access": "private",
|
|
3879
3879
|
"tagname": "",
|
|
3880
3880
|
"itemtype": "method",
|
|
@@ -3895,7 +3895,7 @@
|
|
|
3895
3895
|
},
|
|
3896
3896
|
{
|
|
3897
3897
|
"file": "lib/models/blueprint.js",
|
|
3898
|
-
"line":
|
|
3898
|
+
"line": 524,
|
|
3899
3899
|
"access": "private",
|
|
3900
3900
|
"tagname": "",
|
|
3901
3901
|
"itemtype": "method",
|
|
@@ -3921,7 +3921,7 @@
|
|
|
3921
3921
|
},
|
|
3922
3922
|
{
|
|
3923
3923
|
"file": "lib/models/blueprint.js",
|
|
3924
|
-
"line":
|
|
3924
|
+
"line": 566,
|
|
3925
3925
|
"itemtype": "method",
|
|
3926
3926
|
"name": "install",
|
|
3927
3927
|
"params": [
|
|
@@ -3940,7 +3940,7 @@
|
|
|
3940
3940
|
},
|
|
3941
3941
|
{
|
|
3942
3942
|
"file": "lib/models/blueprint.js",
|
|
3943
|
-
"line":
|
|
3943
|
+
"line": 593,
|
|
3944
3944
|
"itemtype": "method",
|
|
3945
3945
|
"name": "uninstall",
|
|
3946
3946
|
"params": [
|
|
@@ -3959,7 +3959,7 @@
|
|
|
3959
3959
|
},
|
|
3960
3960
|
{
|
|
3961
3961
|
"file": "lib/models/blueprint.js",
|
|
3962
|
-
"line":
|
|
3962
|
+
"line": 615,
|
|
3963
3963
|
"description": "Hook for running operations before install.",
|
|
3964
3964
|
"itemtype": "method",
|
|
3965
3965
|
"name": "beforeInstall",
|
|
@@ -3972,7 +3972,7 @@
|
|
|
3972
3972
|
},
|
|
3973
3973
|
{
|
|
3974
3974
|
"file": "lib/models/blueprint.js",
|
|
3975
|
-
"line":
|
|
3975
|
+
"line": 622,
|
|
3976
3976
|
"description": "Hook for running operations after install.",
|
|
3977
3977
|
"itemtype": "method",
|
|
3978
3978
|
"name": "afterInstall",
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
},
|
|
3986
3986
|
{
|
|
3987
3987
|
"file": "lib/models/blueprint.js",
|
|
3988
|
-
"line":
|
|
3988
|
+
"line": 629,
|
|
3989
3989
|
"description": "Hook for running operations before uninstall.",
|
|
3990
3990
|
"itemtype": "method",
|
|
3991
3991
|
"name": "beforeUninstall",
|
|
@@ -3998,7 +3998,7 @@
|
|
|
3998
3998
|
},
|
|
3999
3999
|
{
|
|
4000
4000
|
"file": "lib/models/blueprint.js",
|
|
4001
|
-
"line":
|
|
4001
|
+
"line": 636,
|
|
4002
4002
|
"description": "Hook for running operations after uninstall.",
|
|
4003
4003
|
"itemtype": "method",
|
|
4004
4004
|
"name": "afterUninstall",
|
|
@@ -4011,7 +4011,7 @@
|
|
|
4011
4011
|
},
|
|
4012
4012
|
{
|
|
4013
4013
|
"file": "lib/models/blueprint.js",
|
|
4014
|
-
"line":
|
|
4014
|
+
"line": 645,
|
|
4015
4015
|
"description": "Hook for adding custom template variables.\n\nWhen the following is called on the command line:\n\n```sh\nember generate controller foo --type=array --dry-run isAdmin:true\n```\n\nThe object passed to `locals` looks like this:\n\n```js\n{\n entity: {\n name: 'foo',\n options: {\n isAdmin: true\n }\n },\n dryRun: true\n type: \"array\"\n // more keys\n}\n```\n\nThis hook must return an object or a Promise which resolves to an object.\nThe resolved object will be merged with the aforementioned default locals.",
|
|
4016
4016
|
"access": "public",
|
|
4017
4017
|
"tagname": "",
|
|
@@ -4033,7 +4033,7 @@
|
|
|
4033
4033
|
},
|
|
4034
4034
|
{
|
|
4035
4035
|
"file": "lib/models/blueprint.js",
|
|
4036
|
-
"line":
|
|
4036
|
+
"line": 680,
|
|
4037
4037
|
"description": "Hook to add additional or override existing fileMap tokens.\n\nUse `fileMapTokens` to add custom fileMap tokens for use\nin the `mapFile` method. The hook must return an object in the\nfollowing pattern:\n\n```js\n{\n __token__(options){\n // logic to determine value goes here\n return 'value';\n }\n}\n```\n\nIt will be merged with the default `fileMapTokens`, and can be used\nto override any of the default tokens.\n\nTokens are used in the files folder (see `files`), and get replaced with\nvalues when the `mapFile` method is called.",
|
|
4038
4038
|
"access": "public",
|
|
4039
4039
|
"tagname": "",
|
|
@@ -4048,7 +4048,7 @@
|
|
|
4048
4048
|
},
|
|
4049
4049
|
{
|
|
4050
4050
|
"file": "lib/models/blueprint.js",
|
|
4051
|
-
"line":
|
|
4051
|
+
"line": 708,
|
|
4052
4052
|
"access": "private",
|
|
4053
4053
|
"tagname": "",
|
|
4054
4054
|
"itemtype": "method",
|
|
@@ -4069,7 +4069,7 @@
|
|
|
4069
4069
|
},
|
|
4070
4070
|
{
|
|
4071
4071
|
"file": "lib/models/blueprint.js",
|
|
4072
|
-
"line":
|
|
4072
|
+
"line": 764,
|
|
4073
4073
|
"description": "Used to generate fileMap tokens for mapFile.",
|
|
4074
4074
|
"itemtype": "method",
|
|
4075
4075
|
"name": "generateFileMap",
|
|
@@ -4089,7 +4089,7 @@
|
|
|
4089
4089
|
},
|
|
4090
4090
|
{
|
|
4091
4091
|
"file": "lib/models/blueprint.js",
|
|
4092
|
-
"line":
|
|
4092
|
+
"line": 779,
|
|
4093
4093
|
"itemtype": "method",
|
|
4094
4094
|
"name": "buildFileInfo",
|
|
4095
4095
|
"params": [
|
|
@@ -4118,7 +4118,7 @@
|
|
|
4118
4118
|
},
|
|
4119
4119
|
{
|
|
4120
4120
|
"file": "lib/models/blueprint.js",
|
|
4121
|
-
"line":
|
|
4121
|
+
"line": 800,
|
|
4122
4122
|
"itemtype": "method",
|
|
4123
4123
|
"name": "isUpdate",
|
|
4124
4124
|
"return": {
|
|
@@ -4130,7 +4130,7 @@
|
|
|
4130
4130
|
},
|
|
4131
4131
|
{
|
|
4132
4132
|
"file": "lib/models/blueprint.js",
|
|
4133
|
-
"line":
|
|
4133
|
+
"line": 810,
|
|
4134
4134
|
"access": "private",
|
|
4135
4135
|
"tagname": "",
|
|
4136
4136
|
"itemtype": "method",
|
|
@@ -4161,7 +4161,7 @@
|
|
|
4161
4161
|
},
|
|
4162
4162
|
{
|
|
4163
4163
|
"file": "lib/models/blueprint.js",
|
|
4164
|
-
"line":
|
|
4164
|
+
"line": 822,
|
|
4165
4165
|
"description": "Add update files to ignored files or reset them",
|
|
4166
4166
|
"access": "private",
|
|
4167
4167
|
"tagname": "",
|
|
@@ -4172,7 +4172,7 @@
|
|
|
4172
4172
|
},
|
|
4173
4173
|
{
|
|
4174
4174
|
"file": "lib/models/blueprint.js",
|
|
4175
|
-
"line":
|
|
4175
|
+
"line": 835,
|
|
4176
4176
|
"access": "private",
|
|
4177
4177
|
"tagname": "",
|
|
4178
4178
|
"itemtype": "method",
|
|
@@ -4193,7 +4193,7 @@
|
|
|
4193
4193
|
},
|
|
4194
4194
|
{
|
|
4195
4195
|
"file": "lib/models/blueprint.js",
|
|
4196
|
-
"line":
|
|
4196
|
+
"line": 848,
|
|
4197
4197
|
"access": "private",
|
|
4198
4198
|
"tagname": "",
|
|
4199
4199
|
"itemtype": "method",
|
|
@@ -4215,7 +4215,7 @@
|
|
|
4215
4215
|
},
|
|
4216
4216
|
{
|
|
4217
4217
|
"file": "lib/models/blueprint.js",
|
|
4218
|
-
"line":
|
|
4218
|
+
"line": 862,
|
|
4219
4219
|
"itemtype": "method",
|
|
4220
4220
|
"name": "processFiles",
|
|
4221
4221
|
"params": [
|
|
@@ -4239,7 +4239,7 @@
|
|
|
4239
4239
|
},
|
|
4240
4240
|
{
|
|
4241
4241
|
"file": "lib/models/blueprint.js",
|
|
4242
|
-
"line":
|
|
4242
|
+
"line": 895,
|
|
4243
4243
|
"itemtype": "method",
|
|
4244
4244
|
"name": "processFilesForUninstall",
|
|
4245
4245
|
"params": [
|
|
@@ -4259,7 +4259,7 @@
|
|
|
4259
4259
|
},
|
|
4260
4260
|
{
|
|
4261
4261
|
"file": "lib/models/blueprint.js",
|
|
4262
|
-
"line":
|
|
4262
|
+
"line": 946,
|
|
4263
4263
|
"itemtype": "method",
|
|
4264
4264
|
"name": "mapFile",
|
|
4265
4265
|
"params": [
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
},
|
|
4283
4283
|
{
|
|
4284
4284
|
"file": "lib/models/blueprint.js",
|
|
4285
|
-
"line":
|
|
4285
|
+
"line": 963,
|
|
4286
4286
|
"description": "Looks for a __root__ token in the files folder. Must be present for\nthe blueprint to support addon tokens. The `server`, `blueprints`, and `test`",
|
|
4287
4287
|
"access": "private",
|
|
4288
4288
|
"tagname": "",
|
|
@@ -4297,7 +4297,7 @@
|
|
|
4297
4297
|
},
|
|
4298
4298
|
{
|
|
4299
4299
|
"file": "lib/models/blueprint.js",
|
|
4300
|
-
"line":
|
|
4300
|
+
"line": 975,
|
|
4301
4301
|
"access": "private",
|
|
4302
4302
|
"tagname": "",
|
|
4303
4303
|
"itemtype": "method",
|
|
@@ -4327,7 +4327,7 @@
|
|
|
4327
4327
|
},
|
|
4328
4328
|
{
|
|
4329
4329
|
"file": "lib/models/blueprint.js",
|
|
4330
|
-
"line":
|
|
4330
|
+
"line": 1005,
|
|
4331
4331
|
"access": "private",
|
|
4332
4332
|
"tagname": "",
|
|
4333
4333
|
"itemtype": "method",
|
|
@@ -4348,7 +4348,7 @@
|
|
|
4348
4348
|
},
|
|
4349
4349
|
{
|
|
4350
4350
|
"file": "lib/models/blueprint.js",
|
|
4351
|
-
"line":
|
|
4351
|
+
"line": 1038,
|
|
4352
4352
|
"description": "Used to add a package to the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
|
|
4353
4353
|
"itemtype": "method",
|
|
4354
4354
|
"name": "addPackageToProject",
|
|
@@ -4373,7 +4373,7 @@
|
|
|
4373
4373
|
},
|
|
4374
4374
|
{
|
|
4375
4375
|
"file": "lib/models/blueprint.js",
|
|
4376
|
-
"line":
|
|
4376
|
+
"line": 1060,
|
|
4377
4377
|
"description": "Used to add multiple packages to the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.\n\nExpects each array item to be an object with a `name`. Each object\nmay optionally have a `target` to specify a specific version.",
|
|
4378
4378
|
"itemtype": "method",
|
|
4379
4379
|
"name": "addPackagesToProject",
|
|
@@ -4396,7 +4396,7 @@
|
|
|
4396
4396
|
},
|
|
4397
4397
|
{
|
|
4398
4398
|
"file": "lib/models/blueprint.js",
|
|
4399
|
-
"line":
|
|
4399
|
+
"line": 1109,
|
|
4400
4400
|
"description": "Used to remove a package from the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that any package conflicts can be resolved before the\naddon is used.",
|
|
4401
4401
|
"itemtype": "method",
|
|
4402
4402
|
"name": "removePackageFromProject",
|
|
@@ -4416,7 +4416,7 @@
|
|
|
4416
4416
|
},
|
|
4417
4417
|
{
|
|
4418
4418
|
"file": "lib/models/blueprint.js",
|
|
4419
|
-
"line":
|
|
4419
|
+
"line": 1126,
|
|
4420
4420
|
"description": "Used to remove multiple packages from the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that any package conflicts can be resolved before the\naddon is used.\n\nExpects each array item to be an object with a `name` property.",
|
|
4421
4421
|
"itemtype": "method",
|
|
4422
4422
|
"name": "removePackagesFromProject",
|
|
@@ -4436,7 +4436,7 @@
|
|
|
4436
4436
|
},
|
|
4437
4437
|
{
|
|
4438
4438
|
"file": "lib/models/blueprint.js",
|
|
4439
|
-
"line":
|
|
4439
|
+
"line": 1167,
|
|
4440
4440
|
"description": "Used to add an addon to the project's `package.json` and run it's\n`defaultBlueprint` if it provides one.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
|
|
4441
4441
|
"itemtype": "method",
|
|
4442
4442
|
"name": "addAddonToProject",
|
|
@@ -4456,7 +4456,7 @@
|
|
|
4456
4456
|
},
|
|
4457
4457
|
{
|
|
4458
4458
|
"file": "lib/models/blueprint.js",
|
|
4459
|
-
"line":
|
|
4459
|
+
"line": 1187,
|
|
4460
4460
|
"description": "Used to add multiple addons to the project's `package.json` and run their\n`defaultBlueprint` if they provide one.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
|
|
4461
4461
|
"itemtype": "method",
|
|
4462
4462
|
"name": "addAddonsToProject",
|
|
@@ -4476,7 +4476,7 @@
|
|
|
4476
4476
|
},
|
|
4477
4477
|
{
|
|
4478
4478
|
"file": "lib/models/blueprint.js",
|
|
4479
|
-
"line":
|
|
4479
|
+
"line": 1264,
|
|
4480
4480
|
"description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `project`, etc).",
|
|
4481
4481
|
"itemtype": "method",
|
|
4482
4482
|
"name": "taskFor",
|
|
@@ -4493,7 +4493,7 @@
|
|
|
4493
4493
|
},
|
|
4494
4494
|
{
|
|
4495
4495
|
"file": "lib/models/blueprint.js",
|
|
4496
|
-
"line":
|
|
4496
|
+
"line": 1281,
|
|
4497
4497
|
"description": "Inserts the given content into a file. If the `contentsToInsert` string is already\npresent in the current contents, the file will not be changed unless `force` option\nis passed.\n\nIf `options.before` is specified, `contentsToInsert` will be inserted before\nthe first instance of that string. If `options.after` is specified, the\ncontents will be inserted after the first instance of that string.\nIf the string specified by options.before or options.after is not in the file,\nno change will be made.\n\nIf neither `options.before` nor `options.after` are present, `contentsToInsert`\nwill be inserted at the end of the file.\n\nExample:\n```\n// app/router.js\nRouter.map(function () {\n});\n```\n\n```\ninsertIntoFile('app/router.js', ' this.route(\"admin\");', {\n after: 'Router.map(function () {' + EOL\n}).then(function() {\n // file has been inserted into!\n});\n\n\n```\n\n```\n// app/router.js\nRouter.map(function () {\n this.route(\"admin\");\n});\n```",
|
|
4498
4498
|
"itemtype": "method",
|
|
4499
4499
|
"name": "insertIntoFile",
|
|
@@ -4523,7 +4523,7 @@
|
|
|
4523
4523
|
},
|
|
4524
4524
|
{
|
|
4525
4525
|
"file": "lib/models/blueprint.js",
|
|
4526
|
-
"line":
|
|
4526
|
+
"line": 1385,
|
|
4527
4527
|
"description": "Used to retrieve a blueprint with the given name.",
|
|
4528
4528
|
"itemtype": "method",
|
|
4529
4529
|
"name": "lookupBlueprint",
|
|
@@ -4545,7 +4545,7 @@
|
|
|
4545
4545
|
},
|
|
4546
4546
|
{
|
|
4547
4547
|
"file": "lib/models/blueprint.js",
|
|
4548
|
-
"line":
|
|
4548
|
+
"line": 1402,
|
|
4549
4549
|
"static": 1,
|
|
4550
4550
|
"itemtype": "method",
|
|
4551
4551
|
"name": "lookup",
|
|
@@ -4592,7 +4592,7 @@
|
|
|
4592
4592
|
},
|
|
4593
4593
|
{
|
|
4594
4594
|
"file": "lib/models/blueprint.js",
|
|
4595
|
-
"line":
|
|
4595
|
+
"line": 1443,
|
|
4596
4596
|
"description": "Loads a blueprint from given path.",
|
|
4597
4597
|
"static": 1,
|
|
4598
4598
|
"itemtype": "method",
|
|
@@ -4620,7 +4620,7 @@
|
|
|
4620
4620
|
},
|
|
4621
4621
|
{
|
|
4622
4622
|
"file": "lib/models/blueprint.js",
|
|
4623
|
-
"line":
|
|
4623
|
+
"line": 1471,
|
|
4624
4624
|
"static": 1,
|
|
4625
4625
|
"itemtype": "method",
|
|
4626
4626
|
"name": "list",
|
|
@@ -4650,7 +4650,7 @@
|
|
|
4650
4650
|
},
|
|
4651
4651
|
{
|
|
4652
4652
|
"file": "lib/models/blueprint.js",
|
|
4653
|
-
"line":
|
|
4653
|
+
"line": 1520,
|
|
4654
4654
|
"description": "Files that are renamed when installed into the target directory.\nThis allows including files in the blueprint that would have an effect\non another process, such as a file named `.gitignore`.\n\nThe keys are the filenames used in the files folder.\nThe values are the filenames used in the target directory.",
|
|
4655
4655
|
"static": 1,
|
|
4656
4656
|
"itemtype": "property",
|
|
@@ -4661,7 +4661,7 @@
|
|
|
4661
4661
|
},
|
|
4662
4662
|
{
|
|
4663
4663
|
"file": "lib/models/blueprint.js",
|
|
4664
|
-
"line":
|
|
4664
|
+
"line": 1535,
|
|
4665
4665
|
"static": 1,
|
|
4666
4666
|
"itemtype": "property",
|
|
4667
4667
|
"name": "ignoredFiles",
|
|
@@ -4671,7 +4671,7 @@
|
|
|
4671
4671
|
},
|
|
4672
4672
|
{
|
|
4673
4673
|
"file": "lib/models/blueprint.js",
|
|
4674
|
-
"line":
|
|
4674
|
+
"line": 1541,
|
|
4675
4675
|
"static": 1,
|
|
4676
4676
|
"itemtype": "property",
|
|
4677
4677
|
"name": "ignoredUpdateFiles",
|
|
@@ -4681,7 +4681,7 @@
|
|
|
4681
4681
|
},
|
|
4682
4682
|
{
|
|
4683
4683
|
"file": "lib/models/blueprint.js",
|
|
4684
|
-
"line":
|
|
4684
|
+
"line": 1547,
|
|
4685
4685
|
"static": 1,
|
|
4686
4686
|
"itemtype": "property",
|
|
4687
4687
|
"name": "defaultLookupPaths",
|
|
@@ -4691,7 +4691,7 @@
|
|
|
4691
4691
|
},
|
|
4692
4692
|
{
|
|
4693
4693
|
"file": "lib/models/blueprint.js",
|
|
4694
|
-
"line":
|
|
4694
|
+
"line": 1555,
|
|
4695
4695
|
"access": "private",
|
|
4696
4696
|
"tagname": "",
|
|
4697
4697
|
"itemtype": "method",
|
|
@@ -4713,7 +4713,7 @@
|
|
|
4713
4713
|
},
|
|
4714
4714
|
{
|
|
4715
4715
|
"file": "lib/models/blueprint.js",
|
|
4716
|
-
"line":
|
|
4716
|
+
"line": 1568,
|
|
4717
4717
|
"access": "private",
|
|
4718
4718
|
"tagname": "",
|
|
4719
4719
|
"itemtype": "method",
|
|
@@ -4731,7 +4731,7 @@
|
|
|
4731
4731
|
},
|
|
4732
4732
|
{
|
|
4733
4733
|
"file": "lib/models/blueprint.js",
|
|
4734
|
-
"line":
|
|
4734
|
+
"line": 1579,
|
|
4735
4735
|
"access": "private",
|
|
4736
4736
|
"tagname": "",
|
|
4737
4737
|
"itemtype": "method",
|
|
@@ -4749,7 +4749,7 @@
|
|
|
4749
4749
|
},
|
|
4750
4750
|
{
|
|
4751
4751
|
"file": "lib/models/blueprint.js",
|
|
4752
|
-
"line":
|
|
4752
|
+
"line": 1588,
|
|
4753
4753
|
"access": "private",
|
|
4754
4754
|
"tagname": "",
|
|
4755
4755
|
"itemtype": "method",
|
|
@@ -4776,7 +4776,7 @@
|
|
|
4776
4776
|
},
|
|
4777
4777
|
{
|
|
4778
4778
|
"file": "lib/models/blueprint.js",
|
|
4779
|
-
"line":
|
|
4779
|
+
"line": 1602,
|
|
4780
4780
|
"access": "private",
|
|
4781
4781
|
"tagname": "",
|
|
4782
4782
|
"itemtype": "method",
|
|
@@ -4798,7 +4798,7 @@
|
|
|
4798
4798
|
},
|
|
4799
4799
|
{
|
|
4800
4800
|
"file": "lib/models/blueprint.js",
|
|
4801
|
-
"line":
|
|
4801
|
+
"line": 1614,
|
|
4802
4802
|
"description": "Combines provided lookup paths with defaults and removes\nduplicates.",
|
|
4803
4803
|
"access": "private",
|
|
4804
4804
|
"tagname": "",
|
|
@@ -4821,7 +4821,7 @@
|
|
|
4821
4821
|
},
|
|
4822
4822
|
{
|
|
4823
4823
|
"file": "lib/models/blueprint.js",
|
|
4824
|
-
"line":
|
|
4824
|
+
"line": 1629,
|
|
4825
4825
|
"description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
|
|
4826
4826
|
"access": "private",
|
|
4827
4827
|
"tagname": "",
|
|
@@ -4844,7 +4844,7 @@
|
|
|
4844
4844
|
},
|
|
4845
4845
|
{
|
|
4846
4846
|
"file": "lib/models/blueprint.js",
|
|
4847
|
-
"line":
|
|
4847
|
+
"line": 1668,
|
|
4848
4848
|
"access": "private",
|
|
4849
4849
|
"tagname": "",
|
|
4850
4850
|
"itemtype": "method",
|
|
@@ -4866,7 +4866,7 @@
|
|
|
4866
4866
|
},
|
|
4867
4867
|
{
|
|
4868
4868
|
"file": "lib/models/blueprint.js",
|
|
4869
|
-
"line":
|
|
4869
|
+
"line": 1682,
|
|
4870
4870
|
"access": "private",
|
|
4871
4871
|
"tagname": "",
|
|
4872
4872
|
"itemtype": "method",
|
|
@@ -4888,7 +4888,7 @@
|
|
|
4888
4888
|
},
|
|
4889
4889
|
{
|
|
4890
4890
|
"file": "lib/models/blueprint.js",
|
|
4891
|
-
"line":
|
|
4891
|
+
"line": 1692,
|
|
4892
4892
|
"access": "private",
|
|
4893
4893
|
"tagname": "",
|
|
4894
4894
|
"itemtype": "method",
|
|
@@ -4903,7 +4903,7 @@
|
|
|
4903
4903
|
},
|
|
4904
4904
|
{
|
|
4905
4905
|
"file": "lib/models/blueprint.js",
|
|
4906
|
-
"line":
|
|
4906
|
+
"line": 1705,
|
|
4907
4907
|
"access": "private",
|
|
4908
4908
|
"tagname": "",
|
|
4909
4909
|
"itemtype": "method",
|
|
@@ -4925,7 +4925,7 @@
|
|
|
4925
4925
|
},
|
|
4926
4926
|
{
|
|
4927
4927
|
"file": "lib/models/blueprint.js",
|
|
4928
|
-
"line":
|
|
4928
|
+
"line": 1755,
|
|
4929
4929
|
"description": "Takes a substring of a string based on byte offsets.",
|
|
4930
4930
|
"access": "private",
|
|
4931
4931
|
"tagname": "",
|
package/lib/models/blueprint.js
CHANGED
|
@@ -481,21 +481,6 @@ let Blueprint = CoreObject.extend({
|
|
|
481
481
|
|
|
482
482
|
// If the blueprint isn't a TS file to begin with, there's nothing to convert.
|
|
483
483
|
if (!isTypeScriptFile(fileInfo.outputPath)) {
|
|
484
|
-
// If the user wants TypeScript output but there is no TypeScript blueprint available, we want
|
|
485
|
-
// to warn them that they're not going to get what they're expecting while still at least giving
|
|
486
|
-
// them the JS output. We check for this *after* checking `shouldTranformTypeScript` because
|
|
487
|
-
// it's possible for people to set `{typescript: true}` in their `.ember-cli` file, which would
|
|
488
|
-
// then erroneously trigger this message every time they generate a JS blueprint even though
|
|
489
|
-
// they didn't pass the flag.
|
|
490
|
-
if (options.typescript === true && isJavaScriptFile(fileInfo.outputPath)) {
|
|
491
|
-
this.ui.writeLine(
|
|
492
|
-
chalk.yellow(
|
|
493
|
-
"You passed the '--typescript' flag but there is no TypeScript blueprint available. " +
|
|
494
|
-
'A JavaScript blueprint will be generated instead.'
|
|
495
|
-
)
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
484
|
return false;
|
|
500
485
|
}
|
|
501
486
|
|
|
@@ -1767,10 +1752,6 @@ function isTypeScriptFile(filePath) {
|
|
|
1767
1752
|
return path.extname(filePath) === '.ts' || path.extname(filePath) === '.gts';
|
|
1768
1753
|
}
|
|
1769
1754
|
|
|
1770
|
-
function isJavaScriptFile(filePath) {
|
|
1771
|
-
return path.extname(filePath) === '.js' || path.extname(filePath) === '.gjs';
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
1755
|
/**
|
|
1775
1756
|
* Takes a substring of a string based on byte offsets.
|
|
1776
1757
|
* @private
|