ember-cli 3.28.1 → 4.0.0-beta.2
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 +4 -0
- package/CHANGELOG.md +70 -0
- package/README.md +1 -1
- package/blueprints/addon/additional-dev-dependencies.json +1 -1
- package/blueprints/addon/files/.github/workflows/ci.yml +73 -0
- package/blueprints/addon/files/.travis.yml +1 -1
- package/blueprints/addon/files/addon-config/ember-try.js +3 -0
- package/blueprints/addon/files/npmignore +4 -0
- package/blueprints/addon/index.js +14 -5
- package/blueprints/app/files/.eslintignore +3 -0
- package/blueprints/app/files/.eslintrc.js +1 -1
- package/blueprints/app/files/.github/workflows/ci.yml +41 -0
- package/blueprints/app/files/.prettierignore +4 -0
- package/blueprints/app/files/config/targets.js +0 -15
- package/blueprints/app/files/gitignore +3 -0
- package/blueprints/app/files/package.json +15 -16
- package/blueprints/app/index.js +23 -2
- package/docs/build/classes/Addon.html +1 -1
- package/docs/build/classes/AmdTransformAddon.html +1 -1
- package/docs/build/classes/Blueprint.html +1 -1
- package/docs/build/classes/Builder.html +1 -1
- package/docs/build/classes/CLI.html +1 -1
- package/docs/build/classes/Command.html +1 -1
- package/docs/build/classes/DefaultPackager.html +1 -1
- package/docs/build/classes/EmberAddon.html +39 -39
- package/docs/build/classes/EmberApp.html +39 -39
- package/docs/build/classes/HardwareInfo.html +1 -1
- package/docs/build/classes/HistorySupportAddon.html +1 -1
- package/docs/build/classes/Instrumentation.html +1 -1
- package/docs/build/classes/NodeModulesList.html +1 -1
- package/docs/build/classes/NpmTask.html +4 -4
- package/docs/build/classes/PackageInfo.html +1 -1
- package/docs/build/classes/PackageInfoCache.html +1 -1
- package/docs/build/classes/PerBundleAddonCache {.html +1 -1
- package/docs/build/classes/Project.html +1 -1
- package/docs/build/classes/ServeFilesAddon.html +1 -1
- package/docs/build/classes/TestsServerAddon.html +1 -1
- package/docs/build/classes/WatcherAddon.html +1 -1
- package/docs/build/classes/WindowsSymlinkChecker.html +1 -1
- package/docs/build/data.json +36 -36
- package/docs/build/files/lib_broccoli_default-packager.js.html +1 -1
- package/docs/build/files/lib_broccoli_ember-addon.js.html +1 -1
- package/docs/build/files/lib_broccoli_ember-app.js.html +63 -21
- package/docs/build/files/lib_cli_cli.js.html +1 -1
- package/docs/build/files/lib_models_addon-info.js.html +1 -1
- package/docs/build/files/lib_models_addon.js.html +1 -1
- package/docs/build/files/lib_models_blueprint.js.html +5 -5
- package/docs/build/files/lib_models_builder.js.html +1 -1
- package/docs/build/files/lib_models_command.js.html +1 -1
- package/docs/build/files/lib_models_hardware-info.js.html +1 -1
- package/docs/build/files/lib_models_host-info-cache.js.html +1 -1
- package/docs/build/files/lib_models_installation-checker.js.html +1 -1
- package/docs/build/files/lib_models_instantiate-addons.js.html +1 -1
- package/docs/build/files/lib_models_instrumentation.js.html +1 -1
- package/docs/build/files/lib_models_package-info-cache_index.js.html +1 -1
- package/docs/build/files/lib_models_package-info-cache_node-modules-list.js.html +1 -1
- package/docs/build/files/lib_models_package-info-cache_package-info.js.html +1 -1
- package/docs/build/files/lib_models_per-bundle-addon-cache_addon-proxy.js.html +1 -1
- package/docs/build/files/lib_models_per-bundle-addon-cache_index.js.html +1 -1
- package/docs/build/files/lib_models_per-bundle-addon-cache_target-instance.js.html +1 -1
- package/docs/build/files/lib_models_project.js.html +1 -1
- package/docs/build/files/lib_models_task.js.html +1 -1
- package/docs/build/files/lib_tasks_build-watch.js.html +1 -1
- package/docs/build/files/lib_tasks_npm-task.js.html +134 -46
- package/docs/build/files/lib_tasks_serve.js.html +1 -1
- package/docs/build/files/lib_tasks_server_middleware_broccoli-serve-files_index.js.html +1 -1
- package/docs/build/files/lib_tasks_server_middleware_broccoli-watcher_index.js.html +1 -1
- package/docs/build/files/lib_tasks_server_middleware_history-support_index.js.html +1 -1
- package/docs/build/files/lib_tasks_server_middleware_tests-server_index.js.html +1 -1
- package/docs/build/files/lib_tasks_test-server.js.html +1 -1
- package/docs/build/files/lib_tasks_transforms_amd_index.js.html +1 -1
- package/docs/build/files/lib_utilities_ember-app-utils.js.html +1 -1
- package/docs/build/files/lib_utilities_insert-into-file.js.html +1 -1
- package/docs/build/files/lib_utilities_is-lazy-engine.js.html +1 -1
- package/docs/build/files/lib_utilities_is-yarn-project.js.html +1 -1
- package/docs/build/files/lib_utilities_valid-project-name.js.html +1 -1
- package/docs/build/files/lib_utilities_will-interrupt-process.js.html +1 -1
- package/docs/build/files/lib_utilities_windows-admin.js.html +1 -1
- package/docs/build/index.html +2 -2
- package/docs/build/modules/ember-cli.html +2 -2
- package/docs/build/modules/is-lazy-engine.html +1 -1
- package/docs/perf-guide.md +2 -0
- package/lib/broccoli/ember-app.js +62 -20
- package/lib/commands/addon.js +6 -0
- package/lib/commands/init.js +9 -1
- package/lib/commands/install.js +9 -1
- package/lib/commands/new.js +6 -0
- package/lib/models/blueprint.js +4 -4
- package/lib/tasks/addon-install.js +10 -1
- package/lib/tasks/generate-from-blueprint.js +0 -1
- package/lib/tasks/install-blueprint.js +1 -1
- package/lib/tasks/npm-install.js +2 -2
- package/lib/tasks/npm-task.js +133 -45
- package/lib/tasks/npm-uninstall.js +2 -2
- package/package.json +2 -2
- package/tests/helpers/dist-checker.js +21 -1
- package/tests/helpers/ember.js +2 -2
package/.github/workflows/ci.yml
CHANGED
|
@@ -24,6 +24,7 @@ jobs:
|
|
|
24
24
|
- uses: actions/setup-node@v2.1.5
|
|
25
25
|
with:
|
|
26
26
|
node-version: 12.x
|
|
27
|
+
cache: 'yarn'
|
|
27
28
|
|
|
28
29
|
- run: yarn install --frozen-lockfile --non-interactive
|
|
29
30
|
- run: yarn lint
|
|
@@ -41,6 +42,7 @@ jobs:
|
|
|
41
42
|
- uses: actions/setup-node@v2.1.5
|
|
42
43
|
with:
|
|
43
44
|
node-version: 12.x
|
|
45
|
+
cache: 'yarn'
|
|
44
46
|
|
|
45
47
|
- run: yarn install --frozen-lockfile --non-interactive
|
|
46
48
|
- run: yarn test
|
|
@@ -62,6 +64,7 @@ jobs:
|
|
|
62
64
|
- uses: actions/setup-node@v2.1.5
|
|
63
65
|
with:
|
|
64
66
|
node-version: ${{ matrix.node-version }}
|
|
67
|
+
cache: 'yarn'
|
|
65
68
|
|
|
66
69
|
- run: yarn install --frozen-lockfile --non-interactive
|
|
67
70
|
- run: yarn test:all
|
|
@@ -86,6 +89,7 @@ jobs:
|
|
|
86
89
|
- uses: actions/setup-node@v2.1.5
|
|
87
90
|
with:
|
|
88
91
|
node-version: 12.x
|
|
92
|
+
cache: 'yarn'
|
|
89
93
|
|
|
90
94
|
- run: yarn install --frozen-lockfile --non-interactive
|
|
91
95
|
- run: yarn test:all
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## v4.0.0-beta.2
|
|
5
|
+
|
|
6
|
+
#### Blueprint Changes
|
|
7
|
+
|
|
8
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.0.0-beta.1...v4.0.0-beta.2)
|
|
9
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.0.0-beta.1...v4.0.0-beta.2)
|
|
10
|
+
|
|
11
|
+
#### Changelog
|
|
12
|
+
|
|
13
|
+
- [#9659](https://github.com/ember-cli/ember-cli/pull/9659) Ensure `ember-classic` ember-try scenario uses Ember 3.x [@rwjblue](https://github.com/rwjblue)
|
|
14
|
+
- [#9661](https://github.com/ember-cli/ember-cli/pull/9661) Set default CI config blueprints to run all builds [@elwayman02](https://github.com/elwayman02)
|
|
15
|
+
- [#9666](https://github.com/ember-cli/ember-cli/pull/9666) Remove IE11 comments from `config/target.js` in app blueprint [@bertdeblock](https://github.com/bertdeblock)
|
|
16
|
+
- [#9667](https://github.com/ember-cli/ember-cli/pull/9667) Update eslint-plugin-qunit to v7 in blueprint [@bmish](https://github.com/bmish)
|
|
17
|
+
- [#9670](https://github.com/ember-cli/ember-cli/pull/9670) Don't emit an error when the `lint:fix` script fails post blueprint generation [@bertdeblock](https://github.com/bertdeblock)
|
|
18
|
+
|
|
19
|
+
Thank you to all who took the time to contribute!
|
|
20
|
+
|
|
21
|
+
## v3.28.3
|
|
22
|
+
|
|
23
|
+
#### Blueprint Changes
|
|
24
|
+
|
|
25
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.28.2...v3.28.3)
|
|
26
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.28.2...v3.28.3)
|
|
27
|
+
|
|
28
|
+
#### Changelog
|
|
29
|
+
|
|
30
|
+
- [#9670](https://github.com/ember-cli/ember-cli/pull/9670) Don't emit an error when the `lint:fix` script fails post blueprint generation [@bertdeblock](https://github.com/bertdeblock)
|
|
31
|
+
|
|
32
|
+
Thank you to all who took the time to contribute!
|
|
33
|
+
|
|
34
|
+
## v3.28.2
|
|
35
|
+
|
|
36
|
+
#### Blueprint Changes
|
|
37
|
+
|
|
38
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.28.1...v3.28.2)
|
|
39
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.28.1...v3.28.2)
|
|
40
|
+
|
|
41
|
+
#### Changelog
|
|
42
|
+
|
|
43
|
+
- [#9659](https://github.com/ember-cli/ember-cli/pull/9659) Ensure `ember-classic` ember-try scenario uses Ember 3.x [@rwjblue](https://github.com/rwjblue)
|
|
44
|
+
|
|
45
|
+
Thank you to all who took the time to contribute!
|
|
46
|
+
|
|
3
47
|
## v3.28.1
|
|
4
48
|
|
|
5
49
|
#### Blueprint Changes
|
|
@@ -11,6 +55,32 @@
|
|
|
11
55
|
|
|
12
56
|
- [#9618](https://github.com/ember-cli/ember-cli/pull/9618) Ensure discovered addons are refreshed after `ember install` (fix usage of default blueprints) [@brendenpalmer](https://github.com/brendenpalmer)
|
|
13
57
|
|
|
58
|
+
## v4.0.0-beta.1
|
|
59
|
+
|
|
60
|
+
#### Blueprint Changes
|
|
61
|
+
|
|
62
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.28.0...v4.0.0-beta.1)
|
|
63
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.28.0...v4.0.0-beta.1)
|
|
64
|
+
|
|
65
|
+
#### Changelog
|
|
66
|
+
|
|
67
|
+
- [#9574](https://github.com/ember-cli/ember-cli/pull/9574) Update link to Discord in README.md [@MelSumner](https://github.com/MelSumner)
|
|
68
|
+
- [#9613](https://github.com/ember-cli/ember-cli/pull/9613) Fix test that started failing with v2.17.0 of qunit [@kategengler](https://github.com/kategengler)
|
|
69
|
+
- [#9579](https://github.com/ember-cli/ember-cli/pull/9579) Add `--ci-provider` option to `ember new` and `ember addon` [@snewcomer](https://github.com/snewcomer)
|
|
70
|
+
- [#9618](https://github.com/ember-cli/ember-cli/pull/9618) Reload `_packageInfo` as part of `reloadPkg` [@brendenpalmer](https://github.com/brendenpalmer)
|
|
71
|
+
- [#9563](https://github.com/ember-cli/ember-cli/pull/9563) Add `pnpm` support to `ember install` command [@Turbo87](https://github.com/Turbo87)
|
|
72
|
+
- [#9580](https://github.com/ember-cli/ember-cli/pull/9580) Add `.lint-todo` to prettier ignore [@elwayman02](https://github.com/elwayman02)
|
|
73
|
+
- [#9589](https://github.com/ember-cli/ember-cli/pull/9589) Add link to visualizer to perf guide [@mehulkar](https://github.com/mehulkar)
|
|
74
|
+
- [#9595](https://github.com/ember-cli/ember-cli/pull/9595) Add support for `addons.exclude` and `addons.include` options [@bertdeblock](https://github.com/bertdeblock)
|
|
75
|
+
- [#9623](https://github.com/ember-cli/ember-cli/pull/9623) Update app/addon blueprints to use ember-auto-import@2 [@rwjblue](https://github.com/rwjblue)
|
|
76
|
+
- [#9619](https://github.com/ember-cli/ember-cli/pull/9619) Update watch-detector to 1.0.1 [@colenso](https://github.com/colenso)
|
|
77
|
+
- [#9627](https://github.com/ember-cli/ember-cli/pull/9627) Update app & addon blueprint dependencies to latest [@rwjblue](https://github.com/rwjblue)
|
|
78
|
+
- [#9605](https://github.com/ember-cli/ember-cli/pull/9605) Properly set `loglevel` flag for npm [@jrvidal](https://github.com/jrvidal)
|
|
79
|
+
- [#9609](https://github.com/ember-cli/ember-cli/pull/9609) Ignore additional `ember-try` files for apps and addons [@bertdeblock](https://github.com/bertdeblock)
|
|
80
|
+
- [#9644](https://github.com/ember-cli/ember-cli/pull/9644) Default `ember new` and `ember addon` to use GitHub Actions [@rwjblue](https://github.com/rwjblue)
|
|
81
|
+
|
|
82
|
+
Thank you to all who took the time to contribute!
|
|
83
|
+
|
|
14
84
|
## v3.28.0
|
|
15
85
|
|
|
16
86
|
#### Blueprint Changes
|
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ Please see the [contributing guidelines](https://github.com/ember-cli/ember-cli/
|
|
|
63
63
|
Community
|
|
64
64
|
------------------------------------------------------------------------------
|
|
65
65
|
|
|
66
|
-
- Discord: [Get your invite](https://
|
|
66
|
+
- Discord: [Get your invite](https://discord.gg/emberjs)
|
|
67
67
|
- Issues: [ember-cli/issues](https://github.com/ember-cli/ember-cli/issues)
|
|
68
68
|
- Documentation: [ember-cli.com](https://cli.emberjs.com/release/)
|
|
69
69
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- master
|
|
8
|
+
pull_request: {}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
name: "Tests"
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v2
|
|
17
|
+
- name: Install Node
|
|
18
|
+
uses: actions/setup-node@v2
|
|
19
|
+
with:
|
|
20
|
+
node-version: 12.x
|
|
21
|
+
cache: <%= yarn ? 'yarn' : 'npm' %>
|
|
22
|
+
- name: Install Dependencies
|
|
23
|
+
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
|
|
24
|
+
- name: Lint
|
|
25
|
+
run: <%= yarn ? 'yarn' : 'npm run' %> lint
|
|
26
|
+
- name: Run Tests
|
|
27
|
+
run: <%= yarn ? 'yarn' : 'npm run' %> test:ember
|
|
28
|
+
|
|
29
|
+
floating:
|
|
30
|
+
name: "Floating Dependencies"
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v2
|
|
35
|
+
- uses: actions/setup-node@v2
|
|
36
|
+
with:
|
|
37
|
+
node-version: 12.x
|
|
38
|
+
cache: <%= yarn ? 'yarn' : 'npm' %>
|
|
39
|
+
- name: Install Dependencies
|
|
40
|
+
run: <%= yarn ? 'yarn install --no-lockfile' : 'npm install --no-shrinkwrap' %>
|
|
41
|
+
- name: Run Tests
|
|
42
|
+
run: <%= yarn ? 'yarn' : 'npm run' %> test:ember
|
|
43
|
+
|
|
44
|
+
try-scenarios:
|
|
45
|
+
name: ${{ matrix.try-scenario }}
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
needs: 'test'
|
|
48
|
+
|
|
49
|
+
strategy:
|
|
50
|
+
fail-fast: false
|
|
51
|
+
matrix:
|
|
52
|
+
try-scenario:
|
|
53
|
+
- ember-lts-3.20
|
|
54
|
+
- ember-lts-3.24
|
|
55
|
+
- ember-release
|
|
56
|
+
- ember-beta
|
|
57
|
+
- ember-canary
|
|
58
|
+
- ember-classic
|
|
59
|
+
- ember-default-with-jquery
|
|
60
|
+
- embroider-safe
|
|
61
|
+
- embroider-optimized
|
|
62
|
+
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/checkout@v2
|
|
65
|
+
- name: Install Node
|
|
66
|
+
uses: actions/setup-node@v2
|
|
67
|
+
with:
|
|
68
|
+
node-version: 12.x
|
|
69
|
+
cache: <%= yarn ? 'yarn' : 'npm' %>
|
|
70
|
+
- name: Install Dependencies
|
|
71
|
+
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
|
|
72
|
+
- name: Run Tests
|
|
73
|
+
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
/.eslintignore
|
|
15
15
|
/.eslintrc.js
|
|
16
16
|
/.git/
|
|
17
|
+
/.github/
|
|
17
18
|
/.gitignore
|
|
18
19
|
/.prettierignore
|
|
19
20
|
/.prettierrc.js
|
|
@@ -33,4 +34,7 @@
|
|
|
33
34
|
# ember-try
|
|
34
35
|
/.node_modules.ember-try/
|
|
35
36
|
/bower.json.ember-try
|
|
37
|
+
/npm-shrinkwrap.json.ember-try
|
|
36
38
|
/package.json.ember-try
|
|
39
|
+
/package-lock.json.ember-try
|
|
40
|
+
/yarn.lock.ember-try
|
|
@@ -132,7 +132,7 @@ module.exports = {
|
|
|
132
132
|
let addonName = stringUtil.dasherize(addonRawName);
|
|
133
133
|
let addonNamespace = stringUtil.classify(addonRawName);
|
|
134
134
|
|
|
135
|
-
let hasOptions = options.welcome || options.yarn;
|
|
135
|
+
let hasOptions = options.welcome || options.yarn || options.ciProvider;
|
|
136
136
|
let blueprintOptions = '';
|
|
137
137
|
if (hasOptions) {
|
|
138
138
|
let indent = `\n `;
|
|
@@ -140,7 +140,13 @@ module.exports = {
|
|
|
140
140
|
|
|
141
141
|
blueprintOptions =
|
|
142
142
|
indent +
|
|
143
|
-
[
|
|
143
|
+
[
|
|
144
|
+
options.welcome && '"--welcome"',
|
|
145
|
+
options.yarn && '"--yarn"',
|
|
146
|
+
options.ciProvider && `"--ci-provider=${options.ciProvider}"`,
|
|
147
|
+
]
|
|
148
|
+
.filter(Boolean)
|
|
149
|
+
.join(',\n ') +
|
|
144
150
|
outdent;
|
|
145
151
|
}
|
|
146
152
|
|
|
@@ -158,13 +164,16 @@ module.exports = {
|
|
|
158
164
|
blueprintOptions,
|
|
159
165
|
embroider: false,
|
|
160
166
|
lang: options.lang,
|
|
167
|
+
ciProvider: options.ciProvider,
|
|
161
168
|
};
|
|
162
169
|
},
|
|
163
170
|
|
|
164
|
-
files() {
|
|
165
|
-
let appFiles = this.lookupBlueprint(this.appBlueprintName).files();
|
|
171
|
+
files(options) {
|
|
172
|
+
let appFiles = this.lookupBlueprint(this.appBlueprintName).files(options);
|
|
166
173
|
let addonFilesPath = this.filesPath(this.options);
|
|
167
|
-
let
|
|
174
|
+
let ignoredCITemplate = this.options.ciProvider !== 'travis' ? '.travis.yml' : '.github';
|
|
175
|
+
|
|
176
|
+
let addonFiles = walkSync(addonFilesPath, { ignore: [ignoredCITemplate] });
|
|
168
177
|
|
|
169
178
|
return uniq(appFiles.concat(addonFiles));
|
|
170
179
|
},
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- master
|
|
8
|
+
pull_request: {}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
lint:
|
|
12
|
+
name: "Lint"
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v2
|
|
17
|
+
- name: Install Node
|
|
18
|
+
uses: actions/setup-node@v2
|
|
19
|
+
with:
|
|
20
|
+
node-version: 12.x
|
|
21
|
+
cache: <%= yarn ? 'yarn' : 'npm' %>
|
|
22
|
+
- name: Install Dependencies
|
|
23
|
+
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
|
|
24
|
+
- name: Lint
|
|
25
|
+
run: <%= yarn ? 'yarn' : 'npm run' %> lint
|
|
26
|
+
|
|
27
|
+
test:
|
|
28
|
+
name: "Test"
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v2
|
|
33
|
+
- name: Install Node
|
|
34
|
+
uses: actions/setup-node@v2
|
|
35
|
+
with:
|
|
36
|
+
node-version: 12.x
|
|
37
|
+
cache: <%= yarn ? 'yarn' : 'npm' %>
|
|
38
|
+
- name: Install Dependencies
|
|
39
|
+
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
|
|
40
|
+
- name: Run Tests
|
|
41
|
+
run: <%= yarn ? 'yarn' : 'npm' %> test
|
|
@@ -6,21 +6,6 @@ const browsers = [
|
|
|
6
6
|
'last 1 Safari versions',
|
|
7
7
|
];
|
|
8
8
|
|
|
9
|
-
// Ember's browser support policy is changing, and IE11 support will end in
|
|
10
|
-
// v4.0 onwards.
|
|
11
|
-
//
|
|
12
|
-
// See https://deprecations.emberjs.com/v3.x#toc_3-0-browser-support-policy
|
|
13
|
-
//
|
|
14
|
-
// If you need IE11 support on a version of Ember that still offers support
|
|
15
|
-
// for it, uncomment the code block below.
|
|
16
|
-
//
|
|
17
|
-
// const isCI = Boolean(process.env.CI);
|
|
18
|
-
// const isProduction = process.env.EMBER_ENV === 'production';
|
|
19
|
-
//
|
|
20
|
-
// if (isCI || isProduction) {
|
|
21
|
-
// browsers.push('ie 11');
|
|
22
|
-
// }
|
|
23
|
-
|
|
24
9
|
module.exports = {
|
|
25
10
|
browsers,
|
|
26
11
|
};
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@ember/optional-features": "^2.0.0",
|
|
27
27
|
"@ember/test-helpers": "^2.4.2<% if (embroider) { %>",
|
|
28
|
-
"@embroider/compat": "^0.
|
|
29
|
-
"@embroider/core": "^0.
|
|
30
|
-
"@embroider/webpack": "^0.
|
|
28
|
+
"@embroider/compat": "^0.44.1",
|
|
29
|
+
"@embroider/core": "^0.44.1",
|
|
30
|
+
"@embroider/webpack": "^0.44.1<% } %>",
|
|
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": "^
|
|
35
|
+
"ember-auto-import": "^2.2.0",
|
|
36
36
|
"ember-cli": "~<%= emberCLIVersion %>",
|
|
37
37
|
"ember-cli-app-version": "^5.0.0",
|
|
38
38
|
"ember-cli-babel": "^7.26.6",
|
|
@@ -41,29 +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": "~
|
|
44
|
+
"ember-data": "~4.0.0-beta.2",
|
|
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
|
-
"ember-maybe-import-regenerator": "^0.1.6",
|
|
49
48
|
"ember-page-title": "^6.2.2",
|
|
50
49
|
"ember-qunit": "^5.1.4",
|
|
51
|
-
"ember-resolver": "^8.0.
|
|
52
|
-
"ember-source": "~
|
|
53
|
-
"ember-template-lint": "^3.
|
|
54
|
-
"ember-welcome-page": "^
|
|
50
|
+
"ember-resolver": "^8.0.3",
|
|
51
|
+
"ember-source": "~4.0.0-beta.4",
|
|
52
|
+
"ember-template-lint": "^3.7.0<% if (welcome) { %>",
|
|
53
|
+
"ember-welcome-page": "^5.0.0<% } %>",
|
|
55
54
|
"eslint": "^7.32.0",
|
|
56
55
|
"eslint-config-prettier": "^8.3.0",
|
|
57
56
|
"eslint-plugin-ember": "^10.5.4",
|
|
58
57
|
"eslint-plugin-node": "^11.1.0",
|
|
59
|
-
"eslint-plugin-prettier": "^
|
|
60
|
-
"eslint-plugin-qunit": "^
|
|
58
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
59
|
+
"eslint-plugin-qunit": "^7.0.0",
|
|
61
60
|
"loader.js": "^4.7.0",
|
|
62
61
|
"npm-run-all": "^4.1.5",
|
|
63
|
-
"prettier": "^2.
|
|
64
|
-
"qunit": "^2.
|
|
65
|
-
"qunit-dom": "^
|
|
66
|
-
"webpack": "^5.
|
|
62
|
+
"prettier": "^2.4.0",
|
|
63
|
+
"qunit": "^2.17.2",
|
|
64
|
+
"qunit-dom": "^2.0.0",
|
|
65
|
+
"webpack": "^5.52.1"
|
|
67
66
|
},
|
|
68
67
|
"engines": {
|
|
69
68
|
"node": "12.* || 14.* || >= 16"
|
package/blueprints/app/index.js
CHANGED
|
@@ -23,7 +23,7 @@ module.exports = {
|
|
|
23
23
|
let namespace = stringUtil.classify(rawName);
|
|
24
24
|
let embroider = isExperimentEnabled('EMBROIDER') || options.embroider;
|
|
25
25
|
|
|
26
|
-
let hasOptions = !options.welcome || options.yarn || embroider;
|
|
26
|
+
let hasOptions = !options.welcome || options.yarn || embroider || options.ciProvider;
|
|
27
27
|
let blueprintOptions = '';
|
|
28
28
|
if (hasOptions) {
|
|
29
29
|
let indent = `\n `;
|
|
@@ -31,7 +31,12 @@ module.exports = {
|
|
|
31
31
|
|
|
32
32
|
blueprintOptions =
|
|
33
33
|
indent +
|
|
34
|
-
[
|
|
34
|
+
[
|
|
35
|
+
!options.welcome && '"--no-welcome"',
|
|
36
|
+
options.yarn && '"--yarn"',
|
|
37
|
+
embroider && '"--embroider"',
|
|
38
|
+
options.ciProvider && `"--ci-provider=${options.ciProvider}"`,
|
|
39
|
+
]
|
|
35
40
|
.filter(Boolean)
|
|
36
41
|
.join(',\n ') +
|
|
37
42
|
outdent;
|
|
@@ -48,9 +53,25 @@ module.exports = {
|
|
|
48
53
|
blueprintOptions,
|
|
49
54
|
embroider,
|
|
50
55
|
lang: options.lang,
|
|
56
|
+
ciProvider: options.ciProvider,
|
|
51
57
|
};
|
|
52
58
|
},
|
|
53
59
|
|
|
60
|
+
files(options) {
|
|
61
|
+
if (this._files) {
|
|
62
|
+
return this._files;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
let files = this._super();
|
|
66
|
+
if (options.ciProvider !== 'travis') {
|
|
67
|
+
this._files = files.filter((file) => file !== '.travis.yml');
|
|
68
|
+
} else {
|
|
69
|
+
this._files = files.filter((file) => file.indexOf('.github') < 0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return this._files;
|
|
73
|
+
},
|
|
74
|
+
|
|
54
75
|
beforeInstall() {
|
|
55
76
|
const version = require('../../package.json').version;
|
|
56
77
|
const prependEmoji = require('../../lib/utilities/prepend-emoji');
|