@nx/angular 22.7.0-beta.7 → 22.7.0-beta.9
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/executors.json +62 -62
- package/generators.json +185 -185
- package/migrations.json +2412 -2412
- package/ng-package.json +19 -19
- package/package.json +10 -10
- package/project.json +2 -8
- package/src/builders/dev-server/schema.json +163 -163
- package/src/builders/webpack-browser/schema.json +567 -567
- package/src/builders/webpack-server/schema.json +303 -303
- package/src/executors/application/schema.json +732 -732
- package/src/executors/browser-esbuild/schema.json +548 -548
- package/src/executors/delegate-build/schema.json +31 -31
- package/src/executors/extract-i18n/schema.json +47 -47
- package/src/executors/module-federation-dev-server/schema.json +164 -164
- package/src/executors/module-federation-ssr-dev-server/schema.json +119 -119
- package/src/executors/ng-packagr-lite/schema.json +35 -35
- package/src/executors/package/schema.json +35 -35
- package/src/executors/unit-test/schema.json +305 -305
- package/src/generators/add-linting/schema.json +48 -48
- package/src/generators/application/schema.json +188 -188
- package/src/generators/component/schema.json +123 -123
- package/src/generators/component-story/schema.json +50 -50
- package/src/generators/component-test/schema.json +52 -52
- package/src/generators/convert-to-application-executor/schema.json +23 -23
- package/src/generators/convert-to-rspack/schema.json +27 -27
- package/src/generators/convert-to-with-mf/schema.json +30 -30
- package/src/generators/cypress-component-configuration/schema.json +43 -43
- package/src/generators/directive/schema.json +89 -89
- package/src/generators/federate-module/schema.json +80 -80
- package/src/generators/host/schema.json +189 -189
- package/src/generators/init/schema.json +31 -31
- package/src/generators/library/schema.json +189 -189
- package/src/generators/library-secondary-entry-point/schema.json +40 -40
- package/src/generators/move/schema.json +53 -53
- package/src/generators/ng-add/schema.json +62 -63
- package/src/generators/ngrx/schema.json +99 -99
- package/src/generators/ngrx-feature-store/schema.json +69 -69
- package/src/generators/ngrx-root-store/schema.json +68 -68
- package/src/generators/pipe/schema.json +75 -75
- package/src/generators/remote/schema.json +182 -182
- package/src/generators/scam/schema.json +120 -120
- package/src/generators/scam-directive/schema.json +82 -82
- package/src/generators/scam-pipe/schema.json +64 -64
- package/src/generators/scam-to-standalone/schema.json +29 -29
- package/src/generators/setup-mf/schema.json +90 -90
- package/src/generators/setup-ssr/schema.json +70 -70
- package/src/generators/setup-tailwind/schema.json +39 -39
- package/src/generators/stories/schema.json +53 -53
- package/src/generators/storybook-configuration/schema.json +80 -80
- package/src/generators/web-worker/schema.json +45 -45
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxAngularNgAddGenerator",
|
|
4
|
+
"title": "Angular plugin initialization",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Migrates an Angular CLI workspace to Nx or adds the Angular plugin to an Nx workspace. NOTE: Does not work in the `--dry-run` mode.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"defaultBase": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Default base branch for affected. NOTE: only used if running the generator in an Angular CLI workspace.",
|
|
12
|
+
"x-priority": "important"
|
|
13
|
+
},
|
|
14
|
+
"skipInstall": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Skip installing added packages.",
|
|
17
|
+
"default": false,
|
|
18
|
+
"x-priority": "internal"
|
|
19
|
+
},
|
|
20
|
+
"unitTestRunner": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["karma", "jest", "none"],
|
|
23
|
+
"description": "Test runner to use for unit tests. NOTE: only used if running the generator in an Nx workspace.",
|
|
24
|
+
"default": "jest"
|
|
25
|
+
},
|
|
26
|
+
"e2eTestRunner": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["protractor", "cypress", "none"],
|
|
29
|
+
"description": "Test runner to use for end to end (e2e) tests. NOTE: only used if running the generator in an Nx workspace.",
|
|
30
|
+
"default": "cypress"
|
|
31
|
+
},
|
|
32
|
+
"skipFormat": {
|
|
33
|
+
"description": "Skip formatting files. NOTE: only used if running the generator in an Nx workspace.",
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false,
|
|
36
|
+
"x-priority": "internal"
|
|
37
|
+
},
|
|
38
|
+
"linter": {
|
|
39
|
+
"description": "The tool to use for running lint checks. NOTE: only used if running the generator in an Nx workspace.",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["eslint", "none"],
|
|
42
|
+
"default": "eslint"
|
|
43
|
+
},
|
|
44
|
+
"style": {
|
|
45
|
+
"description": "The file extension to be used for style files. NOTE: only used if running the generator in an Nx workspace.",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"default": "css",
|
|
48
|
+
"enum": ["css", "scss", "sass", "less"]
|
|
49
|
+
},
|
|
50
|
+
"skipPackageJson": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false,
|
|
53
|
+
"description": "Do not add dependencies to `package.json`. NOTE: only used if running the generator in an Nx workspace.",
|
|
54
|
+
"x-priority": "internal"
|
|
55
|
+
},
|
|
56
|
+
"skipPostInstall": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": false,
|
|
59
|
+
"description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`. NOTE: only used if running the generator in an Nx workspace.",
|
|
60
|
+
"x-priority": "internal"
|
|
61
|
+
}
|
|
13
62
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"description": "Skip installing added packages.",
|
|
17
|
-
"default": false,
|
|
18
|
-
"x-priority": "internal"
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
"unitTestRunner": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"enum": ["karma", "jest", "none"],
|
|
24
|
-
"description": "Test runner to use for unit tests. NOTE: only used if running the generator in an Nx workspace.",
|
|
25
|
-
"default": "jest"
|
|
26
|
-
},
|
|
27
|
-
"e2eTestRunner": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"enum": ["protractor", "cypress", "none"],
|
|
30
|
-
"description": "Test runner to use for end to end (e2e) tests. NOTE: only used if running the generator in an Nx workspace.",
|
|
31
|
-
"default": "cypress"
|
|
32
|
-
},
|
|
33
|
-
"skipFormat": {
|
|
34
|
-
"description": "Skip formatting files. NOTE: only used if running the generator in an Nx workspace.",
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"default": false,
|
|
37
|
-
"x-priority": "internal"
|
|
38
|
-
},
|
|
39
|
-
"linter": {
|
|
40
|
-
"description": "The tool to use for running lint checks. NOTE: only used if running the generator in an Nx workspace.",
|
|
41
|
-
"type": "string",
|
|
42
|
-
"enum": ["eslint", "none"],
|
|
43
|
-
"default": "eslint"
|
|
44
|
-
},
|
|
45
|
-
"style": {
|
|
46
|
-
"description": "The file extension to be used for style files. NOTE: only used if running the generator in an Nx workspace.",
|
|
47
|
-
"type": "string",
|
|
48
|
-
"default": "css",
|
|
49
|
-
"enum": ["css", "scss", "sass", "less"]
|
|
50
|
-
},
|
|
51
|
-
"skipPackageJson": {
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"default": false,
|
|
54
|
-
"description": "Do not add dependencies to `package.json`. NOTE: only used if running the generator in an Nx workspace.",
|
|
55
|
-
"x-priority": "internal"
|
|
56
|
-
},
|
|
57
|
-
"skipPostInstall": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": false,
|
|
60
|
-
"description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`. NOTE: only used if running the generator in an Nx workspace.",
|
|
61
|
-
"x-priority": "internal"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"additionalProperties": false,
|
|
65
|
-
"examplesFile": "../../../docs/ng-add-examples.md"
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"examplesFile": "../../../docs/ng-add-examples.md"
|
|
66
65
|
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxNgrxGenerator",
|
|
4
|
+
"title": "Add NgRx support to an application or library.",
|
|
5
|
+
"description": "Adds NgRx support to an application or library.",
|
|
6
|
+
"x-deprecated": "Use the 'ngrx-root-store' and 'ngrx-feature-store' generators instead. It will be removed in Nx v22.",
|
|
7
|
+
"cli": "nx",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"examples": [
|
|
10
|
+
{
|
|
11
|
+
"command": "nx g @nx/angular:ngrx --root --parent=apps/my-app/src/app/app-module.ts --facade=false placeholder",
|
|
12
|
+
"description": "Add root ngrx configration to the `my-app` application"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib/my-lib-module.ts --facade=true --root=false users",
|
|
16
|
+
"description": "Add a `users` state with a facade to the `my-lib` library. It will be tracked under the default `+state` folder in the lib"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"command": "nx g @nx/angular:ngrx --parent=apps/my-app/src/app/app.config.ts --root",
|
|
20
|
+
"description": "Add a root state configuration to `my-app` when `my-app` uses Standalone APIs"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib.routes.ts users",
|
|
24
|
+
"description": "Add a `users` feature state to the Route definition of a library using Standalone APIs"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Name of the NgRx feature state, such as `products` or `users`. Recommended to use the plural form of the name.",
|
|
31
|
+
"$default": {
|
|
32
|
+
"$source": "argv",
|
|
33
|
+
"index": 0
|
|
34
|
+
},
|
|
35
|
+
"x-prompt": "What name would you like to use for the NgRx feature state? An example would be `users`.",
|
|
36
|
+
"x-priority": "important"
|
|
37
|
+
},
|
|
38
|
+
"module": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The path to the `NgModule` where the feature state will be registered. The host directory will create/use the new state directory.",
|
|
41
|
+
"x-deprecated": "This option will be removed in a future version of Nx. Please switch to using --parent instead."
|
|
42
|
+
},
|
|
43
|
+
"parent": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The path to the file where the state will be registered. For NgModule usage, this will be your `app-module.ts` for your root state, or your Feature Module for feature state. For Standalone API usage, this will be your `app.config.ts` file for your root state, or the Routes definition file for your feature state. The host directory will create/use the new state directory.",
|
|
46
|
+
"x-prompt": "What is the path to the module or Routes definition where this NgRx state should be registered?",
|
|
47
|
+
"x-priority": "important"
|
|
48
|
+
},
|
|
49
|
+
"route": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "The route that the Standalone NgRx Providers should be added to.",
|
|
52
|
+
"default": "''"
|
|
53
|
+
},
|
|
54
|
+
"directory": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"default": "+state",
|
|
57
|
+
"description": "The name of the folder used to contain/group the generated NgRx files."
|
|
58
|
+
},
|
|
59
|
+
"root": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"default": false,
|
|
62
|
+
"description": "Setup root or feature state management with NgRx.",
|
|
63
|
+
"x-prompt": "Is this the root state of the application?",
|
|
64
|
+
"x-priority": "important"
|
|
65
|
+
},
|
|
66
|
+
"facade": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"default": false,
|
|
69
|
+
"description": "Create a Facade class for the the feature.",
|
|
70
|
+
"x-prompt": "Would you like to use a Facade with your NgRx state?"
|
|
71
|
+
},
|
|
72
|
+
"skipImport": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": false,
|
|
75
|
+
"description": "Generate NgRx feature files without registering the feature in the NgModule."
|
|
76
|
+
},
|
|
77
|
+
"minimal": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"default": true,
|
|
80
|
+
"description": "Only register the root state management setup or feature state."
|
|
81
|
+
},
|
|
82
|
+
"skipFormat": {
|
|
83
|
+
"description": "Skip formatting files.",
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": false,
|
|
86
|
+
"x-priority": "internal"
|
|
87
|
+
},
|
|
88
|
+
"skipPackageJson": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"default": false,
|
|
91
|
+
"description": "Do not update the `package.json` with NgRx dependencies.",
|
|
92
|
+
"x-priority": "internal"
|
|
93
|
+
},
|
|
94
|
+
"barrels": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"default": false,
|
|
97
|
+
"description": "Use barrels to re-export actions, state and selectors."
|
|
98
|
+
}
|
|
13
99
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"description": "Add a `users` state with a facade to the `my-lib` library. It will be tracked under the default `+state` folder in the lib"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"command": "nx g @nx/angular:ngrx --parent=apps/my-app/src/app/app.config.ts --root",
|
|
20
|
-
"description": "Add a root state configuration to `my-app` when `my-app` uses Standalone APIs"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"command": "nx g @nx/angular:ngrx --parent=libs/my-lib/src/lib.routes.ts users",
|
|
24
|
-
"description": "Add a `users` feature state to the Route definition of a library using Standalone APIs"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"properties": {
|
|
28
|
-
"name": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Name of the NgRx feature state, such as `products` or `users`. Recommended to use the plural form of the name.",
|
|
31
|
-
"$default": {
|
|
32
|
-
"$source": "argv",
|
|
33
|
-
"index": 0
|
|
34
|
-
},
|
|
35
|
-
"x-prompt": "What name would you like to use for the NgRx feature state? An example would be `users`.",
|
|
36
|
-
"x-priority": "important"
|
|
37
|
-
},
|
|
38
|
-
"module": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "The path to the `NgModule` where the feature state will be registered. The host directory will create/use the new state directory.",
|
|
41
|
-
"x-deprecated": "This option will be removed in a future version of Nx. Please switch to using --parent instead."
|
|
42
|
-
},
|
|
43
|
-
"parent": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "The path to the file where the state will be registered. For NgModule usage, this will be your `app-module.ts` for your root state, or your Feature Module for feature state. For Standalone API usage, this will be your `app.config.ts` file for your root state, or the Routes definition file for your feature state. The host directory will create/use the new state directory.",
|
|
46
|
-
"x-prompt": "What is the path to the module or Routes definition where this NgRx state should be registered?",
|
|
47
|
-
"x-priority": "important"
|
|
48
|
-
},
|
|
49
|
-
"route": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "The route that the Standalone NgRx Providers should be added to.",
|
|
52
|
-
"default": "''"
|
|
53
|
-
},
|
|
54
|
-
"directory": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"default": "+state",
|
|
57
|
-
"description": "The name of the folder used to contain/group the generated NgRx files."
|
|
58
|
-
},
|
|
59
|
-
"root": {
|
|
60
|
-
"type": "boolean",
|
|
61
|
-
"default": false,
|
|
62
|
-
"description": "Setup root or feature state management with NgRx.",
|
|
63
|
-
"x-prompt": "Is this the root state of the application?",
|
|
64
|
-
"x-priority": "important"
|
|
65
|
-
},
|
|
66
|
-
"facade": {
|
|
67
|
-
"type": "boolean",
|
|
68
|
-
"default": false,
|
|
69
|
-
"description": "Create a Facade class for the the feature.",
|
|
70
|
-
"x-prompt": "Would you like to use a Facade with your NgRx state?"
|
|
71
|
-
},
|
|
72
|
-
"skipImport": {
|
|
73
|
-
"type": "boolean",
|
|
74
|
-
"default": false,
|
|
75
|
-
"description": "Generate NgRx feature files without registering the feature in the NgModule."
|
|
76
|
-
},
|
|
77
|
-
"minimal": {
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"default": true,
|
|
80
|
-
"description": "Only register the root state management setup or feature state."
|
|
81
|
-
},
|
|
82
|
-
"skipFormat": {
|
|
83
|
-
"description": "Skip formatting files.",
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"default": false,
|
|
86
|
-
"x-priority": "internal"
|
|
87
|
-
},
|
|
88
|
-
"skipPackageJson": {
|
|
89
|
-
"type": "boolean",
|
|
90
|
-
"default": false,
|
|
91
|
-
"description": "Do not update the `package.json` with NgRx dependencies.",
|
|
92
|
-
"x-priority": "internal"
|
|
93
|
-
},
|
|
94
|
-
"barrels": {
|
|
95
|
-
"type": "boolean",
|
|
96
|
-
"default": false,
|
|
97
|
-
"description": "Use barrels to re-export actions, state and selectors."
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"additionalProperties": false,
|
|
101
|
-
"required": ["name"]
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": ["name"]
|
|
102
102
|
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxNgrxFeatureStoreGenerator",
|
|
4
|
+
"title": "NgRx Feature Store Generator",
|
|
5
|
+
"description": "Add an NgRx Feature Store to an application or library.",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Name of the NgRx feature state, such as `products` or `users`. Recommended to use the plural form of the name.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "What name would you like to use for the NgRx feature state? An example would be `users`.",
|
|
17
|
+
"x-priority": "important"
|
|
18
|
+
},
|
|
19
|
+
"parent": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The path to the file where the state will be registered. For NgModule usage, this will be your Feature Module. For Standalone API usage, this will be your Routes definition file for your feature state. The host directory will create/use the new state directory.",
|
|
22
|
+
"x-prompt": "What is the path to the module or Routes definition where this NgRx state should be registered?",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"route": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The route that the Standalone NgRx Providers should be added to.",
|
|
28
|
+
"default": "''"
|
|
29
|
+
},
|
|
30
|
+
"minimal": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false,
|
|
33
|
+
"description": "Only register the feature state.",
|
|
34
|
+
"x-priority": "important"
|
|
35
|
+
},
|
|
36
|
+
"directory": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"default": "+state",
|
|
39
|
+
"description": "The name of the folder used to contain/group the generated NgRx files."
|
|
40
|
+
},
|
|
41
|
+
"facade": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false,
|
|
44
|
+
"description": "Create a Facade class for the the feature.",
|
|
45
|
+
"x-prompt": "Would you like to use a Facade with your NgRx state?"
|
|
46
|
+
},
|
|
47
|
+
"skipImport": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false,
|
|
50
|
+
"description": "Generate NgRx feature files without registering the feature in the NgModule."
|
|
51
|
+
},
|
|
52
|
+
"skipFormat": {
|
|
53
|
+
"description": "Skip formatting files.",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false,
|
|
56
|
+
"x-priority": "internal"
|
|
57
|
+
},
|
|
58
|
+
"skipPackageJson": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false,
|
|
61
|
+
"description": "Do not update the `package.json` with NgRx dependencies.",
|
|
62
|
+
"x-priority": "internal"
|
|
63
|
+
},
|
|
64
|
+
"barrels": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false,
|
|
67
|
+
"description": "Use barrels to re-export actions, state and selectors."
|
|
68
|
+
}
|
|
18
69
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"description": "The path to the file where the state will be registered. For NgModule usage, this will be your Feature Module. For Standalone API usage, this will be your Routes definition file for your feature state. The host directory will create/use the new state directory.",
|
|
22
|
-
"x-prompt": "What is the path to the module or Routes definition where this NgRx state should be registered?",
|
|
23
|
-
"x-priority": "important"
|
|
24
|
-
},
|
|
25
|
-
"route": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "The route that the Standalone NgRx Providers should be added to.",
|
|
28
|
-
"default": "''"
|
|
29
|
-
},
|
|
30
|
-
"minimal": {
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"default": false,
|
|
33
|
-
"description": "Only register the feature state.",
|
|
34
|
-
"x-priority": "important"
|
|
35
|
-
},
|
|
36
|
-
"directory": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "+state",
|
|
39
|
-
"description": "The name of the folder used to contain/group the generated NgRx files."
|
|
40
|
-
},
|
|
41
|
-
"facade": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"default": false,
|
|
44
|
-
"description": "Create a Facade class for the the feature.",
|
|
45
|
-
"x-prompt": "Would you like to use a Facade with your NgRx state?"
|
|
46
|
-
},
|
|
47
|
-
"skipImport": {
|
|
48
|
-
"type": "boolean",
|
|
49
|
-
"default": false,
|
|
50
|
-
"description": "Generate NgRx feature files without registering the feature in the NgModule."
|
|
51
|
-
},
|
|
52
|
-
"skipFormat": {
|
|
53
|
-
"description": "Skip formatting files.",
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"default": false,
|
|
56
|
-
"x-priority": "internal"
|
|
57
|
-
},
|
|
58
|
-
"skipPackageJson": {
|
|
59
|
-
"type": "boolean",
|
|
60
|
-
"default": false,
|
|
61
|
-
"description": "Do not update the `package.json` with NgRx dependencies.",
|
|
62
|
-
"x-priority": "internal"
|
|
63
|
-
},
|
|
64
|
-
"barrels": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": false,
|
|
67
|
-
"description": "Use barrels to re-export actions, state and selectors."
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"additionalProperties": false,
|
|
71
|
-
"required": ["name"]
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": ["name"]
|
|
72
72
|
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxNgrxRootStoreGenerator",
|
|
4
|
+
"title": "Add NgRx support to an application.",
|
|
5
|
+
"description": "Adds NgRx support to an application.",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The name of the application to generate the NgRx configuration for.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "What app would you like to generate a NgRx configuration for?",
|
|
17
|
+
"x-dropdown": "projects"
|
|
18
|
+
},
|
|
19
|
+
"minimal": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": true,
|
|
22
|
+
"description": "Only register the root state management setup or also generate a global feature state.",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Name of the NgRx state, such as `products` or `users`. Recommended to use the plural form of the name.",
|
|
28
|
+
"x-priority": "important"
|
|
29
|
+
},
|
|
30
|
+
"route": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The route that the Standalone NgRx Providers should be added to.",
|
|
33
|
+
"default": "''"
|
|
34
|
+
},
|
|
35
|
+
"directory": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": "+state",
|
|
38
|
+
"description": "The name of the folder used to contain/group the generated NgRx files."
|
|
39
|
+
},
|
|
40
|
+
"facade": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": false,
|
|
43
|
+
"description": "Create a Facade class for the the feature.",
|
|
44
|
+
"x-prompt": "Would you like to use a Facade with your NgRx state?"
|
|
45
|
+
},
|
|
46
|
+
"addDevTools": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": false,
|
|
49
|
+
"description": "Instrument the Store Devtools."
|
|
50
|
+
},
|
|
51
|
+
"skipImport": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": false,
|
|
54
|
+
"description": "Generate NgRx feature files without registering the feature in the NgModule."
|
|
55
|
+
},
|
|
56
|
+
"skipFormat": {
|
|
57
|
+
"description": "Skip formatting files.",
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false,
|
|
60
|
+
"x-priority": "internal"
|
|
61
|
+
},
|
|
62
|
+
"skipPackageJson": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"default": false,
|
|
65
|
+
"description": "Do not update the `package.json` with NgRx dependencies.",
|
|
66
|
+
"x-priority": "internal"
|
|
67
|
+
}
|
|
18
68
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"default": true,
|
|
22
|
-
"description": "Only register the root state management setup or also generate a global feature state.",
|
|
23
|
-
"x-priority": "important"
|
|
24
|
-
},
|
|
25
|
-
"name": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Name of the NgRx state, such as `products` or `users`. Recommended to use the plural form of the name.",
|
|
28
|
-
"x-priority": "important"
|
|
29
|
-
},
|
|
30
|
-
"route": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "The route that the Standalone NgRx Providers should be added to.",
|
|
33
|
-
"default": "''"
|
|
34
|
-
},
|
|
35
|
-
"directory": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"default": "+state",
|
|
38
|
-
"description": "The name of the folder used to contain/group the generated NgRx files."
|
|
39
|
-
},
|
|
40
|
-
"facade": {
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"default": false,
|
|
43
|
-
"description": "Create a Facade class for the the feature.",
|
|
44
|
-
"x-prompt": "Would you like to use a Facade with your NgRx state?"
|
|
45
|
-
},
|
|
46
|
-
"addDevTools": {
|
|
47
|
-
"type": "boolean",
|
|
48
|
-
"default": false,
|
|
49
|
-
"description": "Instrument the Store Devtools."
|
|
50
|
-
},
|
|
51
|
-
"skipImport": {
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"default": false,
|
|
54
|
-
"description": "Generate NgRx feature files without registering the feature in the NgModule."
|
|
55
|
-
},
|
|
56
|
-
"skipFormat": {
|
|
57
|
-
"description": "Skip formatting files.",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": false,
|
|
60
|
-
"x-priority": "internal"
|
|
61
|
-
},
|
|
62
|
-
"skipPackageJson": {
|
|
63
|
-
"type": "boolean",
|
|
64
|
-
"default": false,
|
|
65
|
-
"description": "Do not update the `package.json` with NgRx dependencies.",
|
|
66
|
-
"x-priority": "internal"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"additionalProperties": false,
|
|
70
|
-
"required": ["project"]
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["project"]
|
|
71
71
|
}
|