303 Commits

Author SHA1 Message Date
Charles Lyding
b72dbd9dea refactor(@angular/cli): remove additional unneeded ember-cli files 2017-06-01 11:45:01 +01:00
Hans Larsen
54b228e49b
release: 1.2.0-beta.0 2017-05-31 14:26:59 -07:00
Hans Larsen
3b4bf616f7
release: 1.1.0 2017-05-31 14:08:09 -07:00
Douglas Duteil
be7a7162eb fix(@angular/cli): resolve in all available node_modules
When @angular/cli dependencies (like @ngtool/webpack for example) are installed in its node_modules (as node_modules/@angular/cli/node_modules for example) webpack isn't seeing them.
2017-05-31 13:07:03 -07:00
Hans Larsen
9c7a7ea47b fix(@angular/cli): allow node_modules to be linked somewhere else.
Fixes #6499.
2017-05-31 10:59:22 -07:00
Trotyl Yu
2b4b4c9bfc fix(@angular/cli): add missing WeakMap polyfill 2017-05-31 09:44:33 -07:00
Hans Larsen
0d3d9ef217
release: 1.1.0-rc.2 2017-05-25 13:09:24 -07:00
Mike Brocchi
ab6e6247f5
release: 1.1.0-rc.1 2017-05-24 15:43:57 -07:00
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
Samuel Marks
ba15605fc3
fix(@angular/cli): update protractor API usage in the blueprints.
Closes #6163
2017-05-24 13:36:19 -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
Sumit Arora
d954ed1eab fix(@angular/cli): only values in enum should be allowed to update 2017-05-24 15:54:35 -04:00
Ricardo Varanda
dbfa851709 fix(@angular/cli): fix leading digit in file names from generate command 2017-05-24 15:35:46 -04:00
Filipe Silva
2b2e8b3685 fix(@angular/cli): remove broken script after eject
`prepree2e` doesn't run because it's a lifecycle script for a lifecycle script, but even if it did it would not work because there is nothing coordinating the serve and e2e processes.

Users must manually initialize the server prior to running e2e tests after ejecting.

