432 Commits

Author SHA1 Message Date
Dmitriy Shekhovtsov
0111f18b36 fix(@angular/cli): fix test coverage when testing linked libs (#7447) 2017-08-20 11:43:03 -07:00
Olivier Combe
e746369ca4 feat(@angular/cli): add AOT parameter missingTranslation
This adds the new parameter `missingTranslation` for AoT that was added in angular/angular/pull/15987 and that lets you define the MissingTranslationStrategy
2017-08-18 12:15:55 -07:00
Charles Lyding
9edb30cf2c fix(@angular/cli): only install packages once for a new project 2017-08-18 10:15:44 -07:00
Charles Lyding
36ceacc375 fix(@angular/cli): ensure new projects have a CLI package version 2017-08-18 10:13:56 -07:00
Mike Brocchi
589fba3fb2 release: 1.4.0-beta.1 2017-08-17 16:28:25 -07:00
Filipe Silva
e8f27f029a feat(@angular/cli): support sourcemaps and minification in scripts
Adds sourcemap and minification to javascript added via the `scripts` array in `.angular-cli.json`.

`script-loader` is no longer used, which should help with CSP since it used `eval`.

Scripts will no longer appear in the console output for `ng build`, as they are now assets instead of webpack entry points.

It's no longer possible to have the `output` property of both a `scripts` and a `styles` entry pointing to the same file. This wasn't officially supported or listed in the docs, but used to be possible.

Fix #2796
Fix #7226
Fix #7290

Related to #6872
2017-08-17 16:38:35 -04:00
Charles Lyding
b9a62e0ef8 refactor(@angular/cli): remove unneeded dependency on RSVP 2017-08-17 12:31:36 -07:00
Charles Lyding
0ea05eb906 refactor(@angular/cli): additional unused code removal 2017-08-17 15:02:09 -04:00
Charles Lyding
2c6dde1941 feat(@angular/cli): add option to set dev server's base serve path 2017-08-17 14:45:45 -04:00
Dcalsky
6b115dc2d6 fix(@angular/cli): fix problem of SuppressPlugin in case entryFiles type is string (#7393)
The type of entryFiles from entryPoint is array in webpack official suggested, but actually it could be string. The error caused by `every` method which is only invoked by array, however entryFiles is a string. Solution: if entryFiles is not array, make it as an array which includes just a single string element.
2017-08-17 14:40:42 -04:00
Filipe Silva
505d69a13c feat(@angular/cli): update license-webpack-plugin
See https://github.com/xz64/license-webpack-plugin/issues/14, https://github.com/xz64/license-webpack-plugin/issues/13.

Fix #7203
2017-08-17 13:43:51 -04:00
Carlo Dapor
fff9b19ccb fix(@angular/cli): ng completion inside of ng app folders warns but does not produce output
If an ng app was created with an older version of ng CLI, while the global
ng CLI is more recent, one cannot perform ng completion INSIDE that app folder.
This is due to the warning being written to stdout, which if appended to
~/.bashrc causes the shell to fail to process the English text as commands.
The solution is to display the warning to stderr without producing the
completion output.
In good Unix style, a non-zero status code must returned.
This PR fixes #6343.

The PR introduces a breaking change:
- the warning is written to stderr -
- no output is produced
- different status code returned
2017-08-17 13:21:30 -04:00
Charles Lyding
4b58204b3b refactor(@angular/cli): remove unneeded ember-cli blueprint files 2017-08-17 09:54:58 -04:00
Mike Brocchi
128187e4c1 feat(@angular/cli): Update generate & new to use schematics
This feature is related to #6593
2017-08-16 18:24:43 -04:00
Hans Larsen
da3d34cf71
release: v1.4.0-beta.0 2017-08-10 16:32:14 -07:00
Filipe Silva
d22c2bcc11 fix(@angular/cli): fix ever increasing lazy chunk name counter
Currently, rebuilds with lazy modules keep increasing the lazy chunk name indefinitely (.0, .1, .2, etc) for the same lazy chunk. This PR fixes that.
2017-08-10 10:44:23 -07:00
Mike Brocchi
99eba9823c fix(@angular/cli): Revert change to config reading
The code before this change prevented reading of global configuration values.
2017-08-10 10:40:22 -07:00
Hans Larsen
a4276c0a27
release: v1.3.0 2017-08-09 16:35:28 -07:00
Hans Larsen
593fe60fb6 fix(@angular/cli): update build-optimizer to latest
Also fixes linting errors. Seems like tslint was updated.
2017-08-09 16:25:24 -07:00
kevinphelps
c873e0358d fix(@angular/cli): use correct property names for build config defaults 2017-08-04 14:42:42 -07:00
Mike Brocchi
8401ffcb13 fix(@angular/cli): Update @angular-devkit/build-optimizer 2017-08-04 14:41:11 -07:00
Robin Dijkhof
b7b42ab95a fix(@angular/cli): prevent unicode character compression 2017-08-04 11:18:13 -07:00
S K (xz64)
754c1e7c5d fix(@angular/cli): fix empty 3rdpartylicenses.txt
Upgrades license-webpack-plugin from 0.4.x to 0.5.x.

Closes #6921
2017-08-04 10:11:44 +01:00
Hans Larsen
b81fc83c12
release: 1.3.0-rc.5 2017-08-03 12:19:05 -07:00
Hans Larsen
6febae2ad1
release: 1.3.0-rc.4 2017-08-03 11:33:34 -07:00
Hans
c4579baef9 fix(@angular/cli): update build-optimizer to latest 2017-08-03 10:28:37 -07:00
Carlo Dapor
80275e50cb feat(@angular/cli): Implement request 7141 - Short list of cli commands
When calling  ng help -s / --short  one gets a shorter output; basically only ng + command, followed by the command's description.

No breaking change, as it introduces a new flag.
2017-08-03 18:07:35 +01:00
sendilkumarn
52f9b80f08 fix(@angular/cli): baseHref to accept empty string via cli 2017-08-03 18:07:15 +01:00
Charles Lyding
bae9d06c7d fix(@angular/cli): sync webpack stats file content options 2017-08-03 18:05:15 +01:00
Filipe Silva
76779b15f8 fix(@angular/cli): update build-optimizer
Fix #7114
Fix #7110
Fix #7093
2017-08-03 10:03:21 -07:00
Filipe Silva
92902c6094 fix(@angular/cli): remove -bo alias for --build-optimizer
/cc @StephenFluin
2017-08-02 21:25:37 +01:00
JPeer264
260c781642 feat(@angular/cli): support includePaths for less (closes #7083) 2017-08-02 11:53:13 +01:00
Rakhat Jabagin
0007737579 docs: add other possible cases to generate in project readme 2017-08-02 09:29:13 +01:00
Charles Lyding
e486d17798 refactor(@angular/cli): update TS type dependencies 2017-08-01 09:09:15 +01:00
christian.scharr
70cf514a28 fix(@angular/cli): exclude node_modules while take account for os specific path separators (#6870) 2017-07-31 22:51:41 +01:00
Christian Scharr
b32064f5d5 fix(@angular/cli): use relative path instead of regex to exclude node_modules (#6870) 2017-07-31 22:51:41 +01:00
Filipe Silva
138f2b8cd3 fix(@angular/cli): show warnings on serve
Errors and warnings neet to be printed separately.

Followup to #6989
Fix #7213
2017-07-31 21:17:19 +01:00
Filipe Silva
5a84026a49 fix(@angular/cli): use 3 uglify passes with build-optimizer
PURE comments work best with 3 passes.
See https://github.com/webpack/webpack/issues/2899#issuecomment-317425926 for context and an example.

Thanks to @kzc for highlighting this.
2017-07-31 20:10:27 +01:00
cexbrayat
0e4b655254 fix(@angular/cli): change blog link to blog.angular.io 2017-07-31 14:43:30 +01:00
Aliaksei Kuncevic
abe39029a0 fix(@angular/cli): ignore yarn-error.log directory 2017-07-31 14:43:05 +01:00
Mike Brocchi
1c7e7bc66b fix(@angular/cli): Include missing dependency when ejecting 2017-07-31 14:40:27 +01:00
Charles Lyding
0888e82422 fix(@angular/cli): standardize output path behavior 2017-07-31 13:58:48 +01:00
AntoineC
06f3026042 fix(@angular/cli): add explicit source-map-support dependency (#7191)
karma plugin relies on source-map-support being a dependency of karma-source-map-support and npm 3+ flat dependency tree.

https://github.com/pnpm/pnpm/issues/863
2017-07-31 11:45:54 +01:00
Filipe Silva
7f6ab5c3f3 release: 1.3.0-rc.3 2017-07-27 12:30:05 -07:00
Filipe Silva
3baba67e50 Support enhanced resolve (#7169)
* fix(@ngtools/webpack): support enhanced-resolve@3.4.0

Followup to #7123

* fix(@angular/cli): unpin webpack 3.3.0

Followup to #7130
2017-07-27 08:53:04 -07:00
Filipe Silva
1ce3fe3f15 release: 1.3.0-rc.2 2017-07-26 14:28:50 -07:00
Juri Strumpflohner
0bb29fae8e fix(@angular/cli): change blog link to international one 2017-07-26 21:13:15 +01:00
Charles Lyding
a329014ddb fix(@angular/cli): prevent .cur file inlining
IE does not support data URI cursors.
2017-07-26 21:11:17 +01:00
Charles Lyding
bf55bfd044 fix(@angular/cli): remove deprecated json-loader 2017-07-26 21:10:57 +01:00
Filipe Silva
c26a5f774c fix(@angular/cli): pin webpack to 3.3.0
Webpack is updating to `enhanced-resolve@3.4.0` (16bf0b6f26) but the CLI cannot do so yet (see #7123).

This PR pins `webpack@3.3.0` until we are able to update to `enhanced-resolve@^3.4.0`.
2017-07-25 20:26:25 +01:00