1786 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
Mike Brocchi
47e9c7bad5 test: Verify new project specifies a CLI version 2017-08-18 11:52:12 -07:00
Jim Cullison
74eb05945b docs(@angular/cli): Update serve.md to include proxy-config option
Add --proxy-config and link to detailed documentation.
2017-08-18 10:18:13 -07:00
Hans Larsen
f86004fd7a
release: change caretaker to hansl 2017-08-18 10:17:13 -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
f26456f053 docs: Update Angular Material story to defer to the Material docs
Fixes #7286
2017-08-18 10:13:02 -07:00
Mike Brocchi
589fba3fb2 release: 1.4.0-beta.1 v1.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
e6f745d458 build: update license test special cases 2017-08-17 15:28:30 -04:00
AntoineC
0ba8bb23b6 test(@ngtools/webpack): Move enhanced-resolve from peerDependencies to dependencies (#7385)
@ngtools/webpack requires a peer dependency of enhanced-resolve@^3.1.0. It currently relies on webpack providing this dependency and on NPM 3+ flat tree installation. Webpack could remove this dependency or NPM change the tree structure. This change also removes a NPM warning about missing peer dependency.
2017-08-17 20:13:05 +01:00
Charles Lyding
0ea05eb906 refactor(@angular/cli): additional unused code removal 2017-08-17 15:02:09 -04:00
KevinYang
0cada6bd00 docs: update test config command 2017-08-17 11:59:29 -07: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
Filipe Silva
eb4dc223c3 fix(@ngtools/webpack): don't use src dir as a resource
We add either `src/` or `src/$$_gendir/` directories as the lazy route resource, which causes rebuilds whenever anything changes there.

This PR makes it always use the `src/$$_gendir/` special directory.

@brocco this should also fix your local failing poll test.

Fix #6238
Close #6959
2017-08-17 12:53:21 -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
Mike Brocchi
d85652ee2f fix(@angular/cli): Update bootstrap test based upon beta
The upgrade from alpha to beta of bootstrap 4 dropped the dependency on jQuery

Fixes #7358
2017-08-11 12:29:46 -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
Filipe Silva
41dce6e76f ci: update license test exceptions 2017-08-10 15:33:08 +01: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
Hans Larsen
cb0cc08865 feat(@ngtools/webpack): fix paths mapping support
This is a similar version of #5033. Reverted in #6463 because of issue #6451.

This is a feature because we do not want it in 1.3.0
2017-08-08 17:07:45 -07:00
Thomas Burleson
a95622738b docs: update flex-layout story 2017-08-07 10:03:42 -07:00
Filipe Silva
694deb96f2 fix(@ngtools/webpack): show TS error message when there is no file 2017-08-05 10:06:57 -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
96c733138c
release: update new caretaker 2017-08-03 11:34:12 -07:00
Hans Larsen
6febae2ad1
release: 1.3.0-rc.4 2017-08-03 11:33:34 -07:00
Hans Larsen
54cb308e84
fix(@angular/cli): update package-lock for build-optimizer 2017-08-03 11:11:26 -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
Josh Iverson
c6bba521ab docs: add NamedChunks to dev/prod defaults table 2017-08-03 18:06:28 +01:00
Charles Lyding
bae9d06c7d fix(@angular/cli): sync webpack stats file content options 2017-08-03 18:05:15 +01:00
Josh Iverson
31c810a07e docs: fix material install 2017-08-03 18:03:43 +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
Hans Larsen
23da9064fb build: use the tar files for dependencies for e2e
This adds a new flag to the build script that sets the tar files path as dependencies inside the package.json before tarring the files.
2017-08-02 13:41:06 -07:00
Filipe Silva
92902c6094 fix(@angular/cli): remove -bo alias for --build-optimizer
/cc @StephenFluin
2017-08-02 21:25:37 +01:00
Hans Larsen
fb5ee6c3a5 docs: add more badges 2017-08-02 20:56:56 +01:00