Related to https://github.com/angular/angular-cli/issues/6171
2017-05-24 15:29:32 -04:00
Sumit Arora
403bf7efb1 fix(@angular/cli): allow e2e tests to run if no-serve and port is provided 2017-05-24 15:27:27 -04:00
Sumit Arora
61cf790057 fix(@angular/cli): fix package name fetching from package.json 2017-05-24 15:22:32 -04:00
clydin
78d1c77ca2 fix(@angular/cli): update new project dev dependencies (#6415) 2017-05-23 16:35: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
clydin
67fac865f8 refactor(@angular/cli): use memory FS for i18n extraction (#6306) 2017-05-17 19:19:45 -04:00
Filipe Silva
b9f8ca648d fix(@angular/cli): put vendor ngfactory in vendor chunk
Currently vendor Angular libraries will have their *.ngfactory.ts in main.ts when building with `--aot`.

The easiest way to see this is with `source-map-explorer.

This PR correctly puts them in vendor.ts.
2017-05-17 16:16:28 -07:00
Sarun Intaralawan
cbcf6da79b fix(@angular/cli): supress module file modification when generating guard with dry-run flag 2017-05-17 16:15:05 -07:00
clydin
e0a454ffc2 fix(@angular/cli): enable full node module resolution for project deps (#6276) 2017-05-15 17:46:05 -04:00
Cédric Exbrayat
ad3a9cb91d fix(@angular/cli): language-service as devDeps only (#6257) 2017-05-15 17:30:53 -04:00
Radoslav Kirilov
0e1f65c815 fix(@angular/cli): prefix historyApiFallback.index with deployUrl (#6279)
when implementing i18n following https://angular.io/docs/ts/latest/cookbook/i18n.html
and https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358

when running in `development` to be consistent with `production` I am using

```
ng serve --deploy-url /en/ --base-href /en/ \
--aot --locale en --i18n-file ./src/locale/messages.en.xlf
```

running the app this way, on routes other than `http://localhost:4200/en/`
the `webpack-dev-server` was always saying that the route is not found,
so this commit fixes that
2017-05-15 10:43:21 -04:00
David Mendez
32d3f5bb07 fix(@angular/cli): adds language to index.html for accessibility 2017-05-11 09:38:25 +01:00
Filipe Silva
cfdbb670e3 fix(@angular/cli): allow e2e multi capabilities
Thanks to @raymondkarstensen for this solution.

Fix #975
2017-05-10 16:55:48 +01:00
David Mendez
6eeb9de873 fix(@angular/cli): small typo on generated app.component.html 2017-05-09 13:43:59 -07:00
Filipe Silva
a54a991b2f feat(@angular/cli): add host check flags to ng serve
Two new flags are added to `ng serve`:
- `--public-host` (aliased by `--live-reload-client): Specify the URL that the browser client will use.
- `--disable-host-check`: Don't verify connected clients are part of allowed hosts.

Setting `--disable-host-check` will output a warning:
```
WARNING Running a server with --disable-host-check is a security risk. See https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a for more information.
```

See #6070 for more context about this change.

Fix #6070
2017-05-09 21:04:58 +01:00
Sumit Arora
0ac878a5ef feat(@angular/cli): new project landing page (#6144)
Fix #5928
Fix #6125
2017-05-09 19:20:42 +01:00
Charles Lyding
a3bf5291e7 feat(@angular/cli): add option to use lint to adjust generated files 2017-05-09 19:04:11 +01:00
Charles Lyding
5cf395c948 refactor(@angular/cli): simplify blueprint generation command 2017-05-09 19:04:11 +01:00
Charles Lyding
8035f54206 feat(@angular/cli): allow lint project setting to be optional 2017-05-09 19:04:11 +01:00
Preston Van Loon
a5d8bc1706 fix(@angular/cli): ng get: return whole config root when no path provided.
Close #5887
2017-05-09 07:17:22 -07:00
Preston Van Loon
382ba8d7c7 fix(@angular/cli): Throw error when no key provided for ng get
Close #5887
2017-05-09 07:17:22 -07:00
Vadim Shabanov
17ae1406f1 fix(@angular/cli): fix text descriptions
Text of initial tests must have sense.

Close #5501
2017-05-09 07:17:22 -07:00
Ricardo Varanda
23c039d9f4 fix(@angular/cli): open option in serve command should open localhost when host is 0.0.0.0
Close #5743
2017-05-09 07:17:22 -07:00
Jan Pilzer
377a06221a fix(@angular/cli): format files according to tslint
Includes minor changes in generated static files to prevent them from
being changed when formatting or being picked up when running TSLint.

Close #5751
2017-05-09 07:17:22 -07:00
Cédric Exbrayat
2d42a58b29 fix(@angular/cli): simplify import path if possible (#6184)
Fixes #6183
2017-05-09 11:22:09 +01:00
Sam Lin
1cc979fbef fix(@angular/cli): import at least one locale-data with intl (#6190)
It doesn't work if we just import intl
2017-05-09 11:15:49 +01:00
Charles Lyding
d9af12c6a1 fix(@angular/cli): properly support CSS url()'s with whitespace 2017-05-09 10:01:24 +01:00
Shyam Chen
0ef9eb7d4c fix(@angular/cli): fixing component blueprint indent 2017-05-09 10:00:14 +01:00
Filipe Silva
1cd0a0811d feat(@angular/cli): improve ng test performance
This PR uses a new Karma plugin to enable vendor bundles in unit tests,
increasing rebuild performance.

On a medium size project rebuilds times were 15x smaller (16.5s to 0.9s).

Fix #5423
2017-05-08 16:51:40 +01:00
Filipe Silva
8bf040b7e3 feat(@angular/cli): add flag to not delete output path
Fix #5925
Fix #6193
2017-05-08 14:27:59 +01:00
cexbrayat
d76d8fd9d5 build(@angular/cli): bump karma-chrome-launcher 2017-05-08 13:03:40 +01:00
Stephen Cavaliere
8b220a4012 feat(@angular/cli): add import flag to modules
closes #5377
2017-05-08 12:49:29 +01:00
Tatsuyuki Ishi
3d9a7ff24d refactor(@angular/cli): use EnvironmentPlugin instead of DefinePlugin 2017-05-08 12:18:29 +01:00
cexbrayat
d4829867b7 feat(@angular/cli): add some rules from tslint 4.5
Adds a few rules introduced by tslint 4.4 and 4.5

- [arrow-return-shorthand](https://palantir.github.io/tslint/rules/arrow-return-shorthand/)
- [no-duplicate-super](https://palantir.github.io/tslint/rules/no-duplicate-super/)
- [no-import-side-effect](https://palantir.github.io/tslint/rules/no-import-side-effect/)
- [no-misused-new](https://palantir.github.io/tslint/rules/no-misused-new/)
- [no-non-null-assertion](https://palantir.github.io/tslint/rules/no-non-null-assertion/)
- [no-unnecessary-initializer](https://palantir.github.io/tslint/rules/no-unnecessary-initializer/)
2017-05-05 10:11:13 +01:00
Charles Lyding
69d3d2b05b feat(@angular/cli): support TypeScript 2.3 2017-05-04 20:35:45 +01:00