3.1 KiB
Documentation below is for CLI version 6 and we no longer accept PRs to improve this. For version 7 see here.
ng generate app-shell
Overview
ng generate appShell [name]
creates an app shell
Alias
app-shell - ng generate app-shell [name]
Options
dry-run
--dry-run
(alias: -d
)
Run through without making any changes.
force
--force
(alias: -f
)
Forces overwriting of files.
client-project
--client-project
Name of related client app.
universal-project
--universal-project
Name of related universal app.
route
--route
Route path used to produce the app shell.
name
--name
Name of the universal app
app-id
--app-id
The appId to use withServerTransition.
out-dir
--out-dir
The output directory for build results.
root
--root
The root directory of the app.
index
--index
Name of the index file
main
--main
The name of the main entry-point file.
test
--test
The name of the test entry-point file.
tsconfig-file-name
--tsconfig-file-name
The name of the TypeScript configuration file.
test-tsconfig-file-name
--test-tsconfig-file-name
The name of the TypeScript configuration file for tests.
app-dir
--app-dir
The name of the application directory.
root-module-file-name
--root-module-file-name
The name of the root module file
root-module-class-name
--root-module-class-name
The name of the root module class.
source-dir
--source-dir
(alias: -D
)
The path of the source directory.