mirror of
https://github.com/angular/angular-cli.git
synced 2026-03-20 04:45:00 +00:00
Page:
1 x angular cli
Pages
1 x angular cli
1 x build
1 x config
1 x doc
1 x e2e
1 x eject
1 x generate class
1 x generate component
1 x generate directive
1 x generate enum
1 x generate guard
1 x generate interface
1 x generate module
1 x generate pipe
1 x generate service
1 x generate
1 x home
1 x lint
1 x new
1 x serve
1 x stories 1.0 update
1 x stories application environments
1 x stories asset configuration
1 x stories autocompletion
1 x stories autoprefixer
1 x stories budgets
1 x stories code coverage
1 x stories configure hmr
1 x stories continuous integration
1 x stories css preprocessors
1 x stories disk serve
1 x stories github pages
1 x stories global lib
1 x stories global scripts
1 x stories global styles
1 x stories include angular flex
1 x stories include angular material
1 x stories include angularfire
1 x stories include bootstrap
1 x stories include font awesome
1 x stories internationalization
1 x stories linked library
1 x stories moving into the cli
1 x stories moving out of the cli
1 x stories multiple apps
1 x stories proxy
1 x stories routing
1 x stories third party lib
1 x stories universal rendering
1 x stories using corporate proxy
1 x stories
1 x test
1 x update
1 x xi18n
Home
Upgrading from Beta.10 to Beta.12
Upgrading from Beta.10 to Beta.14
add
angular cli
angular workspace
build
config
doc
e2e
eject
generate app shell
generate application
generate class
generate component
generate directive
generate enum
generate guard
generate interface
generate library
generate module
generate pipe
generate service
generate universal
generate
help
lint
new
run
serve
stories 1.0 update
stories app shell
stories application environments
stories asset configuration
stories autocompletion
stories autoprefixer
stories budgets
stories code coverage
stories configure hmr
stories continuous integration
stories create library
stories css preprocessors
stories disk serve
stories github pages
stories global lib
stories global scripts
stories global styles
stories include angular flex
stories include angular material
stories include angularfire
stories include bootstrap
stories include font awesome
stories internationalization
stories linked library
stories moving into the cli
stories moving out of the cli
stories multiple apps
stories multiple projects
stories proxy
stories rc update
stories rc.0 update
stories routing
stories third party lib
stories universal rendering
stories using corporate proxy
stories
test
update
version
xi18n
No results
1
1 x angular cli
Hans Larsen edited this page 2018-05-03 13:12:11 -07:00
Table of Contents
Angular CLI Config Schema
Options
-
project: The global configuration of the project.
- name (
string): The name of the project. - ejected(
boolean): Whether or not this project was ejected. Default isfalse.
- name (
-
apps (
array): Properties of the different applications in this project.- name (
string): Name of the app. - root (
string): The root directory of the app. - outDir (
string): The output directory for build results. Default isdist/. - assets (
array): List of application assets. - deployUrl (
string): URL where files will be deployed. - index (
string): The name of the start HTML file. Default isindex.html - main (
string): The name of the main entry-point file. - polyfills (
string): The name of the polyfills entry-point file. Loaded before the app. - test (
string): The name of the test entry-point file. - tsconfig (
string): The name of the TypeScript configuration file. Default istsconfig.app.json. - testTsconfig (
string): The name of the TypeScript configuration file for unit tests. - prefix (
string): The prefix to apply to generated selectors. - serviceWorker (
boolean): Experimental support for a service worker from @angular/service-worker. Default isfalse. - showCircularDependencies (
boolean): Show circular dependency warnings on builds. Default istrue. - styles (
string|array): Global styles to be included in the build. - stylePreprocessorOptions : Options to pass to style preprocessors.
- includePaths (
array): Paths to include. Paths will be resolved to project root.
- includePaths (
- scripts (
array): Global scripts to be included in the build. - environmentSource (
string): Source file for environment config. - environments (
object): Name and corresponding file for environment config.
- name (
-
e2e: Configuration for end-to-end tests.
- protractor
- config (
string): Path to the config file.
- config (
- protractor
-
lint (
array): Properties to be passed to TSLint.- files (
string|array): File glob(s) to lint. - project (
string): Location of the tsconfig.json project file. Will also use as files to lint if 'files' property not present. - tslintConfig (
string): Location of the tslint.json configuration. Default istslint.json. - exclude (
string|array): File glob(s) to ignore.
- files (
-
test: Configuration for unit tests.
- karma
- config (
string): Path to the karma config file.
- config (
- codeCoverage
- exclude (
array): Globs to exclude from code coverage.
- exclude (
- karma
-
defaults: Specify the default values for generating.
- styleExt (
string): The file extension to be used for style files. - poll (
number): How often to check for file updates. - class: Options for generating a class.
- spec (
boolean): Specifies if a spec file is generated. Default isfalse.
- spec (
- component: Options for generating a component.
- flat (
boolean): Flag to indicate if a dir is created. Default isfalse. - spec (
boolean): Specifies if a spec file is generated. Default istrue. - inlineStyle (
boolean): Specifies if the style will be in the ts file. Default isfalse. - inlineTemplate (
boolean): Specifies if the template will be in the ts file. Default isfalse. - viewEncapsulation (
string): Specifies the view encapsulation strategy. Can be one ofEmulated,NativeorNone. - changeDetection (
string): Specifies the change detection strategy. Can be one ofDefaultorOnPush.
- flat (
- directive: Options for generating a directive.
- flat (
boolean): Flag to indicate if a dir is created. Default istrue. - spec (
boolean): Specifies if a spec file is generated. Default istrue.
- flat (
- guard: Options for generating a guard.
- flat (
boolean): Flag to indicate if a dir is created. Default istrue. - spec (
boolean): Specifies if a spec file is generated. Default istrue.
- flat (
- interface: Options for generating a interface.
- prefix (
string): Prefix to apply to interface names. (i.e. I)
- prefix (
- module: Options for generating a module.
- flat (
boolean): Flag to indicate if a dir is created. Default isfalse. - spec (
boolean): Specifies if a spec file is generated. Default isfalse.
- flat (
- pipe: Options for generating a pipe.
- flat (
boolean): Flag to indicate if a dir is created. Default istrue. - spec (
boolean): Specifies if a spec file is generated. Default istrue.
- flat (
- service: Options for generating a service.
- flat (
boolean): Flag to indicate if a dir is created. Default istrue. - spec (
boolean): Specifies if a spec file is generated. Default istrue.
- flat (
- build: Properties to be passed to the build command.
- sourcemaps (
boolean): Output sourcemaps. - baseHref (
string): Base url for the application being built. - progress (
boolean): Log progress to the console while building. Default istrue. - poll (
number): Enable and define the file watching poll time period (milliseconds). - deleteOutputPath (
boolean): Delete output path before build. Default istrue. - preserveSymlinks (
boolean): Do not use the real path when resolving modules. Default isfalse. - showCircularDependencies (
boolean): Show circular dependency warnings on builds. Default istrue. - namedChunks (
boolean): Use file name for lazy loaded chunks.
- sourcemaps (
- serve: Properties to be passed to the serve command
- port (
number): The port the application will be served on. Default is4200. - host (
string): The host the application will be served on. Default islocalhost. - ssl (
boolean): Enables ssl for the application. Default isfalse. - sslKey (
string): The ssl key used by the server. Default isssl/server.key. - sslCert (
string): The ssl certificate used by the server. Default isssl/server.crt. - proxyConfig (
string): Proxy configuration file.
- port (
- styleExt (
-
packageManager (
string): Specify which package manager tool to use. Options includenpm,cnpmandyarn. -
warnings: Allow people to disable console warnings.
- nodeDeprecation (
boolean): Show a warning when the node version is incompatible. Default istrue. - packageDeprecation (
boolean): Show a warning when the user installed angular-cli. Default istrue. - versionMismatch (
boolean): Show a warning when the global version is newer than the local one. Default istrue.
- nodeDeprecation (