3299 Commits

Author SHA1 Message Date
Alan Agius
a38566f18e feat(@angular-devkit/build-angular): add option to allow outputting css resources to a different folder
Added `resourcesOutputPath` option so that CSS assets such as images and fonts are outputted to a subfolder in `dist`
2018-11-15 17:09:43 -08:00
Charles Lyding
5e7f995001 fix(@angular/cli): improve architect command project parsing 2018-11-15 17:09:30 -08:00
Charles Lyding
c631c1852f test: update angular test dependencies 2018-11-15 17:07:59 -08:00
Alan Agius
67630f5270 fix(@angular-devkit/build-angular): remove skipAppShell as it has no effect in browser builder
Closes #11478
2018-11-15 17:07:25 -08:00
Alan Agius
3c875a1148 refactor: deprecate evalSourceMap
This was previously done for build performance, however this is no needed anymore
2018-11-15 17:06:27 -08:00
Keen Yee Liau
e5aea19a6a release: v7.1.0-rc.0 v7.1.0-rc.0 2018-11-14 13:16:56 -08:00
Alan Agius
b659f1eef6 fix(@angular/cli): add missing ngswConfigPath to schema 2018-11-14 12:48:24 -08:00
cexbrayat
aeb96a0913 docs: typo in library command docs 2018-11-14 12:45:46 -08:00
Alan Agius
8f0d03b6c2 fix(@schematics/angular): addSymbolToNgModuleMetadata metadata without indent
At the moment, at least a single whitespace is required as otherwise the following error `Cannot read property '0' of null ` will be thrown

