ember-cli 4.9.0 → 4.9.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/CHANGELOG.md +26 -0
- package/docs/build/data.json +2 -2
- package/lib/commands/test.js +9 -7
- package/lib/models/server-watcher.js +6 -4
- package/lib/tasks/serve.js +8 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
+
## v4.9.2
|
|
4
|
+
|
|
5
|
+
#### Blueprint Changes
|
|
6
|
+
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.1...v4.9.2)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.1...v4.9.2)
|
|
9
|
+
|
|
10
|
+
#### Changelog
|
|
11
|
+
|
|
12
|
+
- [#10108](https://github.com/ember-cli/ember-cli/pull/10108) [BUGFIX release] Correctly instantiate server watcher [@bertdeblock](https://github.com/bertdeblock)
|
|
13
|
+
|
|
14
|
+
Thank you to all who took the time to contribute!
|
|
15
|
+
|
|
16
|
+
## v4.9.1
|
|
17
|
+
|
|
18
|
+
#### Blueprint Changes
|
|
19
|
+
|
|
20
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.0...v4.9.1)
|
|
21
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.0...v4.9.1)
|
|
22
|
+
|
|
23
|
+
#### Changelog
|
|
24
|
+
|
|
25
|
+
- [#10101](https://github.com/ember-cli/ember-cli/pull/10101) [BUGFIX release] Correctly instantiate `Watcher` instance when running `ember test --serve` [@bertdeblock](https://github.com/bertdeblock)
|
|
26
|
+
|
|
27
|
+
Thank you to all who took the time to contribute!
|
|
28
|
+
|
|
3
29
|
## v4.9.0
|
|
4
30
|
|
|
5
31
|
#### Blueprint Changes
|
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": "4.9.
|
|
6
|
+
"version": "4.9.2-release-7c2cee092c"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"lib/broccoli/default-packager.js": {
|
|
@@ -6437,7 +6437,7 @@
|
|
|
6437
6437
|
},
|
|
6438
6438
|
{
|
|
6439
6439
|
"file": "lib/tasks/serve.js",
|
|
6440
|
-
"line":
|
|
6440
|
+
"line": 105,
|
|
6441
6441
|
"description": "Exit silently",
|
|
6442
6442
|
"access": "private",
|
|
6443
6443
|
"tagname": "",
|
package/lib/commands/test.js
CHANGED
|
@@ -182,13 +182,15 @@ module.exports = Command.extend({
|
|
|
182
182
|
session = this.runTask('TestServer', testOptions);
|
|
183
183
|
} else {
|
|
184
184
|
let builder = new this.Builder(testOptions);
|
|
185
|
-
testOptions.watcher =
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
testOptions.watcher = (
|
|
186
|
+
await this.Watcher.build(
|
|
187
|
+
Object.assign(this._env(), {
|
|
188
|
+
builder,
|
|
189
|
+
verbose: false,
|
|
190
|
+
options: commandOptions,
|
|
191
|
+
})
|
|
192
|
+
)
|
|
193
|
+
).watcher;
|
|
192
194
|
session = this.runTask('TestServer', testOptions).finally(() => builder.cleanup());
|
|
193
195
|
}
|
|
194
196
|
} else if (hasBuild) {
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
const Watcher = require('./watcher');
|
|
4
4
|
|
|
5
5
|
module.exports = class ServerWatcher extends Watcher {
|
|
6
|
-
|
|
7
|
-
super(options, build);
|
|
6
|
+
static async build(options, build) {
|
|
7
|
+
let { watcher: instance } = await super.build(options, build);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
instance.watcher.on('add', instance.didAdd.bind(instance));
|
|
10
|
+
instance.watcher.on('delete', instance.didDelete.bind(instance));
|
|
11
|
+
|
|
12
|
+
return { watcher: instance };
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
constructBroccoliWatcher(options) {
|
package/lib/tasks/serve.js
CHANGED
|
@@ -69,12 +69,14 @@ class ServeTask extends Task {
|
|
|
69
69
|
let serverRoot = './server';
|
|
70
70
|
let serverWatcher = null;
|
|
71
71
|
if (fs.existsSync(serverRoot)) {
|
|
72
|
-
serverWatcher =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
serverWatcher = (
|
|
73
|
+
await ServerWatcher.build({
|
|
74
|
+
ui: this.ui,
|
|
75
|
+
analytics: this.analytics,
|
|
76
|
+
watchedDir: path.resolve(serverRoot),
|
|
77
|
+
options,
|
|
78
|
+
})
|
|
79
|
+
).watcher;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
let expressServer =
|