31 Commits

Author SHA1 Message Date
Filipe Silva
0f6a5d6367 fix(@angular/cli): use realpath for project root
Fix #2726
2017-05-24 13:39:30 -07:00
Filipe Silva
91cbe3375f refactor(@angular/cli): use this.project instead of cliProject 2017-05-24 13:39:30 -07:00
Sumit Arora
a13e780d3d fix(@angular/cli): fix issue of folder getting generated on dry run
Fixes: #6017
2017-05-24 16:06:01 -04:00
Scott
a09f744b2d fix(@angular/cli): proper generation when the target dir exists (#5929)
This allows generating nested components or other blurprint outputs.
2017-05-17 19:22:53 -04:00
Hans
4ea6d5db00 fix(@angular/cli): if user pass a full path, use the path (#6341) 2017-05-17 19:22:03 -04:00
Stephen Cavaliere
8b220a4012 feat(@angular/cli): add import flag to modules
closes #5377
2017-05-08 12:49:29 +01:00
clydin
de8336d90a test: update development tslint version (#5936)
Also fixes any encountered errors.

This only changes the version used for the CLI's development.  The project template version of tslint cannot be updated until codelyzer supports the latest version. ([codelyzer tracking issue](https://github.com/mgechev/codelyzer/issues/281))
2017-05-04 20:13:13 +01:00
Stephen Cavaliere
3141673254 refactor(@angular/cli): update generate command module file resolution
closes #5461
2017-03-30 21:10:02 +01:00
Charles Lyding
b3e3734c35 refactor(@angular/cli): convert additional files to typescript
Close #4996
2017-03-29 10:52:55 +01:00
Sumit Arora
430cb55a14 fix(@angular/cli): fix default app index 2017-03-23 17:38:10 -07:00
Sumit Arora
d2b28dd84d fix(@angular/cli): do not error when apps is missing from the config 2017-03-23 08:47:15 -07:00
Mike Brocchi
d6504e2fb6 fix(@angular/cli): generating will dasherize all new dirs (#5437)
Fixes #5424
2017-03-15 13:42:24 -04:00
Stephen Cavaliere
3515c3b472 fix(@angular/cli): fix issue with console prompt bailing early (#5218)
* fix(@angular/cli): fix issue with console prompt bailing early

fixes #4614

* fix(@angular/cli): fix declarable types not finding closest module

fixes #5127
2017-03-07 22:12:18 -05:00
Mike Brocchi
1609554c4d refactor(@angular/cli): consolidate config reading logic (#5023) 2017-02-27 21:22:19 -08:00
Hans
d2d788b200 fix(@angular/cli): improve matching range to match beta/rc (#4989) 2017-02-24 14:47:39 -08:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Hans Larsen
00f913c8cd fix(@angular/cli): fix angular-cli logic
The old logic was failing if the global angular-cli config was .angular-cli.json.
2017-02-22 13:23:45 -08:00
Hans Larsen
e4fc2947db feat(@angular/cli): allow to create new projects in existing directory
Unless the directory is already under an Angular CLI project.

Fixes #4762
Close #4901
2017-02-22 12:00:59 +00:00
Charles Lyding
d79fd000c1 refactor(@angular/cli): use check port utility function in serve command
Close #4898
2017-02-22 11:54:57 +00:00
Bram Borggreve
432c0a28e9 feat(@angular/cli): update ascii art to Angular CLI (#4785) 2017-02-21 14:31:02 -08:00
Filipe Silva
d2bef98bb9 feat(@angular/cli): ng e2e defaults to random port (#4753)
BREAKING CHANGE: `ng e2e` will use a random port for serving by default
instead of using 4200.
2017-02-17 19:53:22 +00:00
Filipe Silva
6d5dfa01c0 test: add license test (#4561)
* test: add license test

* only check prod dependencies

* remove findup dep

* also check dev deps

* add map-stream to ignore list

* remove license-checker

* add comment

* use logger

* fix lint errors
2017-02-17 14:49:04 +00:00
Hans Larsen
7ac0d05626
feat(@angular/cli): eject command
The command will generate a webpack.config.js and will add scripts to the package.json.
2017-02-16 16:52:02 -08:00
Alex Rickabaugh
cb2e418d58
feat: add support for @angular/service-worker and manifest generation
Adds the flag 'serviceWorker' to angular-cli.json that enables support for @angular/service-worker.

When this flag is true, production builds will be set up with a service worker. A ngsw-manifest.json file
will be generated (or augmented) in the dist/ root, and the service worker script will be copied there.
A short script will be added to index.html to register the service worker.

@angular/service-worker is a dependency of @angular/cli, but not of generated projects. It is desirable
for users to be able to update the version of @angular/service-worker used in their apps independently
of the CLI version. Thus, the CLI will error if serviceWorker=true but @angular/service-worker is not
installed in the application's node_modules, as it pulls all the service worker scripts from there.

If the flag is false the effect on the CLI is minimal - the webpack plugins associated with the SW are
not even require()'d.

Closes #4544
2017-02-09 15:16:48 -08:00
Filipe Silva
8d2d93a7a2 feat(e2e): use protractor api (#4527)
Uses existing Protractor API to run it directly instead of using `npm run
e2e`.

Also adds support for the following flags: `--serve`, `--config`,
`--specs`, `--element-explorer`, `--webdriver-update`.

Fix #4256
Fix #4478

BREAKING CHANGE: `ng e2e` no longer needs `ng serve` to be running.
2017-02-09 15:14:29 -08:00
Sumit Arora
d2849c713b feat(@angular/cli): Add options for third party package manager (#4321)
BREAKING CHANGE: `--skip-npm` flag is now named `--skip-install`
2017-02-09 10:35:19 -08:00
clydin
54541a1975 refactor(new): standardize project name validation (#4206) 2017-02-06 15:22:14 +00:00
Hans
c889dd8e94 refactor(@angular-cli): get rid of ast-tools and base-href-webpack (#4411)
Those 2 packages were still using the wrong scope (@angular-cli) and were not used by anyone outside the CLI. Just moving the code in the main package is enough.
2017-02-03 22:57:42 -08:00
Albert Arvidsson
375130f9c4 style(@angular/cli): add blank line in INITIAL_COMMIT_MESSAGE (#4423) 2017-02-03 13:33:01 -08:00
Carlo Dapor
d2f8ca7215
feat(@angular/cli): Generate completion.sh automatically.
It requires little tweaking in the case-block.

Now the completion shell script is generated out of TypeScript code entirely.  The options and aliases are generated dynamically.  There are options to only produce bash- or zsh-specific code.

Closes #3981.
2017-02-02 19:20:37 -08:00
Hans
601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00