1435 Commits

Author SHA1 Message Date
Filipe Silva
e661f55572 feat(@angular/cli): add npm build script (#4949) 2017-02-23 14:41:22 +00:00
Filipe Silva
958bee3de1 feat(@angular/cli): don't add empty assets to karma (#4952)
Removes the warning that would appear on new projects when running `ng test` due to there being no files inside `src/assets/`:

```
23 02 2017 10:45:33.751:WARN [watcher]: Pattern "D:\sandbox\master-project\src\assets/**" does not match any file.
```
2017-02-23 14:10:26 +00:00
Filipe Silva
f9a97a7335 test: increase delay on flaky tests (#4955)
The rebuild and live-reload tests have been flaky lately. This might fix them. It might also not.
2017-02-23 13:39:46 +00:00
Hans
c57ce2a3a0 fix(@angular/cli): apps fixes (#4942)
We dont have ngConfig on projects anymore.
2017-02-23 10:03:42 +00:00
Hans Larsen
dd4f177a88
ci: fix travis 2017-02-22 20:21:25 -08:00
Bram Borggreve
ae89fdec64
feat(@angular/cli): add warning when angular-cli is detected locally
Closes #4466
2017-02-22 19:57:25 -08:00
Hans Larsen
d4b56e4b83
fix(@angular/cli): remove ng from blueprints help, simplify blueprints logic
Closes #4887
2017-02-22 17:24:30 -08:00
Hans Larsen
b4594bac33
fix(@angular/cli): add more description 2017-02-22 17:20:17 -08:00
Sumit Arora
7ebe4f0d4e fix(@angular/cli): adding help descriptions 2017-02-22 18:43:34 -05:00
moritz-h
0d8799ee32 fix(@angular/cli): fix ng lint formatted output (#4917)
Print linting result only for human-readable formats, to not mess up xml, json, ... output.
2017-02-22 14:31:03 -08:00
Felipe Ceotto
4af7a42920 fix(@angular/cli): Headless win32 now works as expected (#4871)
When running in a headless process in win32 the lack of process.stdin throws an error.

Fixes #4870
2017-02-22 14:23:33 -08:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Meligy
7567f5c092
fix(eject): set ejected project to run webdriver-manager update as part of e2e npm script
Closes #4920
2017-02-22 14:15:01 -08:00
clydin
fd1296a357 test: validate commit messages (#4903) 2017-02-22 14:05:04 -08:00
Stephen Cavaliere
b15d1f37b6 refactor(@angular/cli): move ng2 blueprint to ng (#4932) 2017-02-22 14:01:55 -08:00
Lenny
b4985498c9 feat(@angular/cli): allow setting ssl certificate in angular-cli.json (#4730)
Currently users must use the --ssl, -ssl-cert, -ssl-key flags to run the
server using an ssl certificate. This update allows users to set
those options in default.serve so they can just run `ng serve` without any
flags.
2017-02-22 14:01:29 -08:00
Mike Brocchi
4b32bb4c34 docs: update readme and wiki homepage (#4933) 2017-02-22 16:54:59 -05:00
Hans Larsen
68bd2218cf fix(@ngtools/json-schema): aliases on invalid properties are noop 2017-02-22 13:23:45 -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
Filipe Silva
7549d2be5e build: update to typescript 2.2 (#4928) 2017-02-22 11:37:02 -08:00
Filipe Silva
69e6c717fd feat(@angular/cli): use separate tsconfigs
This PR adds tsconfigs for each separate application:
- `src/tsconfig.app.json`: configuration for the Angular app.
- `src/tsconfig.spec.json`: configuration for the unit tests. Defaults to the Angular app config.
- `e2e/tsconfig.e2e.json`: configuration for the e2e tests.

There is an additional root-level `tsconfig.json` that is used for editor integration.

For Angular version 4 projects, these tsconfigs will use inheritance since it's available with TypeScript 2.1.

This is not a breaking change. Existing projects should not be affected.
2017-02-22 19:32:00 +00:00
Filipe Silva
1e301590d8 fix(@ngtools/webpack): add exclude override to tsconfig
Fix #3973
2017-02-22 19:32:00 +00:00
Meligy, GuruStop.NET
98c799936e docs: expand beta 32 breaking changes section (#4916)
- Sets the actionable steps in separate lines
- Adds note about karma and CLI config file
- Adds note about action for `ng update`
2017-02-22 10:48:15 -08:00
Stephen Cavaliere
2c1e8778d6 feat(generate): add guard generation (#4055) 2017-02-22 18:21:36 +00:00
Filipe Silva
1655e51e7e feat(@angular/cli): hash loaded media by default (#4878)
Currently dev builds use `--output-hashing=none` by default.

This can cause image resources to be overwritten in dev if they have the same same.

This wasn't much of a problem before when only images in global CSS would be treated as resources, but now component css also does that.

Production builds are unaffected since they already use `--output-hashing=all`.

BREAKING CHANGE: dev builds will hash relative resources from CSS (images, etc).
2017-02-22 15:52:11 +00: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
Filipe Silva
3bba4cb4da feat(@angular/cli): use same webpack config for karma
Close #4851
Fix #3605
Fix #4850
Fix #4876
2017-02-22 11:54:06 +00:00
Filipe Silva
6dff3b770e feat(@ngtools/webpack): allow to pass in overrides for compilerOptions
Close #4851
2017-02-22 11:53:40 +00:00
Filipe Silva
028bdd810b build(@angular/cli): update to codelyzer 2.0
Close #4798
2017-02-22 11:53:03 +00:00
Charles Lyding
26d1e41eb8 fix(@angular/cli): stabilize webpack module identifiers
This provides increased viability for long-term caching by limiting the
changes to the content of output files due to webpack module identifier
changes.

Close #4733
2017-02-22 11:52:22 +00:00
Dmytro Yarmak
c99a7168d5 docs: Improve updating angular cli steps
Add step that removes "angular-cli" from "package.json" to make sure that after
upgrading from "angular-cli" to "@angular/cli" only "@angular/cli" is installed
into "node_modules".
It's needed to avoid problems with npm run scripts that uses "ng" command.
Otherwise there will be an error ("You have to be inside an angular-cli project in
order to use the test command.") when running "npm start", "npm test" or
"npm run ng -- ..." commands.

Close #4487
2017-02-22 11:51:37 +00:00
Hans
198d27a88e fix(@angular/cli): cache config by file path. (#4902)
On some commands we create multiple configs; this will cache them and reuse the ones that exist already.
2017-02-22 11:50:01 +00:00
Hans Larsen
b521ae5db2
refactor: fix more issues with docs scripts 2017-02-21 18:10:07 -08:00
Mike Brocchi
2178bdb1d7 docs(@angular/cli): updates to support a better wiki experience (#4899) 2017-02-21 18:04:49 -08:00
Bram Borggreve
88d5c5a3bb chore: add yarn-error.log to .gitignore (#4894) 2017-02-21 17:46:10 -08:00
Hans
783dd72916 ci: fix travis (#4897) 2017-02-21 17:45:50 -08:00
Sumit Arora
ba30cc1de3 fix(@angular/cli): fixing the help command aliases (#4880) 2017-02-21 16:56:41 -08:00
Hans
8cec3ce769 refactor: fix issues with docs scripts (#4893) 2017-02-21 16:24:01 -08:00
Hans
9a2e35d5ef refactor: use typescript 2.1 for the CLI project itself. (#4890)
And use extends for its tsconfigs. Nothing of this changes whats published in npm.
2017-02-21 16:16:54 -08:00
Hans
2abbce29db fix(@angular/cli): put aliases for local config too (#4886) 2017-02-21 16:16:27 -08:00
Valery
224eac77ea fix(@ngtools/webpack): allow 4.0.0-beta version of @angular/tsc-wrapped dependency (#4847) 2017-02-21 14:42:14 -08:00
Bram Borggreve
432c0a28e9 feat(@angular/cli): update ascii art to Angular CLI (#4785) 2017-02-21 14:31:02 -08:00
William KOZA
c792c9f8b8 feat(@angular/cli): add async method in Jasmine Tests blueprints (#4775) 2017-02-21 14:29:11 -08:00
Filipe Silva
d1e13ace0b build: use noUnusedParameters, noUnusedLocals (#4882) 2017-02-21 10:53:34 -08:00
Filipe Silva
a4b43a59e4 fix(serve): allow relevant live-reload options to function (#4744)
This provides implementations for the following serve command options:

live-reload [boolean; default: true] -- flag to control the browser live reload capability
live-reload-client [URL; default: ssl/host/port command options] -- specify the URL that the live reload browser client will use

Closes #3361
2017-02-21 09:01:40 +00:00
Mike Brocchi
cd1aa18f25 bug(@angular/cli): Show module file update during dry run (#4836)
Fixes #4801
2017-02-20 09:57:25 -05:00
Filipe Silva
a2e819a8dd fix(@angular/cli): fix css url processing (#4803)
Fixing component css in #4667 uncovered errors in CSS url processing.

This PR correctly composes absolute urls when using `--base-href` and/or `--deploy-url`.

It also fixes asset output on `--aot` mode.

Fix #4778
Fix #4782
Fix #4806
2017-02-20 13:18:21 +00:00
Filipe Silva
599d659703 tests: update AoTPlugin test (#4834)
This fix should be removed once the bundle size drops down, which will cause the test to fail.

/cc @hansl
2017-02-19 15:52:34 -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