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 kyliau committed Mar 27, 2019
1 parent ba6b66d commit 4dd6d33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 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
13 changes: 4 additions & 9 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 Expand Up @@ -10081,11 +10081,6 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5"
integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==

typescript@3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d"
Expand Down

0 comments on commit 4dd6d33

Please sign in to comment.