@angular/cli 14.0.0-next.11 → 14.0.0-next.12
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
|
@@ -812,6 +812,12 @@
|
|
|
812
812
|
"alias": "t",
|
|
813
813
|
"x-user-analytics": 10
|
|
814
814
|
},
|
|
815
|
+
"standalone": {
|
|
816
|
+
"description": "Whether the generated component is standalone.",
|
|
817
|
+
"type": "boolean",
|
|
818
|
+
"default": false,
|
|
819
|
+
"x-user-analytics": 15
|
|
820
|
+
},
|
|
815
821
|
"viewEncapsulation": {
|
|
816
822
|
"description": "The view encapsulation strategy to use in the new component.",
|
|
817
823
|
"enum": [
|
|
@@ -964,6 +970,12 @@
|
|
|
964
970
|
"format": "html-selector",
|
|
965
971
|
"description": "The HTML selector to use for this directive."
|
|
966
972
|
},
|
|
973
|
+
"standalone": {
|
|
974
|
+
"description": "Whether the generated directive is standalone.",
|
|
975
|
+
"type": "boolean",
|
|
976
|
+
"default": false,
|
|
977
|
+
"x-user-analytics": 15
|
|
978
|
+
},
|
|
967
979
|
"flat": {
|
|
968
980
|
"type": "boolean",
|
|
969
981
|
"description": "When true (the default), creates the new files at the top level of the current project.",
|
|
@@ -1251,6 +1263,12 @@
|
|
|
1251
1263
|
"description": "Do not import this pipe into the owning NgModule.",
|
|
1252
1264
|
"x-user-analytics": 18
|
|
1253
1265
|
},
|
|
1266
|
+
"standalone": {
|
|
1267
|
+
"description": "Whether the generated pipe is standalone.",
|
|
1268
|
+
"type": "boolean",
|
|
1269
|
+
"default": false,
|
|
1270
|
+
"x-user-analytics": 15
|
|
1271
|
+
},
|
|
1254
1272
|
"module": {
|
|
1255
1273
|
"type": "string",
|
|
1256
1274
|
"description": "The declaring NgModule.",
|
|
@@ -292,6 +292,10 @@ export interface AngularComponentOptionsSchema {
|
|
|
292
292
|
* Do not create "spec.ts" test files for the new component.
|
|
293
293
|
*/
|
|
294
294
|
skipTests?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Whether the generated component is standalone.
|
|
297
|
+
*/
|
|
298
|
+
standalone?: boolean;
|
|
295
299
|
/**
|
|
296
300
|
* The file extension or preprocessor to use for style files, or 'none' to skip generating
|
|
297
301
|
* the style file.
|
|
@@ -369,6 +373,10 @@ export interface AngularDirectiveOptionsSchema {
|
|
|
369
373
|
* Do not create "spec.ts" test files for the new class.
|
|
370
374
|
*/
|
|
371
375
|
skipTests?: boolean;
|
|
376
|
+
/**
|
|
377
|
+
* Whether the generated directive is standalone.
|
|
378
|
+
*/
|
|
379
|
+
standalone?: boolean;
|
|
372
380
|
}
|
|
373
381
|
/**
|
|
374
382
|
* Generates a new, generic enum definition for the given or default project.
|
|
@@ -640,6 +648,10 @@ export interface AngularPipeOptionsSchema {
|
|
|
640
648
|
* Do not create "spec.ts" test files for the new pipe.
|
|
641
649
|
*/
|
|
642
650
|
skipTests?: boolean;
|
|
651
|
+
/**
|
|
652
|
+
* Whether the generated pipe is standalone.
|
|
653
|
+
*/
|
|
654
|
+
standalone?: boolean;
|
|
643
655
|
}
|
|
644
656
|
/**
|
|
645
657
|
* Generates a new, generic resolver definition in the given or default project.
|
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.12",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.1400.0-next.
|
|
29
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
30
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
31
|
-
"@schematics/angular": "14.0.0-next.
|
|
28
|
+
"@angular-devkit/architect": "0.1400.0-next.12",
|
|
29
|
+
"@angular-devkit/core": "14.0.0-next.12",
|
|
30
|
+
"@angular-devkit/schematics": "14.0.0-next.12",
|
|
31
|
+
"@schematics/angular": "14.0.0-next.12",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.1",
|
|
34
34
|
"debug": "4.3.4",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"ng-update": {
|
|
50
50
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
51
51
|
"packageGroup": {
|
|
52
|
-
"@angular/cli": "14.0.0-next.
|
|
53
|
-
"@angular-devkit/architect": "0.1400.0-next.
|
|
54
|
-
"@angular-devkit/build-angular": "14.0.0-next.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.1400.0-next.
|
|
56
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
57
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
52
|
+
"@angular/cli": "14.0.0-next.12",
|
|
53
|
+
"@angular-devkit/architect": "0.1400.0-next.12",
|
|
54
|
+
"@angular-devkit/build-angular": "14.0.0-next.12",
|
|
55
|
+
"@angular-devkit/build-webpack": "0.1400.0-next.12",
|
|
56
|
+
"@angular-devkit/core": "14.0.0-next.12",
|
|
57
|
+
"@angular-devkit/schematics": "14.0.0-next.12"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
@@ -161,7 +161,9 @@ function wrap(schematicFile, schematicDirectory, moduleCache, exportName) {
|
|
|
161
161
|
const schematicCode = (0, fs_1.readFileSync)(schematicFile, 'utf8');
|
|
162
162
|
// `module` is required due to @angular/localize ng-add being in UMD format
|
|
163
163
|
const headerCode = '(function() {\nvar exports = {};\nvar module = { exports };\n';
|
|
164
|
-
const footerCode = exportName
|
|
164
|
+
const footerCode = exportName
|
|
165
|
+
? `\nreturn module.exports['${exportName}'];});`
|
|
166
|
+
: '\nreturn module.exports;});';
|
|
165
167
|
const script = new vm_1.Script(headerCode + schematicCode + footerCode, {
|
|
166
168
|
filename: schematicFile,
|
|
167
169
|
lineOffset: 3,
|