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
Septimiu Criste
8c78fb98ef
feat(@angular/cli): add publicPath support via command and angular-cli.json for webpack-dev-server
...
This adds support for publicPath to webpack-dev-server via ng serve
The server would have to be started like ng serve --deploy-url /deploypath --base-href /deploypath.
The app will be served from http://localhost:4200/deploypath
Should fix #2727
2017-05-04 20:32:33 +01:00
Charles Lyding
818936e0d3
feat(@angular/cli): use and support webpack 2.4
2017-05-04 20:24:09 +01:00
Victor Boissiere
11d0afc98a
fix(@angular/cli): add error message when missing config env variable ( #5980 )
...
I tried to implement a continuous integration system on my VPS. I have a PHP script that runs ng build. However in my default PHP configuration no environment variable HOME or USERPROFILE was set. I had this error : `Path must be a string. Received undefined`.
I had to take some time to see where the problem came from so I made a pull request to clarify the error.
Now it is : `Error: Missing environment variable HOME` which does not require to look at the code. This message would have saved me some time.
2017-05-04 20:23:43 +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
Sumit Arora
2bf5c96148
feat(@angular/cli): update tslint on updating prefix ( #5908 )
...
Fixes #5794
2017-05-04 20:11:43 +01:00
Tatsuyuki Ishi
e7966a2465
fix(@angular/cli): remove default for test runners
...
These are specified in the config file and defaulting them in CLI makes karma.conf.js useless.
2017-05-04 20:09:12 +01:00
Charles Lyding
380ec59bf8
refactor(@angular/cli): hide link cli option
2017-05-04 20:01:11 +01:00
Charles Lyding
52f82fe629
refactor(@angular/cli): support hidden commands and options
2017-05-04 20:01:11 +01:00
Charles Lyding
70243a2064
refactor(@angular/cli): remove additional unneeded ember-cli files
2017-05-04 19:59:54 +01:00
dave11mj
d90292ed83
fix(@angular/cli): removes redundant rules from tslint.json ( #5783 )
...
Fixes #5755
2017-05-04 19:58:56 +01:00
Suguru Inatomi
8e2f8cf57b
fix(@angular/cli): install webpack at ejection ( #5745 )
...
After ng eject, webpack package is not installed in the project, so npm run build requires global webpack installation.
2017-05-04 19:58:06 +01:00
Charles Lyding
ea4c8644aa
feat(@angular/cli): support inline source maps with defined charset
2017-05-04 19:55:16 +01:00
Charles Lyding
67646796d9
refactor(@angular/cli): only setup CSS extraction if actually extracting
2017-05-04 19:54:47 +01:00
Charles Lyding
b07f631773
feat(@angular/cli): always use named webpack modules in dev builds
2017-05-04 19:52:48 +01:00
Matt Lewis
d7b46d09e6
feat(@angular/cli): upgrade the blueprint karma-coverage-istanbul-reporter version ( #5519 )
2017-05-04 19:50:13 +01:00
Filipe Silva
003ac82d72
release: 1.1.0-beta.0
2017-05-03 17:29:15 -07:00
WilliamKoza
bb99faccd3
feat(@angular/cli): add language service in devDependencies section
2017-05-03 17:29:05 -07:00
cexbrayat
af758b874c
feat(@angular/cli): bump to tslint 5 & codelyzer 3
...
Also fixes the `test.ts` file warnings.
2017-05-03 17:28:57 -07:00
Sumit Arora
5e39361f2c
feat(@angular/cli): adding option to search docs as well
2017-05-03 17:28:49 -07:00
Charles Lyding
aa958a6b38
feat(@angular/cli): use and support webpack 2.3
2017-05-03 17:28:38 -07:00
WilliamKoza
b11d560398
fix(@angular/cli): Improve error message for create component with -m option
2017-05-03 12:53:56 -07:00
Charles Lyding
806447e611
fix(@angular/cli): use safer stylesheet minification settings
2017-05-03 12:48:32 -07:00
Sumit Arora
98050100f2
fix(@angular/cli): use quiet flag only in case of npm
2017-05-03 12:47:27 -07:00
Charles Lyding
f73a9e40a7
fix(@angular/cli): explicitly disable warning overlays
2017-05-03 12:45:48 -07:00
Hans Larsen
7a6cb21524
Revert "feat(@angular/cli): adding skip e2e test option"
...
This reverts commit fdea2df02719be9fabdc25fdc3a88835afe5b286.
2017-04-24 19:41:41 -07:00