2017-03-23 17:25:30 -07:00

2.6 KiB

ng new

Overview

ng new [name] creates a new angular application.

Default applications are created in a directory of the same name, with an initialized Angular application.

Options

directory

`--directory` (alias: `-dir`) _default value: dir_

The directory name to create the app in.

dry-run

`--dry-run` (alias: `-d`) _default value: false_

Run through without making any changes.

inline-style

`--inline-style` (alias: `-is`) _default value: false_

Should have an inline style.

inline-template

`--inline-template` (alias: `-it`) _default value: false_

Should have an inline template.

ng4

`--ng4` _default value: false_

Create a project with Angular 4 in the template.

prefix

`--prefix` (alias: `-p`) _default value: app_

The prefix to use for all component selectors.

routing

`--routing` _default value: false_

Generate a routing module.

skip-commit

`--skip-commit` (alias: `-sc`) _default value: false_

Skip committing the first commit to git.

skip-git

`--skip-git` (alias: `-sg`) _default value: false_

Skip initializing a git repository.

skip-install

`--skip-install` (alias: `-si`) _default value: false_

Skip installing packages.

skip-tests

`--skip-tests` (alias: `-st`) _default value: false_

Skip creating spec files.

source-dir

`--source-dir` (alias: `-sd`) _default value: src_

The name of the source directory.

style

`--style` _default value: css_

The style file default extension.

verbose

`--verbose` (alias: `-v`) _default value: false_

Adds more details to output logging.