ember-cli 3.4.4 → 3.5.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.
Files changed (49) hide show
  1. package/.travis.yml +8 -7
  2. package/CHANGELOG.md +98 -6
  3. package/CONTRIBUTING.md +1 -1
  4. package/PERF_GUIDE.md +1 -1
  5. package/README.md +1 -1
  6. package/RELEASE.md +12 -10
  7. package/blueprints/addon/files/addon-config/ember-try.js +2 -2
  8. package/blueprints/addon/files/npmignore +2 -1
  9. package/blueprints/addon-import/index.js +3 -0
  10. package/blueprints/app/files/.eslintignore +2 -0
  11. package/blueprints/app/files/.eslintrc.js +1 -0
  12. package/blueprints/app/files/package.json +4 -4
  13. package/blueprints/module-unification-app/files/.eslintignore +2 -0
  14. package/blueprints/module-unification-app/files/.eslintrc.js +1 -0
  15. package/blueprints/module-unification-app/files/config/environment.js +1 -1
  16. package/blueprints/module-unification-app/files/config/targets.js +1 -1
  17. package/blueprints/module-unification-app/files/package.json +18 -17
  18. package/lib/broccoli/default-packager.js +7 -9
  19. package/lib/broccoli/ember-app.js +43 -34
  20. package/lib/commands/destroy.js +8 -0
  21. package/lib/commands/generate.js +8 -0
  22. package/lib/commands/new.js +2 -2
  23. package/lib/commands/serve.js +2 -0
  24. package/lib/errors/cli.js +4 -0
  25. package/lib/experiments/index.js +33 -12
  26. package/lib/models/addon-info.js +2 -2
  27. package/lib/models/addon.js +9 -10
  28. package/lib/models/blueprint.js +39 -7
  29. package/lib/models/builder.js +137 -17
  30. package/lib/models/command.js +2 -2
  31. package/lib/models/package-info-cache/index.js +11 -10
  32. package/lib/models/package-info-cache/package-info.js +9 -12
  33. package/lib/models/project.js +3 -3
  34. package/lib/models/watcher.js +2 -1
  35. package/lib/tasks/npm-task.js +1 -1
  36. package/lib/tasks/server/express-server.js +1 -1
  37. package/lib/tasks/server/livereload-server.js +2 -1
  38. package/lib/tasks/server/middleware/proxy-server/index.js +8 -3
  39. package/lib/utilities/default-targets.js +1 -1
  40. package/lib/utilities/find-build-file.js +2 -3
  41. package/lib/utilities/is-addon.js +6 -0
  42. package/lib/utilities/is-live-reload-request.js +17 -0
  43. package/lib/utilities/valid-project-name.js +1 -0
  44. package/package.json +8 -4
  45. package/tests/helpers/default-packager.js +1 -1
  46. package/tests/helpers/generate-utils.js +26 -0
  47. package/tests/helpers/init-app.js +14 -0
  48. package/tests/helpers/mock-project.js +5 -5
  49. package/yarn.lock +0 -5695
package/.travis.yml CHANGED
@@ -1,10 +1,13 @@
1
- language: node_js
2
- node_js:
3
- - "10"
1
+ sudo: false
2
+ dist: trusty
4
3
 
5
4
  addons:
6
5
  chrome: stable
7
6
 
7
+ language: node_js
8
+ node_js:
9
+ - "10"
10
+
8
11
  branches:
9
12
  only:
10
13
  - auto
@@ -56,6 +59,8 @@ jobs:
56
59
  - env: EMBER_CLI_PACKAGER=true
57
60
  - env: EMBER_CLI_MODULE_UNIFICATION=true
58
61
  - env: EMBER_CLI_DELAYED_TRANSPILATION=true
62
+ - env: EMBER_CLI_BROCCOLI_2=false
63
+ - env: EMBER_CLI_SYSTEM_TEMP=false
59
64
 
60
65
  - stage: deploy
61
66
  script: ./.travis/deploy.sh
@@ -63,10 +68,6 @@ jobs:
63
68
  before_install:
64
69
  # prevent the npm loading indicator
65
70
  - npm config --global set spin false
66
- # if npm version is less than 3.0.0, upgrade to 3
67
- - if [[ $(npm -v | cut -d '.' -f 1) -lt 3 ]]; then npm i -g npm@^3; fi
68
- # if npm version is newer than 4, downgrade to 4
69
- - if [[ $(npm -v | cut -d '.' -f 1) -gt 4 ]]; then npm i -g npm@^4; fi
70
71
 
