@angular/cli 14.0.0-next.5 → 14.0.0-next.8
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/lib/cli/index.d.ts +0 -1
- package/lib/cli/index.js +3 -30
- package/lib/config/schema.json +26 -7
- package/lib/config/workspace-schema.d.ts +6 -1
- package/lib/init.js +7 -6
- package/package.json +17 -20
- package/src/analytics/analytics-collector.js +7 -1
- package/src/analytics/analytics.d.ts +10 -23
- package/src/analytics/analytics.js +99 -184
- package/src/command-builder/architect-base-command-module.d.ts +8 -1
- package/src/command-builder/architect-base-command-module.js +61 -7
- package/src/command-builder/architect-command-module.d.ts +0 -1
- package/src/command-builder/architect-command-module.js +16 -12
- package/src/command-builder/command-module.d.ts +5 -2
- package/src/command-builder/command-module.js +21 -8
- package/src/command-builder/command-runner.d.ts +1 -2
- package/src/command-builder/command-runner.js +54 -48
- package/src/command-builder/schematics-command-module.d.ts +19 -7
- package/src/command-builder/schematics-command-module.js +268 -50
- 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 +16 -14
- package/src/command-builder/utilities/json-help.js +26 -22
- 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 +11 -1
- package/src/commands/add/cli.js +325 -6
- package/src/commands/add/long-description.md +1 -4
- package/src/commands/analytics/cli.d.ts +5 -10
- package/src/commands/analytics/cli.js +15 -50
- 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/cache/clean/cli.d.ts +17 -0
- package/src/commands/cache/clean/cli.js +32 -0
- package/src/commands/cache/cli.d.ts +17 -0
- package/src/commands/cache/cli.js +38 -0
- package/src/commands/cache/info/cli.d.ts +20 -0
- package/src/commands/cache/info/cli.js +82 -0
- package/src/commands/cache/long-description.md +53 -0
- package/src/commands/cache/settings/cli.d.ts +27 -0
- package/src/commands/cache/settings/cli.js +42 -0
- package/src/commands/cache/utilities.d.ts +11 -0
- package/src/commands/cache/utilities.js +50 -0
- package/src/commands/config/cli.d.ts +5 -2
- package/src/commands/config/cli.js +128 -6
- package/src/commands/deploy/cli.d.ts +2 -1
- package/src/commands/deploy/cli.js +27 -13
- package/src/commands/doc/cli.d.ts +1 -1
- package/src/commands/doc/cli.js +5 -1
- package/src/commands/e2e/cli.d.ts +3 -2
- package/src/commands/e2e/cli.js +14 -13
- package/src/commands/generate/cli.d.ts +14 -2
- package/src/commands/generate/cli.js +83 -36
- package/src/commands/lint/cli.d.ts +2 -1
- package/src/commands/lint/cli.js +6 -9
- package/src/commands/new/cli.d.ts +7 -3
- package/src/commands/new/cli.js +52 -6
- package/src/commands/update/cli.d.ts +31 -5
- package/src/commands/update/cli.js +709 -8
- package/src/commands/update/schematic/index.js +32 -19
- package/src/commands/version/cli.d.ts +0 -1
- package/src/commands/version/cli.js +19 -43
- package/src/typings-bazel.d.ts +14 -0
- package/src/typings.d.ts +0 -13
- package/src/utilities/color.js +5 -1
- package/src/utilities/config.d.ts +1 -1
- package/src/utilities/config.js +22 -11
- package/src/utilities/environment-options.d.ts +12 -0
- package/src/utilities/environment-options.js +24 -0
- package/src/utilities/find-up.js +5 -1
- package/src/utilities/memoize.d.ts +15 -0
- package/src/utilities/memoize.js +69 -0
- package/src/utilities/package-manager.d.ts +33 -5
- package/src/utilities/package-manager.js +252 -71
- package/src/utilities/package-metadata.d.ts +15 -37
- package/src/utilities/package-metadata.js +15 -27
- package/src/utilities/package-tree.d.ts +2 -2
- package/src/utilities/package-tree.js +5 -1
- package/src/utilities/project.js +5 -1
- package/src/utilities/prompt.d.ts +2 -0
- package/src/utilities/prompt.js +25 -4
- package/bin/postinstall/analytics-prompt.js +0 -27
- package/bin/postinstall/script.js +0 -16
- package/models/command.d.ts +0 -29
- package/models/command.js +0 -50
- package/models/interface.d.ts +0 -19
- package/models/interface.js +0 -9
- package/models/schematic-command.d.ts +0 -43
- package/models/schematic-command.js +0 -378
- package/src/commands/add/add-impl.d.ts +0 -22
- package/src/commands/add/add-impl.js +0 -331
- package/src/commands/analytics/long-description.md +0 -10
- package/src/commands/config/config-impl.d.ts +0 -17
- package/src/commands/config/config-impl.js +0 -151
- package/src/commands/generate/generate-impl.d.ts +0 -19
- package/src/commands/generate/generate-impl.js +0 -49
- package/src/commands/new/new-impl.d.ts +0 -18
- package/src/commands/new/new-impl.js +0 -38
- package/src/commands/update/update-impl.d.ts +0 -40
- package/src/commands/update/update-impl.js +0 -728
- package/src/utilities/install-package.d.ts +0 -16
- package/src/utilities/install-package.js +0 -193
- package/src/utilities/package-json.d.ts +0 -249
- package/src/utilities/package-json.js +0 -9
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { Argv } from 'yargs';
|
|
9
|
-
import { CommandModule, CommandScope, Options
|
|
10
|
-
|
|
11
|
-
packages?: string
|
|
9
|
+
import { CommandModule, CommandScope, Options } from '../../command-builder/command-module';
|
|
10
|
+
interface UpdateCommandArgs {
|
|
11
|
+
packages?: string[];
|
|
12
12
|
force: boolean;
|
|
13
13
|
next: boolean;
|
|
14
14
|
'migrate-only'?: boolean;
|
|
@@ -21,9 +21,35 @@ export interface UpdateCommandArgs {
|
|
|
21
21
|
}
|
|
22
22
|
export declare class UpdateCommandModule extends CommandModule<UpdateCommandArgs> {
|
|
23
23
|
static scope: CommandScope;
|
|
24
|
+
protected shouldReportAnalytics: boolean;
|
|
24
25
|
command: string;
|
|
25
26
|
describe: string;
|
|
26
|
-
longDescriptionPath
|
|
27
|
+
longDescriptionPath: string;
|
|
27
28
|
builder(localYargs: Argv): Argv<UpdateCommandArgs>;
|
|
28
|
-
run(options: Options<UpdateCommandArgs>
|
|
29
|
+
run(options: Options<UpdateCommandArgs>): Promise<number | void>;
|
|
30
|
+
private executeSchematic;
|
|
31
|
+
/**
|
|
32
|
+
* @return Whether or not the migration was performed successfully.
|
|
33
|
+
*/
|
|
34
|
+
private executeMigration;
|
|
35
|
+
/**
|
|
36
|
+
* @return Whether or not the migrations were performed successfully.
|
|
37
|
+
*/
|
|
38
|
+
private executeMigrations;
|
|
39
|
+
private executePackageMigrations;
|
|
40
|
+
private migrateOnly;
|
|
41
|
+
private updatePackagesAndMigrate;
|
|
42
|
+
/**
|
|
43
|
+
* @return Whether or not the commit was successful.
|
|
44
|
+
*/
|
|
45
|
+
private commit;
|
|
46
|
+
private checkCleanGit;
|
|
47
|
+
/**
|
|
48
|
+
* Checks if the current installed CLI version is older or newer than a compatible version.
|
|
49
|
+
* @returns the version to install or null when there is no update to install.
|
|
50
|
+
*/
|
|
51
|
+
private checkCLIVersion;
|
|
52
|
+
private getCLIUpdateRunnerVersion;
|
|
53
|
+
private runTempBinary;
|
|
29
54
|
}
|
|
55
|
+
export {};
|