@angular-devkit/build-angular 0.1102.0-rc.0 → 0.1102.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/package.json +8 -8
- package/src/browser/index.js +2 -2
- package/src/extract-i18n/index.js +3 -0
- package/src/tslint/index.js +1 -1
- package/src/utils/version.js +2 -2
- package/src/webpack/configs/styles.js +2 -0
- package/src/webpack/configs/typescript.js +2 -0
- package/src/webpack/plugins/karma/karma.js +12 -1
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "0.1102.
|
|
3
|
+
"version": "0.1102.2",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"builders": "builders.json",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@angular-devkit/architect": "0.1102.
|
|
11
|
-
"@angular-devkit/build-optimizer": "0.1102.
|
|
12
|
-
"@angular-devkit/build-webpack": "0.1102.
|
|
13
|
-
"@angular-devkit/core": "11.2.
|
|
10
|
+
"@angular-devkit/architect": "0.1102.2",
|
|
11
|
+
"@angular-devkit/build-optimizer": "0.1102.2",
|
|
12
|
+
"@angular-devkit/build-webpack": "0.1102.2",
|
|
13
|
+
"@angular-devkit/core": "11.2.2",
|
|
14
14
|
"@babel/core": "7.12.10",
|
|
15
15
|
"@babel/generator": "7.12.11",
|
|
16
16
|
"@babel/plugin-transform-async-to-generator": "7.12.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@babel/runtime": "7.12.5",
|
|
20
20
|
"@babel/template": "7.12.7",
|
|
21
21
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
22
|
-
"@ngtools/webpack": "11.2.
|
|
22
|
+
"@ngtools/webpack": "11.2.2",
|
|
23
23
|
"ansi-colors": "4.1.1",
|
|
24
24
|
"autoprefixer": "10.2.4",
|
|
25
25
|
"babel-loader": "8.2.2",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"circular-dependency-plugin": "5.2.2",
|
|
30
30
|
"copy-webpack-plugin": "6.3.2",
|
|
31
31
|
"core-js": "3.8.3",
|
|
32
|
-
"critters": "0.0.
|
|
32
|
+
"critters": "0.0.7",
|
|
33
33
|
"css-loader": "5.0.1",
|
|
34
34
|
"cssnano": "4.1.10",
|
|
35
35
|
"file-loader": "6.2.0",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
},
|
|
128
128
|
"engines": {
|
|
129
129
|
"node": ">= 10.13.0",
|
|
130
|
-
"npm": "^6.11.0",
|
|
130
|
+
"npm": "^6.11.0 || ^7.5.6",
|
|
131
131
|
"yarn": ">= 1.13.0"
|
|
132
132
|
},
|
|
133
133
|
"author": "Angular Authors",
|
package/src/browser/index.js
CHANGED
|
@@ -514,8 +514,8 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
514
514
|
spinner.fail('Index html generation failed.');
|
|
515
515
|
return { success: false, error: mapErrorToMessage(error) };
|
|
516
516
|
}
|
|
517
|
-
spinner.succeed('Index html generation complete.');
|
|
518
517
|
}
|
|
518
|
+
spinner.succeed('Index html generation complete.');
|
|
519
519
|
}
|
|
520
520
|
if (options.serviceWorker) {
|
|
521
521
|
spinner.start('Generating service worker...');
|
|
@@ -527,8 +527,8 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
527
527
|
spinner.fail('Service worker generation failed.');
|
|
528
528
|
return { success: false, error: mapErrorToMessage(error) };
|
|
529
529
|
}
|
|
530
|
-
spinner.succeed('Service worker generation complete.');
|
|
531
530
|
}
|
|
531
|
+
spinner.succeed('Service worker generation complete.');
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
stats_1.webpackStatsLogger(context.logger, webpackStats, config, bundleInfoStats);
|
|
@@ -144,6 +144,8 @@ async function execute(options, context, transforms) {
|
|
|
144
144
|
scripts: [],
|
|
145
145
|
styles: [],
|
|
146
146
|
deleteOutputPath: false,
|
|
147
|
+
extractLicenses: false,
|
|
148
|
+
subresourceIntegrity: false,
|
|
147
149
|
}, context, (wco) => {
|
|
148
150
|
var _a;
|
|
149
151
|
const isIvyApplication = wco.tsConfig.options.enableIvy !== false;
|
|
@@ -163,6 +165,7 @@ async function execute(options, context, transforms) {
|
|
|
163
165
|
const partials = [
|
|
164
166
|
{ plugins: [new NoEmitPlugin()] },
|
|
165
167
|
configs_1.getCommonConfig(wco),
|
|
168
|
+
configs_1.getBrowserConfig(wco),
|
|
166
169
|
// Only use VE extraction if not using Ivy
|
|
167
170
|
configs_1.getAotConfig(wco, !usingIvy),
|
|
168
171
|
configs_1.getStatsConfig(wco),
|
package/src/tslint/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const path = require("path");
|
|
|
15
15
|
const strip_bom_1 = require("../utils/strip-bom");
|
|
16
16
|
async function _run(options, context) {
|
|
17
17
|
context.logger.warn(`TSLint's support is discontinued and we're deprecating its support in Angular CLI.\n` +
|
|
18
|
-
'To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint.');
|
|
18
|
+
'To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslint.');
|
|
19
19
|
const systemRoot = context.workspaceRoot;
|
|
20
20
|
process.chdir(context.currentDirectory);
|
|
21
21
|
const projectName = (context.target && context.target.project) || '<???>';
|
package/src/utils/version.js
CHANGED
|
@@ -46,9 +46,9 @@ function assertCompatibleAngularVersion(projectRoot, logger) {
|
|
|
46
46
|
// In this case we don't provide as many version checks.
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
if (angularCliPkgJson['version'] === '0.0.0' || angularPkgJson['version'] === '0.0.0
|
|
49
|
+
if (angularCliPkgJson['version'] === '0.0.0' || angularPkgJson['version'] === '0.0.0') {
|
|
50
50
|
// Internal CLI testing version or integration testing in the angular/angular
|
|
51
|
-
// repository with the generated development @angular/core npm package which is versioned "0.0.0
|
|
51
|
+
// repository with the generated development @angular/core npm package which is versioned "0.0.0".
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
const angularVersion = new semver_1.SemVer(angularPkgJson['version']);
|
|
@@ -112,6 +112,7 @@ function getStylesConfig(wco) {
|
|
|
112
112
|
implementation: require('less'),
|
|
113
113
|
sourceMap: cssSourceMap,
|
|
114
114
|
lessOptions: {
|
|
115
|
+
math: 'always',
|
|
115
116
|
javascriptEnabled: true,
|
|
116
117
|
paths: includePaths,
|
|
117
118
|
},
|
|
@@ -146,6 +147,7 @@ function getStylesConfig(wco) {
|
|
|
146
147
|
const fullPath = path.join(basePath, tailwindConfigFile);
|
|
147
148
|
if (fs.existsSync(fullPath)) {
|
|
148
149
|
tailwindConfigPath = fullPath;
|
|
150
|
+
break;
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
// Only load Tailwind CSS plugin if configuration file was found.
|
|
@@ -31,6 +31,8 @@ function createIvyPlugin(wco, aot, tsconfig) {
|
|
|
31
31
|
const optimize = buildOptions.optimization.scripts;
|
|
32
32
|
const compilerOptions = {
|
|
33
33
|
sourceMap: buildOptions.sourceMap.scripts,
|
|
34
|
+
declaration: false,
|
|
35
|
+
declarationMap: false,
|
|
34
36
|
};
|
|
35
37
|
if (buildOptions.preserveSymlinks !== undefined) {
|
|
36
38
|
compilerOptions.preserveSymlinks = buildOptions.preserveSymlinks;
|
|
@@ -284,7 +284,18 @@ function fallbackMiddleware() {
|
|
|
284
284
|
function isPlugin(moduleId, pluginName) {
|
|
285
285
|
return (plugin) => {
|
|
286
286
|
if (typeof plugin === 'string') {
|
|
287
|
-
|
|
287
|
+
if (!plugin.includes('*')) {
|
|
288
|
+
return plugin === moduleId;
|
|
289
|
+
}
|
|
290
|
+
const regexp = new RegExp(`^${plugin.replace('*', '.*')}`);
|
|
291
|
+
if (regexp.test(moduleId)) {
|
|
292
|
+
try {
|
|
293
|
+
require.resolve(moduleId);
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
catch (_a) { }
|
|
297
|
+
}
|
|
298
|
+
return false;
|
|
288
299
|
}
|
|
289
300
|
return pluginName in plugin;
|
|
290
301
|
};
|