71
72
  # travis currently includes yarn v0.17.8 (20170705)
72
73
  # this isn't new enough for our use of --non-interactive
package/CHANGELOG.md CHANGED
@@ -1,20 +1,112 @@
1
1
  # ember-cli Changelog
2
2
 
3
- ## v3.4.4
3
+ ## v3.5.1
4
4
 
5
5
  #### Blueprint Changes
6
6
 
7
- - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.4.3...v3.4.4)
8
- - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.4.3...v3.4.4)
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.5.0...v3.5.1)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.5.0...v3.5.1)
9
9
 
10
10
  #### Community Contributions
11
11
 
12
- - [#8277](https://github.com/ember-cli/ember-cli/pull/8277) DefaultPackager: Move `addon-test-support` out of the `tests` folder [@Turbo87](https://github.com/Turbo87)
13
- - [#8278](https://github.com/ember-cli/ember-cli/pull/8278) DefaultPackager: Fix addon preprocessing [@Turbo87](https://github.com/Turbo87)
12
+ - [#8127](https://github.com/ember-cli/ember-cli/pull/8127) Fix eslint errors in new app [@Gaurav0](https://github.com/Gaurav0)
13
+ - [#8130](https://github.com/ember-cli/ember-cli/pull/8130) Use regex to parse /livereload urls [@rwjblue](https://github.com/rwjblue)
14
+ - [#8141](https://github.com/ember-cli/ember-cli/pull/8141) Use `debug` for `package-info-cache` messages [@stefanpenner](https://github.com/stefanpenner)
15
+ - [#8150](https://github.com/ember-cli/ember-cli/pull/8150) Fix `toTree()` with custom paths [@wagenet](https://github.com/wagenet)
14
16
 
15
17
  Thank you to all who took the time to contribute!
16
18
 
17
19
 
20
+ ## v3.5.0
21
+
22
+ The following changes are required if you are upgrading from the previous
23
+ version:
24
+
25
+ - Users
26
+ + [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.4.3...v3.5.0)
27
+ + Upgrade your project's ember-cli version - [docs](https://ember-cli.com/user-guide/#upgrading)
28
+ - Addon Developers
29
+ + [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.4.3...v3.5.0)
30
+ + No changes required
31
+ - Core Contributors
32
+ + No changes required
33
+
34
+ #### Community Contributions
35
+
36
+ - [#8079](https://github.com/ember-cli/ember-cli/pull/8079) add .template-lintrc.js to npmignore [@kellyselden](https://github.com/kellyselden)
37
+ - [#8083](https://github.com/ember-cli/ember-cli/pull/8083) Catch InvalidNodeError for Broccoli 2.0 and fallback to broccoli-builder [@oligriffiths](https://github.com/oligriffiths)
38
+ - [#8117](https://github.com/ember-cli/ember-cli/pull/8117) Do not ignore dotfiles in ESLint [@Gaurav0](https://github.com/Gaurav0)
39
+ - [#7365](https://github.com/ember-cli/ember-cli/pull/7365) Migrate from ember-cli-qunit to ember-qunit. [@rwjblue](https://github.com/rwjblue)
40
+ - [#8062](https://github.com/ember-cli/ember-cli/pull/8062) Add `yarn.lock` to `.npmignore` [@Turbo87](https://github.com/Turbo87)
41
+ - [#8064](https://github.com/ember-cli/ember-cli/pull/8064) Update `qunit-dom` to v0.8.0 [@Turbo87](https://github.com/Turbo87)
42
+ - [#8067](https://github.com/ember-cli/ember-cli/pull/8067) Less restrictive blueprints - change how addons are identified [@scalvert](https://github.com/scalvert)
43
+ - [#8068](https://github.com/ember-cli/ember-cli/pull/8068) Enable BROCCOLI_2 and SYSTEM_TEMP experiments by default. [@rwjblue](https://github.com/rwjblue)
44
+ - [#8069](https://github.com/ember-cli/ember-cli/pull/8069) Adding back feature to customization of serveURL [@SparshithNR](https://github.com/SparshithNR)
45
+ - [#7798](https://github.com/ember-cli/ember-cli/pull/7798) Add Broccoli 2.0 support [@oligriffiths](https://github.com/oligriffiths)
46
+ - [#7916](https://github.com/ember-cli/ember-cli/pull/7916) Support node-http-proxy timeout options [@jboler](https://github.com/jboler)
47
+ - [#7937](https://github.com/ember-cli/ember-cli/pull/7937) Update fallback default browser targets from IE9 -> IE11. [@arthirm](https://github.com/arthirm)
48
+ - [#7984](https://github.com/ember-cli/ember-cli/pull/7984) Reject when command args validation fails [@zonkyio](https://github.com/zonkyio)
49
+ - [#7946](https://github.com/ember-cli/ember-cli/pull/7946) upgrade ember-cli-htmlbars to 3.x [@stefanpenner](https://github.com/stefanpenner)
50
+ - [#8000](https://github.com/ember-cli/ember-cli/pull/8000) Adding `--in` option to `ember generate` and `ember destroy` to allow blueprint generation for in repo addons in custom paths. [@scalvert](https://github.com/scalvert)
51
+ - [#8028](https://github.com/ember-cli/ember-cli/pull/8028) Add `public` to the list of disallowed application names [@twokul](https://github.com/twokul)
52
+
53
+ Thank you to all who took the time to contribute!
54
+
55
+
56
+ ## v3.5.0-beta.2
57
+
58
+ The following changes are required if you are upgrading from the previous
59
+ version:
60
+
61
+ - Users
62
+ + [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.4.0...v3.5.0-beta.2)
63
+ + Upgrade your project's ember-cli version - [docs](https://ember-cli.com/user-guide/#upgrading)
64
+ - Addon Developers
65
+ + [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.4.0...v3.5.0-beta.2)
66
+ + No changes required
67
+ - Core Contributors
68
+ + No changes required
69
+
70
+ #### Community Contributions
71
+
72
+ - [#7365](https://github.com/ember-cli/ember-cli/pull/7365) Migrate from ember-cli-qunit to ember-qunit. [@rwjblue](https://github.com/rwjblue)
73
+ - [#8062](https://github.com/ember-cli/ember-cli/pull/8062) Add `yarn.lock` to `.npmignore` [@Turbo87](https://github.com/Turbo87)
74
+ - [#8064](https://github.com/ember-cli/ember-cli/pull/8064) Update `qunit-dom` to v0.8.0 [@Turbo87](https://github.com/Turbo87)
75
+ - [#8067](https://github.com/ember-cli/ember-cli/pull/8067) Less restrictive blueprints - change how addons are identified [@scalvert](https://github.com/scalvert)
76
+ - [#8068](https://github.com/ember-cli/ember-cli/pull/8068) Enable BROCCOLI_2 and SYSTEM_TEMP experiments by default. [@rwjblue](https://github.com/rwjblue)
77
+ - [#8069](https://github.com/ember-cli/ember-cli/pull/8069) Adding back feature to customization of serveURL [@SparshithNR](https://github.com/SparshithNR)
78
+ - [#8071](https://github.com/ember-cli/ember-cli/pull/8071) Update sane to the latest version 🚀 [@ember-cli/greenkeeper](https://github.com/ember-cli/greenkeeper)
79
+
80
+ Thank you to all who took the time to contribute!
81
+
82
+ ## v3.5.0-beta.1
83
+
84
+ The following changes are required if you are upgrading from the previous
85
+ version:
86
+
87
+ - Users
88
+ + [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v3.4.0...v3.5.0-beta.1)
89
+ + Upgrade your project's ember-cli version - [docs](https://ember-cli.com/user-guide/#upgrading)
90
+ - Addon Developers
91
+ + [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v3.4.0...v3.5.0-beta.1)
92
+ + No changes required
93
+ - Core Contributors
94
+ + No changes required
95
+
96
+ #### Community Contributions
97
+
98
+ - [#7798](https://github.com/ember-cli/ember-cli/pull/7798) Add Broccoli 2.0 support [@oligriffiths](https://github.com/oligriffiths)
99
+ - [#7916](https://github.com/ember-cli/ember-cli/pull/7916) Support node-http-proxy timeout options [@jboler](https://github.com/jboler)
100
+ - [#7937](https://github.com/ember-cli/ember-cli/pull/7937) Update fallback default browser targets from IE9 -> IE11. [@arthirm](https://github.com/arthirm)
101
+ - [#7984](https://github.com/ember-cli/ember-cli/pull/7984) Reject when command args validation fails [@zonkyio](https://github.com/zonkyio)
102
+ - [#7946](https://github.com/ember-cli/ember-cli/pull/7946) upgrade ember-cli-htmlbars to 3.x [@stefanpenner](https://github.com/stefanpenner)
103
+ - [#7976](https://github.com/ember-cli/ember-cli/pull/7976) Upgrade ember-source to master in `new` blueprint [@dcyriller](https://github.com/dcyriller)
104
+ - [#8025](https://github.com/ember-cli/ember-cli/pull/8025) Update MU blueprint to latest canary [@CodingItWrong](https://github.com/CodingItWrong)
105
+ - [#8000](https://github.com/ember-cli/ember-cli/pull/8000) Adding `--in` option to `ember generate` and `ember destroy` to allow blueprint generation for in repo addons in custom paths. [@scalvert](https://github.com/scalvert)
106
+ - [#8028](https://github.com/ember-cli/ember-cli/pull/8028) Add `public` to the list of disallowed application names [@twokul](https://github.com/twokul)
107
+
108
+ Thank you to all who took the time to contribute!
109
+
18
110
  ## v3.4.3
19
111
 
20
112
  The following changes are required if you are upgrading from the previous
@@ -58,7 +150,7 @@ version:
58
150
 
59
151
  - [#8024](https://github.com/ember-cli/ember-cli/pull/8024) [BUGFIX] Remove 2.12 scenario from travis.yml [@cibernox](https://github.com/cibernox)
60
152
  - [#8033](https://github.com/ember-cli/ember-cli/pull/8033) Restore `styles` behaviour [@twokul](https://github.com/twokul)
61
- - [#8038](https://github.com/ember-cli/ember-cli/pull/8038) Ensure livereload proxy is scoped to only live reload prefix. [@ember-cli](https://github.com/ember-cli)
153
+ - [#8038](https://github.com/ember-cli/ember-cli/pull/8038) Ensure livereload proxy is scoped to only live reload prefix. [@rwjblue](https://github.com/rwjblue)
62
154
 
63
155
  Thank you to all who took the time to contribute!
64
156
 
package/CONTRIBUTING.md CHANGED
@@ -93,7 +93,7 @@ We love pull requests. Here's a quick guide:
93
93
  * google chrome
94
94
 
95
95
  3. Run the tests. We only take pull requests with passing tests, and it's great
96
- to know that you have a clean slate: `npm install && npm run test-all`.
96
+ to know that you have a clean slate: `npm install && npm run test:all`.
97
97
 
98
98
  4. Add a test for your change. Only refactoring and documentation changes
99
99
  require no new tests. If you are adding functionality or fixing a bug, we
package/PERF_GUIDE.md CHANGED
@@ -188,7 +188,7 @@ flags are:
188
188
  + `DEBUG=broccoli-caching-writer:* ember s`
189
189
  + `DEBUG=broccoli-funnel:* ember s`
190
190
  + `DEBUG=broccoli-funnel:Funnel*Addon* ember s`
191
- + `DEBUG=broccoli-merge-trees:ember s`
191
+ + `DEBUG=broccoli-merge-trees ember s`
192
192
  + `DEBUG=broccoli-merge-trees:TreeMerger* ember s`
193
193
  + `DEBUG=broccoli-merge-trees:Addon* ember s`
194
194
  + `DEBUG=broccoli-merge-trees:styles ember s`
package/README.md CHANGED
@@ -17,7 +17,7 @@ ember-cli
17
17
  [appveyor-badge-url]: https://ci.appveyor.com/project/embercli/ember-cli/branch/master
18
18
  [coveralls-badge]: https://img.shields.io/coveralls/ember-cli/ember-cli/master.svg
19
19
  [coveralls-badge-url]: https://coveralls.io/github/ember-cli/ember-cli
20
- [codeclimate-badge]: https://img.shields.io/codeclimate/github/ember-cli/ember-cli.svg
20
+ [codeclimate-badge]: https://codeclimate.com/github/ember-cli/ember-cli/badges/gpa.svg
21
21
  [codeclimate-badge-url]: https://codeclimate.com/github/ember-cli/ember-cli
22
22
 
23
23
  The Ember.js command line utility.
package/RELEASE.md CHANGED
@@ -11,9 +11,9 @@ the release gotchas and will hopefully result in a successful release.
11
11
  ### Communication
12
12
 
13
13
  - Ensure that homu isn't presently processing any PRs.
14
- - Post a note in [#dev-ember-cli](https://embercommunity.slack.com/archives/dev-ember-cli) letting us know you're doing a release.
14
+ - Post a note in [#dev-ember-cli](https://discordapp.com/channels/480462759797063690/480501885837770763) letting us know you're doing a release.
15
15
 
16
- > I'm starting an Ember CLI release. Please hold off merging PRs, "homu r+"-ing, and pushing new code!
16
+ > I'm starting an Ember CLI release. Please hold off merging PRs and pushing new code!
17
17
 
18
18
  ### Environment
19
19
 
@@ -24,7 +24,6 @@ node --version
24
24
  npm --version
25
25
  ```
26
26
 
27
-
28
27
  ## Branching
29
28
 
30
29
  If you're planning to release a stable/bugfix version _and_ a beta, make sure to release the beta _after_ the stable version.
@@ -57,7 +56,6 @@ git checkout -B beta --track origin/beta
57
56
  git merge vX.Y.0
58
57
  ```
59
58
 
60
-
61
59
  ### Stable bugfix release
62
60
 
63
61
  Follow these steps if you're releasing a bugfix for a stable version (e.g. from `v2.5.0` to `v2.5.1`)
@@ -117,13 +115,17 @@ git checkout -B master --track origin/master
117
115
  git merge vX.Y.0-beta.N
118
116
  ```
119
117
 
120
-
121
118
  ## Release
122
119
 
123
120
  ### Setup
124
121
 
125
122
  * Update Ember and Ember Data versions.
126
123
  * `blueprints/app/files/package.json`
124
+ * if you're releasing a new minor or major version:
125
+ * `tests/fixtures/addon/npm/package.json`
126
+ * `tests/fixtures/addon/yarn/package.json`
127
+ * `tests/fixtures/app/npm/package.json`
128
+ * `tests/fixtures/app/yarn/package.json`
127
129
  * generate changelog
128
130
  * if on master branch
129
131
  * run `./dev/changelog`
@@ -234,16 +236,16 @@ Announce release!
234
236
  https://github.com/ember-cli/ember-cli/releases/tag/vX.Y.Z
235
237
  \#emberjs
236
238
 
237
- ### Slack
239
+ ### Discord
238
240
 
239
241
  Grab a link to your tweet and post in:
240
- * [#-announcements](https://embercommunity.slack.com/archives/-announcements)
241
- * [#dev-ember-cli](https://embercommunity.slack.com/archives/dev-ember-cli)
242
- * [#-ember-cli](https://embercommunity.slack.com/archives/-ember-cli)
242
+ * [#news-and-announcements](https://discordapp.com/channels/480462759797063690/480499624663056390)
243
+ * [#dev-ember-cli](https://discordapp.com/channels/480462759797063690/480501885837770763)
244
+ * [#ember-cli](https://discordapp.com/channels/480462759797063690/486548111221719040)
243
245
 
244
246
 
245
247
  ## Troubleshooting
246
248
 
247
249
  * if a few mins after release you notice an issue, you can unpublish
248
- * `npm unpublish ember-cli@<version>`
250
+ * `npm unpublish ember-cli@<version>` (`npm unpublish` is write-only, that is you can unpublish but cannot push `ember-cli` with the same version, you have to bump `version` in `package.json`)
249
251
  * if it is completely broken, feel free to unpublish a few hours later or the next morning, even if you don't have time to immediately rerelease
@@ -14,7 +14,7 @@ module.exports = function() {
14
14
  {
15
15
  name: 'ember-lts-2.16',
16
16
  env: {
17
- EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
17
+ EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
18
18
  },
19
19
  npm: {
20
20
  devDependencies: {
@@ -26,7 +26,7 @@ module.exports = function() {
26
26
  {
27
27
  name: 'ember-lts-2.18',
28
28
  env: {
29
- EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
29
+ EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
30
30
  },
31
31
  npm: {
32
32
  devDependencies: {
@@ -12,8 +12,9 @@
12
12
  /.eslintignore
13
13
  /.eslintrc.js
14
14
  /.gitignore
15
- /.watchmanconfig
15
+ /.template-lintrc.js
16
16
  /.travis.yml
17
+ /.watchmanconfig
17
18
  /bower.json
18
19
  /config/ember-try.js
19
20
  /ember-cli-build.js
@@ -32,6 +32,9 @@ module.exports = {
32
32
  if (options.inRepoAddon) {
33
33
  return path.join('lib', options.inRepoAddon, 'app');
34
34
  }
35
+ if (options.in) {
36
+ return path.join(options.in, 'app');
37
+ }
35
38
  return 'app';
36
39
  },
37
40
  };
@@ -8,9 +8,11 @@
8
8
 
9
9
  # dependencies
10
10
  /bower_components/
11
+ /node_modules/
11
12
 
12
13
  # misc
13
14
  /coverage/
15
+ !.*
14
16
 
15
17
  # ember-try
16
18
  /.node_modules.ember-try/
@@ -20,6 +20,7 @@ module.exports = {
20
20
  // node files
21
21
  {
22
22
  files: [
23
+ '.eslintrc.js',
23
24
  '.template-lintrc.js',
24
25
  'ember-cli-build.js',<% if (blueprint !== 'app') { %>
25
26
  'index.js',<% } %>
@@ -30,20 +30,20 @@
30
30
  "ember-cli-htmlbars": "^3.0.0",
31
31
  "ember-cli-htmlbars-inline-precompile": "^1.0.3",
32
32
  "ember-cli-inject-live-reload": "^1.8.2",
33
- "ember-cli-qunit": "^4.3.2",
34
33
  "ember-cli-sri": "^2.1.1",
35
34
  "ember-cli-template-lint": "^1.0.0-beta.1",
36
35
  "ember-cli-uglify": "^2.1.0",
37
- "ember-data": "~3.4.0",
36
+ "ember-data": "~3.5.0",
38
37
  "ember-export-application-global": "^2.0.0",
39
38
  "ember-load-initializers": "^1.1.0",
40
39
  "ember-maybe-import-regenerator": "^0.1.6",
40
+ "ember-qunit": "^3.4.1",
41
41
  "ember-resolver": "^5.0.1",
42
- "ember-source": "~3.4.0<% if (welcome) { %>",
42
+ "ember-source": "~3.5.1<% if (welcome) { %>",
43
43
  "ember-welcome-page": "^3.2.0<% } %>",
44
44
  "eslint-plugin-ember": "^5.2.0",
45
45
  "loader.js": "^4.7.0",
46
- "qunit-dom": "^0.7.1"
46
+ "qunit-dom": "^0.8.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": "6.* || 8.* || >= 10.*"
@@ -8,9 +8,11 @@
8
8
 
9
9
  # dependencies
10
10
  /bower_components/
11
+ /node_modules/
11
12
 
12
13
  # misc
13
14
  /coverage/
15
+ !.*
14
16
 
15
17
  # ember-try
16
18
  /.node_modules.ember-try/
@@ -20,6 +20,7 @@ module.exports = {
20
20
  // node files
21
21
  {
22
22
  files: [
23
+ '.eslintrc.js',
23
24
  '.template-lintrc.js',
24
25
  'ember-cli-build.js',
25
26
  'index.js',
@@ -50,7 +50,7 @@ module.exports = function(environment) {
50
50
  }
51
51
 
52
52
  if (environment === 'production') {
53
-
53
+ // here you can enable a production-specific feature
54
54
  }
55
55
 
56
56
  return ENV;
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  browsers: [
3
- 'ie 9',
3
+ 'ie 11',
4
4
  'last 1 Chrome versions',
5
5
  'last 1 Firefox versions',
6
6
  'last 1 Safari versions'
@@ -3,13 +3,13 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "description": "Small description for <%= name %> goes here",
6
+ "repository": "",
6
7
  "license": "MIT",
7
8
  "author": "",
8
9
  "directories": {
9
10
  "doc": "doc",
10
11
  "test": "tests"
11
12
  },
12
- "repository": "",
13
13
  "scripts": {
14
14
  "build": "ember build",
15
15
  "lint:hbs": "ember-template-lint .",
@@ -18,33 +18,34 @@
18
18
  "test": "ember test"
19
19
  },
20
20
  "devDependencies": {
21
- "@ember/jquery": "^0.5.1",
22
- "@ember/optional-features": "^0.6.1",
21
+ "@ember/jquery": "^0.5.2",
22
+ "@ember/optional-features": "^0.6.3",
23
23
  "broccoli-asset-rev": "^2.7.0",
24
- "ember-ajax": "^3.0.0",
24
+ "ember-ajax": "^3.1.0",
25
25
  "ember-cli": "github:ember-cli/ember-cli",
26
- "ember-cli-app-version": "^3.0.0",
27
- "ember-cli-babel": "^6.6.0",
26
+ "ember-cli-app-version": "^3.2.0",
27
+ "ember-cli-babel": "^6.16.0",
28
28
  "ember-cli-dependency-checker": "^3.0.0",
29
- "ember-cli-eslint": "^4.2.1",
29
+ "ember-cli-eslint": "^4.2.3",
30
30
  "ember-cli-htmlbars": "^3.0.0",
31
- "ember-cli-htmlbars-inline-precompile": "^1.0.0",
31
+ "ember-cli-htmlbars-inline-precompile": "^1.0.3",
32
32
  "ember-cli-inject-live-reload": "^1.8.2",
33
- "ember-cli-qunit": "^4.3.2",
34
- "ember-cli-sri": "^2.1.0",
33
+ "ember-cli-sri": "^2.1.1",
35
34
  "ember-cli-template-lint": "^1.0.0-beta.1",
36
- "ember-cli-uglify": "^2.0.0",
37
- "ember-data": "~3.1.1",
35
+ "ember-cli-uglify": "^2.1.0",
36
+ "ember-data": "~3.5.0",
38
37
  "ember-export-application-global": "^2.0.0",
39
38
  "ember-load-initializers": "^1.1.0",
40
39
  "ember-maybe-import-regenerator": "^0.1.6",
40
+ "ember-qunit": "^3.4.1",
41
41
  "ember-resolver": "^5.0.1",
42
- "ember-source": "https://s3.amazonaws.com/builds.emberjs.com/canary/shas/5431f71df060e7b5c82c05c300f40e9151d135e8.tgz<% if (welcome) { %>",
43
- "ember-welcome-page": "^3.0.0<% } %>",
44
- "eslint-plugin-ember": "^5.0.0",
45
- "loader.js": "^4.2.3"
42
+ "ember-source": "https://s3.amazonaws.com/builds.emberjs.com/canary/shas/caa2c70d40dbfeffb0e6c9ac15ff6d72c8e24bae.tgz<% if (welcome) { %>",
43
+ "ember-welcome-page": "^3.2.0<% } %>",
44
+ "eslint-plugin-ember": "^5.2.0",
45
+ "loader.js": "^4.7.0",
46
+ "qunit-dom": "^0.8.0"
46
47
  },
47
48
  "engines": {
48
- "node": "6.* || >= 8.*"
49
+ "node": "6.* || 8.* || >= 10.*"
49
50
  }
50
51
  }
@@ -833,28 +833,26 @@ module.exports = class DefaultPackager {
833
833
  */
834
834
  processTests(tree) {
835
835
  if (this._cachedTests === null) {
836
- let addonTestSupportTree = new Funnel(tree, {
837
- srcDir: 'tests/addon-test-support',
838
- destDir: 'addon-test-support',
839
- });
840
-
841
836
  let testTree = new Funnel(tree, {
842
837
  srcDir: 'tests',
843
838
  exclude: ['addon-test-support/**/*'],
844
839
  });
845
840
 
841
+ testTree = callAddonsPreprocessTreeHook(this.project, 'test', testTree);
842
+
846
843
  let treeToCompile = new Funnel(testTree, {
847
844
  destDir: `${this.name}/tests`,
848
845
  annotation: 'Tests To Process',
849
846
  });
850
847
 
851
- treeToCompile = callAddonsPreprocessTreeHook(this.project, 'test', treeToCompile);
852
-
853
848
  let preprocessedTests = preprocessJs(treeToCompile, '/tests', this.name, {
854
849
  registry: this.registry,
855
850
  });
856
851
 
857
- let mergedTestTrees = mergeTrees([addonTestSupportTree, preprocessedTests], {
852
+ let mergedTestTrees = mergeTrees([new Funnel(tree, {
853
+ srcDir: 'tests/addon-test-support',
854
+ destDir: `${this.name}/tests`,
855
+ }), preprocessedTests], {
858
856
  overwrite: true,
859
857
  annotation: 'Packaged Tests',
860
858
  });
@@ -1114,7 +1112,7 @@ module.exports = class DefaultPackager {
1114
1112
  this.legacyTestFilesToAppend
1115
1113
  );
1116
1114
 
1117
- let inputFiles = ['addon-test-support/**/*.js'];
1115
+ let inputFiles = ['tests/addon-test-support/**/*.js'];
1118
1116
 
1119
1117
  let footerFiles = ['vendor/ember-cli/test-support-suffix.js'];
1120
1118