Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): update speed-measure-webpack-plug…
Browse files Browse the repository at this point in the history
…in to 1.3.1

This fixes the issue of it generating an empty `speed-measure-plugin.json`.

Fixes #12763
  • Loading branch information
alan-agius4 authored and alexeagle committed Mar 19, 2019
1 parent ba6b66d commit 62a9b8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/package.json
Expand Up @@ -37,7 +37,7 @@
"semver": "5.6.0",
"source-map-support": "0.5.10",
"source-map-loader": "0.2.4",
"speed-measure-webpack-plugin": "1.3.0",
"speed-measure-webpack-plugin": "1.3.1",
"stats-webpack-plugin": "0.7.0",
"style-loader": "0.23.1",
"stylus": "0.54.5",
Expand Down
Expand Up @@ -7,7 +7,7 @@
*/

import { runTargetSpec } from '@angular-devkit/architect/testing';
import { normalize } from '@angular-devkit/core';
import { normalize, virtualFs } from '@angular-devkit/core';
import { tap } from 'rxjs/operators';
import { browserTargetSpec, host } from '../utils';

Expand All @@ -21,8 +21,11 @@ describe('Browser Builder profile', () => {
runTargetSpec(host, browserTargetSpec, overrides).pipe(
tap((buildEvent) => expect(buildEvent.success).toBe(true)),
tap(() => {
const speedMeasureLogPath = normalize('speed-measure-plugin.json');
expect(host.scopedSync().exists(normalize('chrome-profiler-events.json'))).toBe(true);
expect(host.scopedSync().exists(normalize('speed-measure-plugin.json'))).toBe(true);
expect(host.scopedSync().exists(speedMeasureLogPath)).toBe(true);
const content = virtualFs.fileBufferToString(host.scopedSync().read(speedMeasureLogPath));
expect(content).toContain('plugins');
}),
).toPromise().then(done, done.fail);
});
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -9328,10 +9328,10 @@ spdy@^4.0.0:
select-hose "^2.0.0"
spdy-transport "^3.0.0"

speed-measure-webpack-plugin@1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.3.0.tgz#c7ffafef513df3d63d5d546c8fc1986dfc4969aa"
integrity sha512-b9Yd0TrzceMVYSbuamM1sFsGM1oVfyFTM22gOoyLhymNvBVApuYpkdFOgYkKJpN/KhTpcCYcTGHg7X+FJ33Vvw==
speed-measure-webpack-plugin@1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.3.1.tgz#69840a5cdc08b4638697dac7db037f595d7f36a0"
integrity sha512-qVIkJvbtS9j/UeZumbdfz0vg+QfG/zxonAjzefZrqzkr7xOncLVXkeGbTpzd1gjCBM4PmVNkWlkeTVhgskAGSQ==
dependencies:
chalk "^2.0.1"

Expand Down

0 comments on commit 62a9b8d

Please sign in to comment.