Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
build: update dependencies and support angular v11.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
enten committed Dec 21, 2020
1 parent 3c59e03 commit 075d5fc
Show file tree
Hide file tree
Showing 18 changed files with 2,040 additions and 6,336 deletions.
2 changes: 1 addition & 1 deletion angular/lib/build/ng-devkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ function statsToString(json: any, statsConfig: any, bundleState?: BundleStats[])

const statsTable = generateBuildStatsTable(changedChunksStats, colors, unchangedChunkNumber === 0);

// In some cases we do things outside of webpack context
// In some cases we do things outside of webpack context
// Such us index generation, service worker augmentation etc...
// This will correct the time and include these.
const time = (Date.now() - json.builtAt) + json.time;
Expand Down
2 changes: 1 addition & 1 deletion angular/lib/serve/devContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as fs from 'fs';
import * as path from 'path';
import * as util from 'util';
import webpack = require('webpack');
import wpc = require('../../../webpack-plugin-compat');
import wpc = require('webpack-plugin-compat');

import {
Architect,
Expand Down
4 changes: 2 additions & 2 deletions angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@architect/udk",
"peerDependencies": {
"@angular-devkit/build-angular": "0.1100.3",
"@angular/cli": "11.0.3"
"@angular-devkit/build-angular": "0.1100.5",
"@angular/cli": "11.0.5"
}
}
2 changes: 1 addition & 1 deletion bin/udk-webpack4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ process.exitCode = 0;
const runCommand = (command: string, args: string[]) => {
const cp = require('child_process');

return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
const executedCommand = cp.spawn(command, args, {
stdio: 'inherit',
shell: true,
Expand Down
1 change: 1 addition & 0 deletions docs/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| udk | webpack3 | webpack4 | angular-devkit |
|-----|----------|----------|----------------|
| v1.1.11-rc.1 | | | v0.1100.5 |
| v1.1.11-rc.0 | | v4.44.2 | v0.1100.3 |
| v1.1.10 | | | v0.1000.0 |
| v1.1.9 | | | v0.901.7 |
Expand Down
2 changes: 1 addition & 1 deletion lib/MultiCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as webpack from 'webpack';

import debug = require('debug');
import { DepGraph } from 'dependency-graph';
import wpc = require('../webpack-plugin-compat');
import wpc = require('webpack-plugin-compat');

export const MultiCompiler1: MultiCompilerStatic = require('webpack/lib/MultiCompiler');

Expand Down
2 changes: 1 addition & 1 deletion lib/devContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as http from 'http';
import * as path from 'path';

import * as webpack from 'webpack';
import wpc = require('../webpack-plugin-compat');
import wpc = require('webpack-plugin-compat');

import MultiCompiler from './MultiCompiler';

Expand Down
6 changes: 3 additions & 3 deletions lib/webpack.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const webpackV3 = ((options, callback?) => {
compiler.options = options;
new NodeEnvironmentPlugin().apply(compiler);
if (options.plugins && Array.isArray(options.plugins)) {
compiler.apply.apply(compiler, options.plugins);
(compiler as any).apply.apply(compiler, options.plugins);
}
compiler.applyPlugins('environment');
compiler.applyPlugins('after-environment');
(compiler as any).applyPlugins('environment');
(compiler as any).applyPlugins('after-environment');
compiler.options = new WebpackOptionsApply().process(options, compiler);
} else {
throw new Error('Invalid argument: options');
Expand Down
Loading

0 comments on commit 075d5fc

Please sign in to comment.