@angular/cli 19.1.2 → 19.1.4
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/config/schema.json
CHANGED
|
@@ -325,7 +325,6 @@
|
|
|
325
325
|
},
|
|
326
326
|
"baseHref": {
|
|
327
327
|
"type": "string",
|
|
328
|
-
"deprecated": true,
|
|
329
328
|
"description": "Specifies the HTML base HREF for the locale. Defaults to the locale code if not provided."
|
|
330
329
|
},
|
|
331
330
|
"subPath": {
|
|
@@ -408,7 +407,6 @@
|
|
|
408
407
|
},
|
|
409
408
|
"baseHref": {
|
|
410
409
|
"type": "string",
|
|
411
|
-
"deprecated": true,
|
|
412
410
|
"description": "Specifies the HTML base HREF for the locale. Defaults to the locale code if not provided."
|
|
413
411
|
},
|
|
414
412
|
"subPath": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Schema = {
|
|
2
2
|
$schema?: string;
|
|
3
3
|
cli?: CliOptions;
|
|
4
4
|
/**
|
|
@@ -8,8 +8,8 @@ export interface Schema {
|
|
|
8
8
|
projects?: Projects;
|
|
9
9
|
schematics?: SchematicOptions;
|
|
10
10
|
version: number;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
11
|
+
};
|
|
12
|
+
export type CliOptions = {
|
|
13
13
|
/**
|
|
14
14
|
* Share pseudonymous usage data with the Angular Team at Google.
|
|
15
15
|
*/
|
|
@@ -30,7 +30,7 @@ export interface CliOptions {
|
|
|
30
30
|
* Control CLI specific console warnings
|
|
31
31
|
*/
|
|
32
32
|
warnings?: Warnings;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
/**
|
|
35
35
|
* Share pseudonymous usage data with the Angular Team at Google.
|
|
36
36
|
*/
|
|
@@ -38,7 +38,7 @@ export type Analytics = boolean | string;
|
|
|
38
38
|
/**
|
|
39
39
|
* Control disk cache.
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export type Cache = {
|
|
42
42
|
/**
|
|
43
43
|
* Configure whether disk caching is enabled.
|
|
44
44
|
*/
|
|
@@ -51,7 +51,7 @@ export interface Cache {
|
|
|
51
51
|
* Cache base path.
|
|
52
52
|
*/
|
|
53
53
|
path?: string;
|
|
54
|
-
}
|
|
54
|
+
};
|
|
55
55
|
/**
|
|
56
56
|
* Configure in which environment disk cache is enabled.
|
|
57
57
|
*/
|
|
@@ -75,15 +75,14 @@ export declare enum PackageManager {
|
|
|
75
75
|
/**
|
|
76
76
|
* Control CLI specific console warnings
|
|
77
77
|
*/
|
|
78
|
-
export
|
|
78
|
+
export type Warnings = {
|
|
79
79
|
/**
|
|
80
80
|
* Show a warning when the global version is newer than the local one.
|
|
81
81
|
*/
|
|
82
82
|
versionMismatch?: boolean;
|
|
83
|
-
}
|
|
84
|
-
export
|
|
85
|
-
|
|
86
|
-
export interface SchematicOptions {
|
|
83
|
+
};
|
|
84
|
+
export type Projects = {};
|
|
85
|
+
export type SchematicOptions = {
|
|
87
86
|
"@schematics/angular:application"?: AngularApplicationOptionsSchema;
|
|
88
87
|
"@schematics/angular:class"?: AngularClassOptionsSchema;
|
|
89
88
|
"@schematics/angular:component"?: AngularComponentOptionsSchema;
|
|
@@ -99,14 +98,14 @@ export interface SchematicOptions {
|
|
|
99
98
|
"@schematics/angular:service"?: AngularServiceOptionsSchema;
|
|
100
99
|
"@schematics/angular:web-worker"?: AngularWebWorkerOptionsSchema;
|
|
101
100
|
[property: string]: any;
|
|
102
|
-
}
|
|
101
|
+
};
|
|
103
102
|
/**
|
|
104
103
|
* Generates a new Angular application within your workspace. This schematic sets up the
|
|
105
104
|
* foundational structure of your project, including the root component, module, and
|
|
106
105
|
* configuration files. You can customize various aspects of the application, such as
|
|
107
106
|
* routing, styling, and testing.
|
|
108
107
|
*/
|
|
109
|
-
export
|
|
108
|
+
export type AngularApplicationOptionsSchema = {
|
|
110
109
|
/**
|
|
111
110
|
* Generate an application that does not use `zone.js`.
|
|
112
111
|
*/
|
|
@@ -192,7 +191,7 @@ export interface AngularApplicationOptionsSchema {
|
|
|
192
191
|
* component styles are scoped and applied.
|
|
193
192
|
*/
|
|
194
193
|
viewEncapsulation?: ViewEncapsulation;
|
|
195
|
-
}
|
|
194
|
+
};
|
|
196
195
|
/**
|
|
197
196
|
* The type of stylesheet files to be created for components in the application.
|
|
198
197
|
*
|
|
@@ -227,7 +226,7 @@ export declare enum ViewEncapsulation {
|
|
|
227
226
|
* with properties and methods. This schematic helps you generate a new class with the basic
|
|
228
227
|
* structure and optional test files.
|
|
229
228
|
*/
|
|
230
|
-
export
|
|
229
|
+
export type AngularClassOptionsSchema = {
|
|
231
230
|
/**
|
|
232
231
|
* The name for the new class. This will be used to create the class file (e.g.,
|
|
233
232
|
* `my-class.ts`) and, if enabled, the corresponding test file `my-class.spec.ts`.
|
|
@@ -252,13 +251,13 @@ export interface AngularClassOptionsSchema {
|
|
|
252
251
|
* For example, if you set the type to `helper`, the filename will be `my-class.helper.ts`.
|
|
253
252
|
*/
|
|
254
253
|
type?: string;
|
|
255
|
-
}
|
|
254
|
+
};
|
|
256
255
|
/**
|
|
257
256
|
* Creates a new Angular component. Components are the basic building blocks of Angular
|
|
258
257
|
* applications. Each component consists of a TypeScript class, an HTML template, and an
|
|
259
258
|
* optional CSS stylesheet. Use this schematic to generate a new component in your project.
|
|
260
259
|
*/
|
|
261
|
-
export
|
|
260
|
+
export type AngularComponentOptionsSchema = {
|
|
262
261
|
/**
|
|
263
262
|
* Configures the change detection strategy for the component.
|
|
264
263
|
*/
|
|
@@ -358,7 +357,7 @@ export interface AngularComponentOptionsSchema {
|
|
|
358
357
|
* styles are scoped and applied.
|
|
359
358
|
*/
|
|
360
359
|
viewEncapsulation?: ViewEncapsulation;
|
|
361
|
-
}
|
|
360
|
+
};
|
|
362
361
|
/**
|
|
363
362
|
* Configures the change detection strategy for the component.
|
|
364
363
|
*/
|
|
@@ -383,7 +382,7 @@ export declare enum SchematicsAngularComponentStyle {
|
|
|
383
382
|
* custom attributes, and respond to events. This schematic generates the necessary files
|
|
384
383
|
* and boilerplate code for a new directive.
|
|
385
384
|
*/
|
|
386
|
-
export
|
|
385
|
+
export type AngularDirectiveOptionsSchema = {
|
|
387
386
|
/**
|
|
388
387
|
* Automatically export the directive from the specified NgModule, making it accessible to
|
|
389
388
|
* other modules in the application.
|
|
@@ -438,13 +437,13 @@ export interface AngularDirectiveOptionsSchema {
|
|
|
438
437
|
* other standalone components or directives.
|
|
439
438
|
*/
|
|
440
439
|
standalone?: boolean;
|
|
441
|
-
}
|
|
440
|
+
};
|
|
442
441
|
/**
|
|
443
442
|
* Creates a new enum in your project. Enums (enumerations) are a way to define a set of
|
|
444
443
|
* named constants, making your code more readable and maintainable. This schematic
|
|
445
444
|
* generates a new enum with the specified name and type.
|
|
446
445
|
*/
|
|
447
|
-
export
|
|
446
|
+
export type AngularEnumOptionsSchema = {
|
|
448
447
|
/**
|
|
449
448
|
* The name for the new enum. This will be used to create the enum file (e.g.,
|
|
450
449
|
* `my-enum.enum.ts`).
|
|
@@ -465,13 +464,13 @@ export interface AngularEnumOptionsSchema {
|
|
|
465
464
|
* For example, if you set the type to `status`, the filename will be `my-enum.status.ts`.
|
|
466
465
|
*/
|
|
467
466
|
type?: string;
|
|
468
|
-
}
|
|
467
|
+
};
|
|
469
468
|
/**
|
|
470
469
|
* Creates a new route guard in your project. Route guards are used to control access to
|
|
471
470
|
* parts of your application by checking certain conditions before a route is activated.
|
|
472
471
|
* This schematic generates a new guard with the specified name, type, and options.
|
|
473
472
|
*/
|
|
474
|
-
export
|
|
473
|
+
export type AngularGuardOptionsSchema = {
|
|
475
474
|
/**
|
|
476
475
|
* Creates the new guard files at the top level of the current project. If set to false, a
|
|
477
476
|
* new folder with the guard's name will be created to contain the files.
|
|
@@ -508,7 +507,7 @@ export interface AngularGuardOptionsSchema {
|
|
|
508
507
|
* Skip the generation of a unit test file `spec.ts` for the new guard.
|
|
509
508
|
*/
|
|
510
509
|
skipTests?: boolean;
|
|
511
|
-
}
|
|
510
|
+
};
|
|
512
511
|
export declare enum Implement {
|
|
513
512
|
CanActivate = "CanActivate",
|
|
514
513
|
CanActivateChild = "CanActivateChild",
|
|
@@ -521,7 +520,7 @@ export declare enum Implement {
|
|
|
521
520
|
* perform tasks like adding authentication headers, handling errors, or logging requests.
|
|
522
521
|
* This schematic generates the necessary files and boilerplate code for a new interceptor.
|
|
523
522
|
*/
|
|
524
|
-
export
|
|
523
|
+
export type AngularInterceptorOptionsSchema = {
|
|
525
524
|
/**
|
|
526
525
|
* Creates the new interceptor files at the top level of the current project. If set to
|
|
527
526
|
* false, a new folder with the interceptor's name will be created to contain the files.
|
|
@@ -552,13 +551,13 @@ export interface AngularInterceptorOptionsSchema {
|
|
|
552
551
|
* Skip the generation of a unit test file `spec.ts` for the new interceptor.
|
|
553
552
|
*/
|
|
554
553
|
skipTests?: boolean;
|
|
555
|
-
}
|
|
554
|
+
};
|
|
556
555
|
/**
|
|
557
556
|
* Creates a new interface in your project. Interfaces define the structure of objects in
|
|
558
557
|
* TypeScript, ensuring type safety and code clarity. This schematic generates a new
|
|
559
558
|
* interface with the specified name and type.
|
|
560
559
|
*/
|
|
561
|
-
export
|
|
560
|
+
export type AngularInterfaceOptionsSchema = {
|
|
562
561
|
/**
|
|
563
562
|
* The name for the new interface. This will be used to create the interface file (e.g.,
|
|
564
563
|
* `my-interface.interface.ts`).
|
|
@@ -585,14 +584,14 @@ export interface AngularInterfaceOptionsSchema {
|
|
|
585
584
|
* `my-interface.data.ts`.
|
|
586
585
|
*/
|
|
587
586
|
type?: string;
|
|
588
|
-
}
|
|
587
|
+
};
|
|
589
588
|
/**
|
|
590
589
|
* Creates a new library project in your Angular workspace. Libraries are reusable
|
|
591
590
|
* collections of components, services, and other Angular artifacts that can be shared
|
|
592
591
|
* across multiple applications. This schematic simplifies the process of generating a new
|
|
593
592
|
* library with the necessary files and configurations.
|
|
594
593
|
*/
|
|
595
|
-
export
|
|
594
|
+
export type LibraryOptionsSchema = {
|
|
596
595
|
/**
|
|
597
596
|
* The path to the library's public API file, relative to the workspace root. This file
|
|
598
597
|
* defines what parts of the library are accessible to applications that import it.
|
|
@@ -635,14 +634,14 @@ export interface LibraryOptionsSchema {
|
|
|
635
634
|
* This can simplify the structure of your library and its usage in applications.
|
|
636
635
|
*/
|
|
637
636
|
standalone?: boolean;
|
|
638
|
-
}
|
|
637
|
+
};
|
|
639
638
|
/**
|
|
640
639
|
* Creates a new Angular workspace and an initial project. This schematic sets up the
|
|
641
640
|
* foundation for your Angular development, generating the workspace configuration files and
|
|
642
641
|
* an optional starter application. You can customize various aspects of the workspace and
|
|
643
642
|
* the initial project, such as routing, styling, and testing.
|
|
644
643
|
*/
|
|
645
|
-
export
|
|
644
|
+
export type AngularNgNewOptionsSchema = {
|
|
646
645
|
/**
|
|
647
646
|
* Configure the initial Git commit for the new repository.
|
|
648
647
|
*/
|
|
@@ -753,24 +752,24 @@ export interface AngularNgNewOptionsSchema {
|
|
|
753
752
|
* encapsulated using Shadow DOM).
|
|
754
753
|
*/
|
|
755
754
|
viewEncapsulation?: ViewEncapsulation;
|
|
756
|
-
}
|
|
755
|
+
};
|
|
757
756
|
/**
|
|
758
757
|
* Configure the initial Git commit for the new repository.
|
|
759
758
|
*/
|
|
760
759
|
export type CommitUnion = boolean | CommitObject;
|
|
761
|
-
export
|
|
760
|
+
export type CommitObject = {
|
|
762
761
|
email: string;
|
|
763
762
|
message?: string;
|
|
764
763
|
name: string;
|
|
765
764
|
[property: string]: any;
|
|
766
|
-
}
|
|
765
|
+
};
|
|
767
766
|
/**
|
|
768
767
|
* Creates a new pipe in your project. Pipes are used to transform data for display in
|
|
769
768
|
* templates. They take input values and apply a specific transformation, such as formatting
|
|
770
769
|
* dates, currency, or filtering arrays. This schematic generates the necessary files and
|
|
771
770
|
* boilerplate code for a new pipe.
|
|
772
771
|
*/
|
|
773
|
-
export
|
|
772
|
+
export type AngularPipeOptionsSchema = {
|
|
774
773
|
/**
|
|
775
774
|
* Automatically export the pipe from the specified NgModule, making it accessible to other
|
|
776
775
|
* modules in the application.
|
|
@@ -815,14 +814,14 @@ export interface AngularPipeOptionsSchema {
|
|
|
815
814
|
* standalone components, directives, or pipes.
|
|
816
815
|
*/
|
|
817
816
|
standalone?: boolean;
|
|
818
|
-
}
|
|
817
|
+
};
|
|
819
818
|
/**
|
|
820
819
|
* Creates a new resolver in your project. Resolvers are used to pre-fetch data before a
|
|
821
820
|
* route is activated, ensuring that the necessary data is available before the component is
|
|
822
821
|
* displayed. This can improve the user experience by preventing delays and loading states.
|
|
823
822
|
* This schematic generates a new resolver with the specified name and options.
|
|
824
823
|
*/
|
|
825
|
-
export
|
|
824
|
+
export type AngularResolverOptionsSchema = {
|
|
826
825
|
/**
|
|
827
826
|
* Creates the new resolver files at the top level of the current project. If set to false,
|
|
828
827
|
* a new folder with the resolver's name will be created to contain the files.
|
|
@@ -852,13 +851,13 @@ export interface AngularResolverOptionsSchema {
|
|
|
852
851
|
* Skip the generation of a unit test file `spec.ts` for the new resolver.
|
|
853
852
|
*/
|
|
854
853
|
skipTests?: boolean;
|
|
855
|
-
}
|
|
854
|
+
};
|
|
856
855
|
/**
|
|
857
856
|
* Creates a new service in your project. Services are used to encapsulate reusable logic,
|
|
858
857
|
* such as data access, API calls, or utility functions. This schematic simplifies the
|
|
859
858
|
* process of generating a new service with the necessary files and boilerplate code.
|
|
860
859
|
*/
|
|
861
|
-
export
|
|
860
|
+
export type AngularServiceOptionsSchema = {
|
|
862
861
|
/**
|
|
863
862
|
* Creates files at the top level of the project or the given path. If set to false, a new
|
|
864
863
|
* folder with the service's name will be created to contain the files.
|
|
@@ -883,14 +882,14 @@ export interface AngularServiceOptionsSchema {
|
|
|
883
882
|
* Skip the generation of a unit test file `spec.ts` for the service.
|
|
884
883
|
*/
|
|
885
884
|
skipTests?: boolean;
|
|
886
|
-
}
|
|
885
|
+
};
|
|
887
886
|
/**
|
|
888
887
|
* Creates a new web worker in your project. Web workers allow you to run JavaScript code in
|
|
889
888
|
* the background, improving the performance and responsiveness of your application by
|
|
890
889
|
* offloading computationally intensive tasks. This schematic generates the necessary files
|
|
891
890
|
* for a new web worker and provides an optional code snippet to demonstrate its usage.
|
|
892
891
|
*/
|
|
893
|
-
export
|
|
892
|
+
export type AngularWebWorkerOptionsSchema = {
|
|
894
893
|
/**
|
|
895
894
|
* The name for the new web worker. This will be used to create the worker file (e.g.,
|
|
896
895
|
* `my-worker.worker.ts`).
|
|
@@ -910,4 +909,4 @@ export interface AngularWebWorkerOptionsSchema {
|
|
|
910
909
|
* Generate a code snippet that demonstrates how to create and use the new web worker.
|
|
911
910
|
*/
|
|
912
911
|
snippet?: boolean;
|
|
913
|
-
}
|
|
912
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.4",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.1901.
|
|
29
|
-
"@angular-devkit/core": "19.1.
|
|
30
|
-
"@angular-devkit/schematics": "19.1.
|
|
28
|
+
"@angular-devkit/architect": "0.1901.4",
|
|
29
|
+
"@angular-devkit/core": "19.1.4",
|
|
30
|
+
"@angular-devkit/schematics": "19.1.4",
|
|
31
31
|
"@inquirer/prompts": "7.2.1",
|
|
32
32
|
"@listr2/prompt-adapter-inquirer": "2.0.18",
|
|
33
|
-
"@schematics/angular": "19.1.
|
|
33
|
+
"@schematics/angular": "19.1.4",
|
|
34
34
|
"@yarnpkg/lockfile": "1.1.0",
|
|
35
35
|
"ini": "5.0.0",
|
|
36
36
|
"jsonc-parser": "3.3.1",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"ng-update": {
|
|
47
47
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
48
48
|
"packageGroup": {
|
|
49
|
-
"@angular/cli": "19.1.
|
|
50
|
-
"@angular/build": "19.1.
|
|
51
|
-
"@angular/ssr": "19.1.
|
|
52
|
-
"@angular-devkit/architect": "0.1901.
|
|
53
|
-
"@angular-devkit/build-angular": "19.1.
|
|
54
|
-
"@angular-devkit/build-webpack": "0.1901.
|
|
55
|
-
"@angular-devkit/core": "19.1.
|
|
56
|
-
"@angular-devkit/schematics": "19.1.
|
|
49
|
+
"@angular/cli": "19.1.4",
|
|
50
|
+
"@angular/build": "19.1.4",
|
|
51
|
+
"@angular/ssr": "19.1.4",
|
|
52
|
+
"@angular-devkit/architect": "0.1901.4",
|
|
53
|
+
"@angular-devkit/build-angular": "19.1.4",
|
|
54
|
+
"@angular-devkit/build-webpack": "0.1901.4",
|
|
55
|
+
"@angular-devkit/core": "19.1.4",
|
|
56
|
+
"@angular-devkit/schematics": "19.1.4"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Schema = {
|
|
2
2
|
/**
|
|
3
3
|
* When false (the default), reports an error if installed packages are incompatible with
|
|
4
4
|
* the update.
|
|
@@ -39,7 +39,7 @@ export interface Schema {
|
|
|
39
39
|
*/
|
|
40
40
|
verbose?: boolean;
|
|
41
41
|
[property: string]: any;
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
43
|
/**
|
|
44
44
|
* The preferred package manager configuration files to use for registry settings.
|
|
45
45
|
*/
|
package/src/utilities/version.js
CHANGED