@angular/cli 14.0.0-next.3 → 14.0.0-next.6
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/bin/ng.js +3 -5
- package/bin/postinstall/analytics-prompt.js +3 -3
- package/lib/cli/index.d.ts +1 -1
- package/lib/cli/index.js +16 -18
- package/lib/config/schema.json +8 -12
- package/lib/config/workspace-schema.d.ts +1 -1
- package/lib/init.js +8 -4
- package/package.json +17 -16
- package/{models → src/analytics}/analytics-collector.d.ts +0 -0
- package/{models → src/analytics}/analytics-collector.js +6 -2
- package/src/analytics/analytics-environment-options.d.ts +9 -0
- package/src/analytics/analytics-environment-options.js +20 -0
- package/src/analytics/analytics.d.ts +47 -0
- package/src/analytics/analytics.js +303 -0
- package/src/command-builder/architect-base-command-module.d.ts +23 -0
- package/src/command-builder/architect-base-command-module.js +103 -0
- package/src/command-builder/architect-command-module.d.ts +22 -0
- package/src/command-builder/architect-command-module.js +108 -0
- package/src/command-builder/command-module.d.ts +88 -0
- package/src/command-builder/command-module.js +191 -0
- package/src/command-builder/command-runner.d.ts +10 -0
- package/src/command-builder/command-runner.js +135 -0
- package/src/command-builder/schematics-command-module.d.ts +44 -0
- package/src/command-builder/schematics-command-module.js +295 -0
- package/src/command-builder/utilities/command.d.ts +13 -0
- package/src/command-builder/utilities/command.js +27 -0
- package/src/command-builder/utilities/json-help.d.ts +36 -0
- package/src/command-builder/utilities/json-help.js +94 -0
- package/src/command-builder/utilities/json-schema.d.ts +40 -0
- package/{utilities → src/command-builder/utilities}/json-schema.js +20 -121
- package/{models → src/command-builder/utilities}/schematic-engine-host.d.ts +0 -0
- package/{models → src/command-builder/utilities}/schematic-engine-host.js +0 -0
- package/src/command-builder/utilities/schematic-workflow.d.ts +14 -0
- package/src/command-builder/utilities/schematic-workflow.js +68 -0
- package/src/commands/add/cli.d.ts +33 -0
- package/{commands/add-impl.js → src/commands/add/cli.js} +100 -72
- package/{commands/add.md → src/commands/add/long-description.md} +0 -0
- package/src/commands/analytics/cli.d.ts +16 -0
- package/src/commands/analytics/cli.js +35 -0
- package/src/commands/analytics/info/cli.d.ts +16 -0
- package/src/commands/analytics/info/cli.js +26 -0
- package/src/commands/analytics/settings/cli.d.ts +35 -0
- package/src/commands/analytics/settings/cli.js +61 -0
- package/src/commands/build/cli.d.ts +16 -0
- package/src/commands/build/cli.js +23 -0
- package/{commands/build-long.md → src/commands/build/long-description.md} +0 -0
- package/src/commands/config/cli.d.ts +24 -0
- package/{commands/config-impl.js → src/commands/config/cli.js} +102 -89
- package/{commands/config-long.md → src/commands/config/long-description.md} +2 -2
- package/src/commands/deploy/cli.d.ts +16 -0
- package/src/commands/deploy/cli.js +35 -0
- package/{commands/deploy-long.md → src/commands/deploy/long-description.md} +0 -0
- package/src/commands/doc/cli.d.ts +23 -0
- package/{commands/doc-impl.js → src/commands/doc/cli.js} +41 -12
- package/src/commands/e2e/cli.d.ts +17 -0
- package/src/commands/e2e/cli.js +34 -0
- package/src/commands/extract-i18n/cli.d.ts +15 -0
- package/src/commands/extract-i18n/cli.js +20 -0
- package/src/commands/generate/cli.d.ts +29 -0
- package/src/commands/generate/cli.js +114 -0
- package/src/commands/lint/cli.d.ts +16 -0
- package/src/commands/lint/cli.js +31 -0
- package/{commands/lint-long.md → src/commands/lint/long-description.md} +0 -0
- package/src/commands/make-this-awesome/cli.d.ts +17 -0
- package/{commands/easter-egg-impl.js → src/commands/make-this-awesome/cli.js} +17 -10
- package/src/commands/new/cli.d.ts +25 -0
- package/src/commands/new/cli.js +66 -0
- package/src/commands/run/cli.d.ts +23 -0
- package/src/commands/run/cli.js +59 -0
- package/{commands/run-long.md → src/commands/run/long-description.md} +0 -0
- package/src/commands/serve/cli.d.ts +16 -0
- package/src/commands/serve/cli.js +21 -0
- package/src/commands/test/cli.d.ts +16 -0
- package/src/commands/test/cli.js +23 -0
- package/{commands/test-long.md → src/commands/test/long-description.md} +0 -0
- package/{commands/update-impl.d.ts → src/commands/update/cli.d.ts} +25 -9
- package/{commands/update-impl.js → src/commands/update/cli.js} +323 -306
- package/{commands/update-long.md → src/commands/update/long-description.md} +0 -0
- package/src/commands/update/schematic/index.js +6 -2
- package/src/commands/version/cli.d.ts +19 -0
- package/{commands/version-impl.js → src/commands/version/cli.js} +57 -56
- package/src/typings.d.ts +2 -2
- package/{utilities → src/utilities}/color.d.ts +0 -0
- package/{utilities → src/utilities}/color.js +5 -1
- package/{utilities → src/utilities}/config.d.ts +2 -1
- package/{utilities → src/utilities}/config.js +38 -7
- package/{utilities → src/utilities}/find-up.d.ts +0 -0
- package/{utilities → src/utilities}/find-up.js +5 -1
- package/{utilities → src/utilities}/install-package.d.ts +2 -2
- package/{utilities → src/utilities}/install-package.js +1 -1
- package/{utilities → src/utilities}/json-file.d.ts +0 -0
- package/{utilities → src/utilities}/json-file.js +0 -0
- package/{utilities → src/utilities}/log-file.d.ts +0 -0
- package/{utilities → src/utilities}/log-file.js +0 -0
- package/{utilities → src/utilities}/package-json.d.ts +0 -0
- package/{utilities → src/utilities}/package-json.js +0 -0
- package/{utilities → src/utilities}/package-manager.d.ts +1 -1
- package/{utilities → src/utilities}/package-manager.js +1 -1
- package/{utilities → src/utilities}/package-metadata.d.ts +0 -0
- package/{utilities → src/utilities}/package-metadata.js +5 -1
- package/{utilities → src/utilities}/package-tree.d.ts +0 -0
- package/{utilities → src/utilities}/package-tree.js +5 -1
- package/{utilities → src/utilities}/project.d.ts +0 -0
- package/{utilities → src/utilities}/project.js +5 -1
- package/{utilities → src/utilities}/prompt.d.ts +0 -0
- package/{utilities → src/utilities}/prompt.js +5 -1
- package/{utilities → src/utilities}/spinner.d.ts +0 -0
- package/{utilities → src/utilities}/spinner.js +0 -0
- package/{utilities → src/utilities}/tty.d.ts +0 -0
- package/{utilities → src/utilities}/tty.js +0 -0
- package/{models → src/utilities}/version.d.ts +2 -1
- package/{models → src/utilities}/version.js +6 -6
- package/commands/add-impl.d.ts +0 -21
- package/commands/add.d.ts +0 -42
- package/commands/add.js +0 -10
- package/commands/add.json +0 -54
- package/commands/analytics-impl.d.ts +0 -13
- package/commands/analytics-impl.js +0 -80
- package/commands/analytics-long.md +0 -8
- package/commands/analytics.d.ts +0 -46
- package/commands/analytics.js +0 -31
- package/commands/analytics.json +0 -37
- package/commands/build-impl.d.ts +0 -14
- package/commands/build-impl.js +0 -21
- package/commands/build.d.ts +0 -30
- package/commands/build.js +0 -10
- package/commands/build.json +0 -16
- package/commands/config-impl.d.ts +0 -15
- package/commands/config.d.ts +0 -34
- package/commands/config.js +0 -10
- package/commands/config.json +0 -43
- package/commands/definitions.json +0 -66
- package/commands/deploy-impl.d.ts +0 -15
- package/commands/deploy-impl.js +0 -36
- package/commands/deploy.d.ts +0 -30
- package/commands/deploy.js +0 -10
- package/commands/deploy.json +0 -34
- package/commands/doc-impl.d.ts +0 -13
- package/commands/doc.d.ts +0 -39
- package/commands/doc.js +0 -14
- package/commands/doc.json +0 -46
- package/commands/e2e-impl.d.ts +0 -16
- package/commands/e2e-impl.js +0 -36
- package/commands/e2e-long.md +0 -4
- package/commands/e2e.d.ts +0 -29
- package/commands/e2e.js +0 -10
- package/commands/e2e.json +0 -17
- package/commands/easter-egg-impl.d.ts +0 -12
- package/commands/easter-egg.d.ts +0 -14
- package/commands/easter-egg.js +0 -10
- package/commands/easter-egg.json +0 -12
- package/commands/extract-i18n-impl.d.ts +0 -14
- package/commands/extract-i18n-impl.js +0 -21
- package/commands/extract-i18n.d.ts +0 -29
- package/commands/extract-i18n.js +0 -10
- package/commands/extract-i18n.json +0 -15
- package/commands/generate-impl.d.ts +0 -18
- package/commands/generate-impl.js +0 -89
- package/commands/generate.d.ts +0 -37
- package/commands/generate.js +0 -10
- package/commands/generate.json +0 -31
- package/commands/help-impl.d.ts +0 -12
- package/commands/help-impl.js +0 -26
- package/commands/help-long.md +0 -7
- package/commands/help.d.ts +0 -17
- package/commands/help.js +0 -10
- package/commands/help.json +0 -13
- package/commands/lint-impl.d.ts +0 -16
- package/commands/lint-impl.js +0 -69
- package/commands/lint.d.ts +0 -29
- package/commands/lint.js +0 -10
- package/commands/lint.json +0 -36
- package/commands/new-impl.d.ts +0 -16
- package/commands/new-impl.js +0 -37
- package/commands/new.d.ts +0 -41
- package/commands/new.js +0 -10
- package/commands/new.json +0 -34
- package/commands/new.md +0 -16
- package/commands/run-impl.d.ts +0 -13
- package/commands/run-impl.js +0 -22
- package/commands/run.d.ts +0 -30
- package/commands/run.js +0 -10
- package/commands/run.json +0 -36
- package/commands/serve-impl.d.ts +0 -15
- package/commands/serve-impl.js +0 -24
- package/commands/serve.d.ts +0 -29
- package/commands/serve.js +0 -10
- package/commands/serve.json +0 -17
- package/commands/test-impl.d.ts +0 -15
- package/commands/test-impl.js +0 -22
- package/commands/test.d.ts +0 -29
- package/commands/test.js +0 -10
- package/commands/test.json +0 -17
- package/commands/update.d.ts +0 -61
- package/commands/update.js +0 -10
- package/commands/update.json +0 -78
- package/commands/version-impl.d.ts +0 -17
- package/commands/version.d.ts +0 -17
- package/commands/version.js +0 -10
- package/commands/version.json +0 -13
- package/commands.json +0 -20
- package/models/analytics.d.ts +0 -58
- package/models/analytics.js +0 -358
- package/models/architect-command.d.ts +0 -35
- package/models/architect-command.js +0 -364
- package/models/command-runner.d.ts +0 -24
- package/models/command-runner.js +0 -241
- package/models/command.d.ts +0 -34
- package/models/command.js +0 -143
- package/models/interface.d.ts +0 -196
- package/models/interface.js +0 -31
- package/models/parser.d.ts +0 -39
- package/models/parser.js +0 -349
- package/models/schematic-command.d.ts +0 -55
- package/models/schematic-command.js +0 -485
- package/utilities/INITIAL_COMMIT_MESSAGE.txt +0 -8
- package/utilities/json-schema.d.ts +0 -17
package/bin/ng.js
CHANGED
|
@@ -36,19 +36,17 @@ if (version[0] % 2 === 1 && version[0] > 16) {
|
|
|
36
36
|
|
|
37
37
|
require('./bootstrap');
|
|
38
38
|
} else if (
|
|
39
|
-
version[0] <
|
|
40
|
-
version[0] === 13 ||
|
|
39
|
+
version[0] < 14 ||
|
|
41
40
|
version[0] === 15 ||
|
|
42
|
-
(version[0] === 12 && version[1] < 20) ||
|
|
43
41
|
(version[0] === 14 && version[1] < 15) ||
|
|
44
42
|
(version[0] === 16 && version[1] < 10)
|
|
45
43
|
) {
|
|
46
|
-
// Error and exit if less than
|
|
44
|
+
// Error and exit if less than 14.15 or 15.x or less than 16.10
|
|
47
45
|
console.error(
|
|
48
46
|
'Node.js version ' +
|
|
49
47
|
process.version +
|
|
50
48
|
' detected.\n' +
|
|
51
|
-
'The Angular CLI requires a minimum Node.js version of either
|
|
49
|
+
'The Angular CLI requires a minimum Node.js version of either v14.15, or v16.10.\n\n' +
|
|
52
50
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
|
|
53
51
|
);
|
|
54
52
|
|
|
@@ -14,13 +14,13 @@ if ('NG_CLI_ANALYTICS' in process.env) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
try {
|
|
17
|
-
var analytics = require('../../
|
|
17
|
+
var analytics = require('../../src/analytics/analytics');
|
|
18
18
|
|
|
19
19
|
analytics
|
|
20
|
-
.
|
|
20
|
+
.getAnalytics('global')
|
|
21
21
|
.then((hasGlobalConfig) => {
|
|
22
22
|
if (!hasGlobalConfig) {
|
|
23
|
-
return analytics.
|
|
23
|
+
return analytics.promptAnalytics(true /** global */);
|
|
24
24
|
}
|
|
25
25
|
})
|
|
26
26
|
.catch(() => {});
|
package/lib/cli/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
export { VERSION
|
|
8
|
+
export { VERSION } from '../../src/utilities/version';
|
|
9
9
|
export default function (options: {
|
|
10
10
|
testing?: boolean;
|
|
11
11
|
cliArgs: string[];
|
package/lib/cli/index.js
CHANGED
|
@@ -7,26 +7,26 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.VERSION = void 0;
|
|
11
11
|
const node_1 = require("@angular-devkit/core/node");
|
|
12
12
|
const util_1 = require("util");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
13
|
+
const command_module_1 = require("../../src/command-builder/command-module");
|
|
14
|
+
const command_runner_1 = require("../../src/command-builder/command-runner");
|
|
15
|
+
const color_1 = require("../../src/utilities/color");
|
|
16
|
+
const config_1 = require("../../src/utilities/config");
|
|
17
|
+
const log_file_1 = require("../../src/utilities/log-file");
|
|
18
|
+
const project_1 = require("../../src/utilities/project");
|
|
19
|
+
var version_1 = require("../../src/utilities/version");
|
|
19
20
|
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
|
|
20
|
-
Object.defineProperty(exports, "Version", { enumerable: true, get: function () { return version_1.Version; } });
|
|
21
21
|
const debugEnv = process.env['NG_DEBUG'];
|
|
22
22
|
const isDebug = debugEnv !== undefined && debugEnv !== '0' && debugEnv.toLowerCase() !== 'false';
|
|
23
23
|
/* eslint-disable no-console */
|
|
24
24
|
async function default_1(options) {
|
|
25
25
|
// This node version check ensures that the requirements of the project instance of the CLI are met
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
26
|
+
const [major, minor] = process.versions.node.split('.').map((part) => Number(part));
|
|
27
|
+
if (major < 14 || (major === 14 && minor < 15)) {
|
|
28
28
|
process.stderr.write(`Node.js version ${process.version} detected.\n` +
|
|
29
|
-
'The Angular CLI requires a minimum
|
|
29
|
+
'The Angular CLI requires a minimum v14.15.\n\n' +
|
|
30
30
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n');
|
|
31
31
|
return 3;
|
|
32
32
|
}
|
|
@@ -67,15 +67,13 @@ async function default_1(options) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
try {
|
|
70
|
-
|
|
71
|
-
if (typeof maybeExitCode === 'number') {
|
|
72
|
-
console.assert(Number.isInteger(maybeExitCode));
|
|
73
|
-
return maybeExitCode;
|
|
74
|
-
}
|
|
75
|
-
return 0;
|
|
70
|
+
return await (0, command_runner_1.runCommand)(options.cliArgs, logger, workspace);
|
|
76
71
|
}
|
|
77
72
|
catch (err) {
|
|
78
|
-
if (err instanceof
|
|
73
|
+
if (err instanceof command_module_1.CommandModuleError) {
|
|
74
|
+
logger.fatal(`Error: ${err.message}`);
|
|
75
|
+
}
|
|
76
|
+
else if (err instanceof Error) {
|
|
79
77
|
try {
|
|
80
78
|
const logPath = (0, log_file_1.writeErrorToLogFile)(err);
|
|
81
79
|
logger.fatal(`An unhandled exception occurred: ${err.message}\n` +
|
package/lib/config/schema.json
CHANGED
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
"SchematicsAngularApplicationSchema": {
|
|
587
587
|
"title": "Angular Application Options Schema",
|
|
588
588
|
"type": "object",
|
|
589
|
-
"description": "Generates a new basic
|
|
589
|
+
"description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
|
|
590
590
|
"additionalProperties": false,
|
|
591
591
|
"properties": {
|
|
592
592
|
"projectRoot": {
|
|
@@ -741,8 +741,7 @@
|
|
|
741
741
|
},
|
|
742
742
|
"type": {
|
|
743
743
|
"type": "string",
|
|
744
|
-
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
|
745
|
-
"default": ""
|
|
744
|
+
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
|
746
745
|
}
|
|
747
746
|
}
|
|
748
747
|
},
|
|
@@ -1129,7 +1128,6 @@
|
|
|
1129
1128
|
},
|
|
1130
1129
|
"prefix": {
|
|
1131
1130
|
"type": "string",
|
|
1132
|
-
"default": "",
|
|
1133
1131
|
"description": "A prefix to apply to generated selectors."
|
|
1134
1132
|
},
|
|
1135
1133
|
"type": {
|
|
@@ -1526,12 +1524,12 @@
|
|
|
1526
1524
|
"properties": {
|
|
1527
1525
|
"browserTarget": {
|
|
1528
1526
|
"type": "string",
|
|
1529
|
-
"description": "A browser builder target use for rendering the
|
|
1527
|
+
"description": "A browser builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
1530
1528
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
1531
1529
|
},
|
|
1532
1530
|
"serverTarget": {
|
|
1533
1531
|
"type": "string",
|
|
1534
|
-
"description": "A server builder target use for rendering the
|
|
1532
|
+
"description": "A server builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
1535
1533
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
1536
1534
|
},
|
|
1537
1535
|
"appModuleBundle": {
|
|
@@ -1751,12 +1749,11 @@
|
|
|
1751
1749
|
},
|
|
1752
1750
|
"outputPath": {
|
|
1753
1751
|
"type": "string",
|
|
1754
|
-
"description": "The full path for the new output directory, relative to the current workspace.\
|
|
1752
|
+
"description": "The full path for the new output directory, relative to the current workspace.\nBy default, writes output to a folder named dist/ in the current project."
|
|
1755
1753
|
},
|
|
1756
1754
|
"resourcesOutputPath": {
|
|
1757
1755
|
"type": "string",
|
|
1758
|
-
"description": "The path where style resources will be placed, relative to outputPath."
|
|
1759
|
-
"default": ""
|
|
1756
|
+
"description": "The path where style resources will be placed, relative to outputPath."
|
|
1760
1757
|
},
|
|
1761
1758
|
"aot": {
|
|
1762
1759
|
"type": "boolean",
|
|
@@ -2186,7 +2183,7 @@
|
|
|
2186
2183
|
},
|
|
2187
2184
|
"servePath": {
|
|
2188
2185
|
"type": "string",
|
|
2189
|
-
"description": "The pathname where the
|
|
2186
|
+
"description": "The pathname where the application will be served."
|
|
2190
2187
|
},
|
|
2191
2188
|
"disableHostCheck": {
|
|
2192
2189
|
"type": "boolean",
|
|
@@ -2664,8 +2661,7 @@
|
|
|
2664
2661
|
},
|
|
2665
2662
|
"resourcesOutputPath": {
|
|
2666
2663
|
"type": "string",
|
|
2667
|
-
"description": "The path where style resources will be placed, relative to outputPath."
|
|
2668
|
-
"default": ""
|
|
2664
|
+
"description": "The path where style resources will be placed, relative to outputPath."
|
|
2669
2665
|
},
|
|
2670
2666
|
"sourceMap": {
|
|
2671
2667
|
"description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
|
|
@@ -114,7 +114,7 @@ export interface SchematicOptions {
|
|
|
114
114
|
"@schematics/angular:web-worker"?: AngularWebWorkerOptionsSchema;
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
|
-
* Generates a new basic
|
|
117
|
+
* Generates a new basic application definition in the "projects" subfolder of the workspace.
|
|
118
118
|
*/
|
|
119
119
|
export interface AngularApplicationOptionsSchema {
|
|
120
120
|
/**
|
package/lib/init.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -31,9 +35,9 @@ require("symbol-observable");
|
|
|
31
35
|
const fs_1 = require("fs");
|
|
32
36
|
const path = __importStar(require("path"));
|
|
33
37
|
const semver_1 = require("semver");
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
38
|
+
const color_1 = require("../src/utilities/color");
|
|
39
|
+
const config_1 = require("../src/utilities/config");
|
|
40
|
+
const version_1 = require("../src/utilities/version");
|
|
37
41
|
(async () => {
|
|
38
42
|
var _a;
|
|
39
43
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.6",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,39 +28,40 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/angular/angular-cli",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@angular-devkit/architect": "0.1400.0-next.
|
|
32
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
33
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
34
|
-
"@schematics/angular": "14.0.0-next.
|
|
31
|
+
"@angular-devkit/architect": "0.1400.0-next.6",
|
|
32
|
+
"@angular-devkit/core": "14.0.0-next.6",
|
|
33
|
+
"@angular-devkit/schematics": "14.0.0-next.6",
|
|
34
|
+
"@schematics/angular": "14.0.0-next.6",
|
|
35
35
|
"@yarnpkg/lockfile": "1.1.0",
|
|
36
36
|
"ansi-colors": "4.1.1",
|
|
37
37
|
"debug": "4.3.3",
|
|
38
38
|
"ini": "2.0.0",
|
|
39
|
-
"inquirer": "8.2.
|
|
39
|
+
"inquirer": "8.2.1",
|
|
40
40
|
"jsonc-parser": "3.0.0",
|
|
41
|
-
"npm-package-arg": "9.0.
|
|
41
|
+
"npm-package-arg": "9.0.1",
|
|
42
42
|
"npm-pick-manifest": "7.0.0",
|
|
43
43
|
"open": "8.4.0",
|
|
44
44
|
"ora": "5.4.1",
|
|
45
|
-
"pacote": "13.0.
|
|
45
|
+
"pacote": "13.0.5",
|
|
46
46
|
"resolve": "1.22.0",
|
|
47
47
|
"semver": "7.3.5",
|
|
48
48
|
"symbol-observable": "4.0.0",
|
|
49
|
-
"uuid": "8.3.2"
|
|
49
|
+
"uuid": "8.3.2",
|
|
50
|
+
"yargs": "17.3.1"
|
|
50
51
|
},
|
|
51
52
|
"ng-update": {
|
|
52
53
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
53
54
|
"packageGroup": {
|
|
54
|
-
"@angular/cli": "14.0.0-next.
|
|
55
|
-
"@angular-devkit/architect": "0.1400.0-next.
|
|
56
|
-
"@angular-devkit/build-angular": "14.0.0-next.
|
|
57
|
-
"@angular-devkit/build-webpack": "0.1400.0-next.
|
|
58
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
59
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
55
|
+
"@angular/cli": "14.0.0-next.6",
|
|
56
|
+
"@angular-devkit/architect": "0.1400.0-next.6",
|
|
57
|
+
"@angular-devkit/build-angular": "14.0.0-next.6",
|
|
58
|
+
"@angular-devkit/build-webpack": "0.1400.0-next.6",
|
|
59
|
+
"@angular-devkit/core": "14.0.0-next.6",
|
|
60
|
+
"@angular-devkit/schematics": "14.0.0-next.6"
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"engines": {
|
|
63
|
-
"node": "^
|
|
64
|
+
"node": "^14.15.0 || >=16.10.0",
|
|
64
65
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
65
66
|
"yarn": ">= 1.13.0"
|
|
66
67
|
}
|
|
File without changes
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -36,7 +40,7 @@ const debug_1 = __importDefault(require("debug"));
|
|
|
36
40
|
const https = __importStar(require("https"));
|
|
37
41
|
const os = __importStar(require("os"));
|
|
38
42
|
const querystring = __importStar(require("querystring"));
|
|
39
|
-
const version_1 = require("
|
|
43
|
+
const version_1 = require("../utilities/version");
|
|
40
44
|
/**
|
|
41
45
|
* See: https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
|
|
42
46
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
export declare const analyticsDisabled: boolean;
|
|
9
|
+
export declare const analyticsShareDisabled: boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.analyticsShareDisabled = exports.analyticsDisabled = void 0;
|
|
11
|
+
function isDisabled(variable) {
|
|
12
|
+
return variable === '0' || variable.toLowerCase() === 'false';
|
|
13
|
+
}
|
|
14
|
+
function isPresent(variable) {
|
|
15
|
+
return typeof variable === 'string' && variable !== '';
|
|
16
|
+
}
|
|
17
|
+
const analyticsVariable = process.env['NG_CLI_ANALYTICS'];
|
|
18
|
+
exports.analyticsDisabled = isPresent(analyticsVariable) && isDisabled(analyticsVariable);
|
|
19
|
+
const analyticsShareVariable = process.env['NG_CLI_ANALYTICS_SHARE'];
|
|
20
|
+
exports.analyticsShareDisabled = isPresent(analyticsShareVariable) && isDisabled(analyticsShareVariable);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { analytics } from '@angular-devkit/core';
|
|
9
|
+
import { AnalyticsCollector } from './analytics-collector';
|
|
10
|
+
export declare const AnalyticsProperties: {
|
|
11
|
+
AngularCliProd: string;
|
|
12
|
+
AngularCliStaging: string;
|
|
13
|
+
readonly AngularCliDefault: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* This is the ultimate safelist for checking if a package name is safe to report to analytics.
|
|
17
|
+
*/
|
|
18
|
+
export declare const analyticsPackageSafelist: (string | RegExp)[];
|
|
19
|
+
export declare function isPackageNameSafeForAnalytics(name: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Set analytics settings. This does not work if the user is not inside a project.
|
|
22
|
+
* @param global Which config to use. "global" for user-level, and "local" for project-level.
|
|
23
|
+
* @param value Either a user ID, true to generate a new User ID, or false to disable analytics.
|
|
24
|
+
*/
|
|
25
|
+
export declare function setAnalyticsConfig(global: boolean, value: string | boolean): void;
|
|
26
|
+
/**
|
|
27
|
+
* Prompt the user for usage gathering permission.
|
|
28
|
+
* @param force Whether to ask regardless of whether or not the user is using an interactive shell.
|
|
29
|
+
* @return Whether or not the user was shown a prompt.
|
|
30
|
+
*/
|
|
31
|
+
export declare function promptAnalytics(global: boolean, force?: boolean): Promise<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Get the analytics object for the user.
|
|
34
|
+
*
|
|
35
|
+
* @returns
|
|
36
|
+
* - `AnalyticsCollector` when enabled.
|
|
37
|
+
* - `analytics.NoopAnalytics` when disabled.
|
|
38
|
+
* - `undefined` when not configured.
|
|
39
|
+
*/
|
|
40
|
+
export declare function getAnalytics(level: 'local' | 'global'): Promise<AnalyticsCollector | analytics.NoopAnalytics | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Return the usage analytics sharing setting, which is either a property string (GA-XXXXXXX-XX),
|
|
43
|
+
* or undefined if no sharing.
|
|
44
|
+
*/
|
|
45
|
+
export declare function getSharedAnalytics(): Promise<AnalyticsCollector | undefined>;
|
|
46
|
+
export declare function createAnalytics(workspace: boolean, skipPrompt?: boolean): Promise<analytics.Analytics>;
|
|
47
|
+
export declare function getAnalyticsInfoString(): Promise<string>;
|