Fixes #12950
2018-11-14 12:42:48 -08:00
Alan Agius
a2aba2866c fix(@angular-devkit/core): handle drive only paths in windows
When normalized path will not have a trailing slash, and at the moment the RegExp for drive needs to match `\c\`

Fixes #12670
2018-11-14 12:42:13 -08:00
Alan Agius
1dbd574714 fix(@ngtools/webpack): Fix lazy loading (#12945)
* revert: fix(@ngtools/webpack): output consistent filename

This reverts commit df172bdc8af4caa1a908592a8b9400d31c81eeb0.

* refactor(@ngtools/webpack): remove RegExp for ngfactory

This RegExp is not needed as if it actually works it will break lazy loading as in case of AOT, the name should always be suffixed with ngfactory

4c2ce4e8ba/packages/core/src/linker/system_js_ng_module_factory_loader.ts (L83)
2018-11-14 12:41:27 -08:00
Charles Lyding
00141868ce fix(@angular/cli): silence package manager not found messages
Fixes #12939
2018-11-14 12:40:22 -08:00
Alan Agius
26245c0c53 docs: update long descriptions for test, e2e and lint
Closes #12930
2018-11-14 12:40:01 -08:00
Jesús
83469c5387 style: update editorconfig website url (#12923) 2018-11-14 12:36:33 -08:00
Charles Lyding
1bd1889bac refactor(@ngtools/webpack): cleanup/optimize emit logic 2018-11-14 12:35:31 -08:00
Alan Agius
747b751987 fix(@ngtools/webpack): update error message to reference templateUrl
Fixes #12693
2018-11-14 12:35:13 -08:00
Alan Agius
e18b912aa7 test: use toContain instead of indexOf 2018-11-14 12:34:49 -08:00
Alan Agius
03829ac9fb style: add comments in tslint.json 2018-11-14 12:33:54 -08:00
Emmanuel Demey
62511a5209 fix(@schematics/angular): rename e2e PO utility function 2018-11-14 12:33:27 -08:00
clydin
43aabb4be6 fix(@schematics/update): improve npmrc discovery (#12871)
* fix(@schematics/update): improve npmrc discovery

* feat(@angular/cli): support yarnrc options during update when using yarn
2018-11-14 10:30:00 -08:00
Hans Larsen
456614828f feat(@angular/cli): allow flags to have deprecation
The feature comes from the "x-deprecated" field in schemas (any schema that is used
to parse arguments), and can be a boolean or a string.

The parser now takes a logger and will warn users when encountering a deprecated
option. These options will also appear in JSON help.
2018-11-14 10:29:07 -08:00
Judy Bogart
9da4bdca81
docs: copy edit
Closes #12837.
Closes #12898.
2018-11-13 13:10:20 -08:00
Judy Bogart
cf75a6401a
docs: clarify library description 2018-11-13 13:09:51 -08:00
Judy Bogart
7029eee980
docs: add links to workspace-config page 2018-11-13 13:09:51 -08:00
Judy Bogart
e2707a4c50
docs: change folder to dir 2018-11-13 13:09:51 -08:00
Judy Bogart
deadbaf392
docs: fix run syntax 2018-11-13 13:09:51 -08:00
Judy Bogart
f454b7cd17
docs: remove uglify reference 2018-11-13 13:09:51 -08:00
Judy Bogart
ed6e765471
docs: add generation schematics option docs 2018-11-13 13:09:51 -08:00
Judy Bogart
c695c3ab27
docs: edit build description 2018-11-13 13:09:50 -08:00
Judy Bogart
1c39f54a24
docs: edit run description 2018-11-13 13:09:50 -08:00
Judy Bogart
b07fbee0b1
docs: edit run terminology 2018-11-13 13:09:50 -08:00
Judy Bogart
8f7fe87fd2
docs: edit and expand command docs 2018-11-13 13:09:50 -08:00
Charles Lyding
f848d08a1a feat(@ngtools/webpack): disable sourcefile cache when not in watch mode
Requires Webpack 4.23.0+
2018-11-09 15:48:16 -08:00
Vikram Subramanian
4059fe83b4 release: v7.1.0-beta.1 v7.1.0-beta.1 2018-11-08 14:15:20 -08:00
Cédric Exbrayat
3c8b33ab3a fix(@angular-devkit/build-angular): add a base href to karma context (#12889)
This commits adds a base href value in the karma context iframe used to run unit tests.

It solves a very old issue in Angular https://github.com/angular/angular/issues/12295 where a unit test throws:

    No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.

even if the application is fine. This is because the `index.html` from Angular CLI contains a base href value, but not the Karma context iframe. So when adding a unit test with a testing module that imports a NgModule, for example `AppModule`, which itself imports `RouterModule`, the unit test used to throw an error (regression appeared in router 3.1).

That could be solved by either adding `RouterTestingModule` to the testing module, or by adding a provider `{ provide: APP_BASE_HREF, useValue: '/' }`, but required to understand the issue (see how many thumbs up there are on the original issue).

This solves the issue in a transparent way: developers won't even encounter the problem anymore.
2018-11-08 10:34:35 -08:00
Hans
6d2e333d9e ci: fast track docs-preview snapshot (#12854) 2018-11-08 10:34:12 -08:00
Alan Agius
3f85824ecf feat(@angular-devkit/build-angular): update autoprefixer (#12785) 2018-11-08 10:32:48 -08:00
Filipe Silva
5150f82762 feat(@ngtools/webpack): allow custom lazy module resource (#12593) 2018-11-08 10:32:28 -08:00
Alan Agius
96606b3d1e fix(@ngtools/webpack): replace resources should effect only class decorators (#12503)
At the moment we are processing all property assignments in object literals irrespective if they are in a decorator or not. With this change we will process only property assignments found under in a component decorator.

Fixes #12488, Fixes #6007, Fixes: #6498 and Fixes: #8295
2018-11-08 10:31:14 -08:00
Alan Agius
bd4dc38359 refactor: use createConsoleLogger and remove duplicate code (#12787) 2018-11-08 10:30:41 -08:00
fscherwi
8d69589733 feat(@angular-devkit/build-angular): update node-sass (#12890) 2018-11-08 10:29:28 -08:00
Jason Jean
13c057a854 refactor(@angular-devkit/schematics): improve performance of move() (#12857) 2018-11-07 14:25:27 -08:00
Alan Agius
d3d433624b fix(@schematics/angular): minimal should be honored in workspace creation 2018-11-06 22:47:39 -08:00
Alan Agius
53118c6224 build: update typescript to 3.1.6 (#12849)
* fix(@angular-devkit/build-optimizer): update typescript to 3.1.6

* build: update typescript to 3.1.6
2018-11-06 22:46:37 -08:00
Alan Agius
0995886004 refactor: remove experimentalAngularNext (#12848)
Closes #12769
2018-11-06 22:46:10 -08:00
Filipe Silva
4fd7310332 feat(@angular-devkit/build-angular): improve verbose output (#12833) 2018-11-06 22:44:39 -08:00
Alan Agius
aaa453e3f5 feat(@angular-devkit/build-angular): update webpack (#12801) 2018-11-06 22:44:25 -08:00
Alan Agius
131f55518c fix(@angular/cli): support all single dashes prefixed arguments (#12783)
Fixes #12771
2018-11-06 22:43:14 -08:00
clydin
5e354d17f1 feat(@angular/cli): autodetect default package manager (#12753) 2018-11-06 22:00:40 -08:00
vikerman
df4ee8c491
fix(@angular-devkit/core): fix 'this' check (#12873) 2018-11-06 20:44:06 -08:00