Alan Agius
f84abfc572
feat(@schematics/angular): remove ivy-ngcc postinstall script from new application
2019-04-01 02:54:41 -07:00
JiaLiPassion
888bb27815
refactor: rename Zone 'BLACK_LISTED_EVENTS' to 'UNPATCHED_EVENTS'
2019-04-01 00:48:24 -07:00
Hans Larsen
2ffbdfa86a
build: add a validation script for the analytics.md tables
...
Also added enums to update when changing dimensions.
2019-03-28 13:28:41 -07:00
Hans Larsen
55471770db
refactor: use dimensions for some values instead of metrics
...
This is after a discussion with someone internal. Metrics are good
for sums but not for comparisons and search/filtering.
2019-03-28 13:28:41 -07:00
Hans Larsen
2e9dc3d252
docs: add analytics dimensions for schematics flags and internal doc
...
The analytics.md should be kept up to date with the flags.
2019-03-20 15:08:07 -07:00
Alan
a7d095d916
feat(@schematics/angular): change layout for root applications
...
This change aligns the file layout of applications generated with `ng new` and `ng generate`
Ref: TOOL-686
2019-03-06 11:28:26 -08:00
Alan
08c4cb748f
fix(@schematics/angular): reintroduce .sass
as a supported file extention
...
Sass Indented (.sass) is fully supported by the Sass team and we should still offer and support it.
Fixes #13739
2019-03-04 10:26:09 -08:00
Alan Agius
9e18cf240e
fix(@schematics/angular): kebab case prefix causes lint errors in new directives
...
`Component` selectors are always kekabed while `Directive` selectors are always camelized. This updates the lint rules to convert the prefix to the appropiate case
Fixes #13796
2019-03-04 09:35:22 -08:00
Alan
026ae8cefc
feat(@schematics/angular): change layout of e2e files
...
With this change E2E files will be relocated inside an existing application instead of creating a seperate E2E project. This will also remove a lot of extra boilerplating inside the workspace configuration file.
File layout:
```
│ browserslist
│ karma.conf.js
│ tsconfig.app.json
│ tsconfig.spec.json
│ tslint.json
│
├───e2e
│ │ protractor.conf.js
│ │ tsconfig.e2e.json
│ │
│ └───src
│ app.e2e-spec.ts
│ app.po.ts
│
└───src
│ favicon.ico
│ index.html
│ main.po.ts
│ main.ts
│ polyfills.ts
│ styles.css
│ test.ts
│
├───app
│ app.component.css
│ app.component.html
│ app.component.spec.ts
│ app.component.ts
│ app.module.ts
│
├───assets
│ .gitkeep
│
└───environments
environment.prod.ts
environment.ts
```
Ref: TOOL-699
2019-03-04 09:33:12 -08:00
Filipe Silva
05966646e7
feat(@schematics/angular): rename experimentalIvy to enableIvy
...
Followup to https://github.com/angular/angular/pull/28569#discussion_r259558085
2019-02-26 10:49:58 -08:00
Charles Lyding
b96e7bf76f
fix(@schematics/angular): default newProjectRoot to current directory
2019-02-26 08:39:57 -08:00
cexbrayat
58bc5b8f2a
fix(@schematics/angular): remove ViewEncapsulation from root component
2019-02-22 15:53:34 -08:00
cexbrayat
61cca4116a
fix(@schematics/angular): remove extra comma in component schematic
...
This was introduced by #13690
2019-02-22 15:53:34 -08:00
Filipe Silva
becd2f53d5
fix(@schematics/angular): use enableIvy as true
...
Blocked on https://github.com/angular/angular/pull/28616
2019-02-22 15:52:58 -08:00
Amadou Sall
79aa8d602d
fix(@schematics/angular): undefined is used as newProjectRoot when none is set
...
Fixes #13703
2019-02-20 17:13:50 -08:00
Alan Agius
89797900db
fix(@schematics/angular): fixes issue that ViewEncapsulation
is not being configured when provided
...
Fixes #13689
2019-02-19 13:57:05 -08:00
Luis Confraria
1f9c84f98c
fix(@schematics/angular): set restartOnFileChange to true in karma.conf templates
...
Fix #13542
2019-02-08 16:12:19 -08:00
Alan Agius
86356a747d
fix(@schematics/angular): set cortrect file extention in config when using preprocessors ( #13552 )
...
Fixes #13550
2019-02-05 21:13:03 -08:00
Alan Agius
f6c80be867
fix(@schematics/angular): add non deprecated style
as default
...
When adding default in the application schematics we should use the non deprecated `style` option.
2019-01-22 09:42:51 -08:00
Judy Bogart
3a4396580e
docs: description of minimal option consistent across commands
2019-01-18 12:06:59 -08:00
Alan
4718de4dae
feat(@schematics/angular): only support known style extentions
...
Fixes #13149
2019-01-18 11:56:19 -08:00
Alan Agius
36eba0c9fc
refactor: use .template
suffix for all schematic files
...
Currently when using `ivy-ngcc` it will print out a warning
```
Failed to read entry point info from //node_modules/@schematics/angular/workspace/files/package.json with error SyntaxError: Unexpected token < in JSON at position 1121.
```
Fixes #13378
2019-01-16 10:29:56 -08:00
Charles Lyding
66604efaca
feat(@schematics/angular): enabled conditional ES2015 polyfills for new apps
2019-01-15 14:17:55 -08:00
Charles Lyding
cdb99bc324
fix(@schematics/angular): remove redundant ES2015 polyfills
2019-01-15 14:17:55 -08:00
Amadou Sall
f01c156d00
fix(@schematics/angular): apps code coverage should resides in their own folder
2019-01-14 10:57:51 -08:00
Alan Agius
04a7dca3cf
docs: add clause that states the minimal
projects are for learning purposes.
...
Minimal projects contains limited functionality and certain commands might not work at all.
This projects should be considered as a throw away.
Fixes #13054
2019-01-11 14:09:12 -08:00
Alan Agius
f94576b232
feat(@schematics/angular): experimentalIvy
should generates backwards compatible solution
...
Usage:
```
ng new foo --experimentalIvy
```
Users will need to use `ngcc` so to process code coming from NPM and produce the equivalent Ivy version. This needs to be done once after installing the node packages.
```
node_modules/.bin/ivy-ngcc
```
`ngtsc` compilter will then be used when building using the `--aot` or `--prod` flag.
Fixes #13024
2019-01-11 14:04:01 -08:00
cexbrayat
32c96d6158
style(@schematics/angular): format jsdoc in polyfills.ts
...
This line makes the `jsdoc-format` tslint rule fails if activated as it is not a correct JSDoc formating.
2018-12-18 09:12:59 -08:00
Alan Agius
0715beb65c
feat(@schematics/angular): add lintFix
to several other schematics
...
At the moment some schematics contain this options for instance the `guard`, `component` etc.. But some others don't such as `module`
Fixes #12894 and Fixes #6272
2018-12-13 15:53:13 -08:00
mhartington
601134d2a6
docs(@schematics/angular): add note about older chrome in polyfills
...
Add note about polyfills being required in older chrome environments.
Addresses confusion seen in Ionic projects that are loaded in an Android
5 emulator, but has chrome 37.
2018-12-13 14:11:28 -08:00
JiaLiPassion
c83be5e555
fix(@schematics/angular): import zone related flags in other files
...
fix #12886
2018-12-11 11:56:58 -08:00
Alan Agius
a12a4e02a4
feat(@schematics/angular): consistent naming of options and arguments that do the same thing
...
This aligns options that do the same thing:
1) `skipSpecs` and `spec` has been deprecated in favor of `skipTests`.
2) `styleext` has been deprecated in favor of `style` since the latest is two words.
Fixes #12784
2018-12-11 11:55:54 -08:00
Alan Agius
e18b912aa7
test: use toContain
instead of indexOf
2018-11-14 12:34:49 -08:00
Judy Bogart
9da4bdca81
docs: copy edit
...
Closes #12837 .
Closes #12898 .
2018-11-13 13:10:20 -08:00
Judy Bogart
e2707a4c50
docs: change folder to dir
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
Alan Agius
d3d433624b
fix(@schematics/angular): minimal should be honored in workspace creation
2018-11-06 22:47:39 -08:00
Noël Macé
1f3e2768c2
fix(@schematics/angular): --minimal should prevent generating e2e ( #12742 )
...
* fix(@schematics/angular): --minimal should prevent generating e2e
Don't run the e2e schematic when using application or ng-new schematics
with option.minimal set to true.
fix #12739
* style: inverse logic according to feedback
* test(@schematics/angular): app and ng-new --minimal shouldn't generate e2e
2018-11-01 10:59:13 -07:00
Alan Agius
90a5a7db96
feat(@schematics/angular): install packages when creating a new application
...
Fixes #12719
2018-10-31 20:57:09 -07:00
Alan Agius
4cca3a10e8
feat(@schematics/angular): add text-summary
to code coverage reporters
...
Fixes #3602
2018-10-23 10:16:44 -07:00
Alan Agius
41eee217d5
fix(@schematics/angular): point CLI link to angular.io
instead of wiki
2018-10-18 14:08:09 -07:00
clydin
e9a8c3cfa8
feat(@schematics/angular): add prompts for all name options ( #12519 )
2018-10-10 12:11:12 -07:00
Rohit Sarkar
907ce5c94c
feat(@schematics/angular): Add --minimal flag to generate a barebones ( #12498 )
...
project
2018-10-10 12:08:24 -07:00
Hans
d1b6e71b35
fix(@schematics/angular): use proper project root for e2e
...
When creating an application, the project root was always "projects/e2e". This
is undesired as it leads to conflicts when creating another app.
Fix #12491 .
2018-10-05 15:03:29 -07:00
Charles Lyding
64d1524649
refactor(@schematics/angular): cleanup application polyfill comments
2018-10-03 17:38:51 -07:00
Alan Agius
8d81c4f5c6
style(@schematics/angular): remove extra whitespace in EOF
...
Closes #12426
2018-10-03 17:34:53 -07:00
Masahiko Sakakibara
4d46c4ac49
fix(@schematics/angular): support Fetch as Google
(Google bot) ( #11815 )
2018-09-27 13:39:34 -04:00
Alan Agius
a97ccbab09
style: remove redundant async
in tests
...
In component specs only the `compileComponents` is async thus the `async` on `it` are redudnant
Closes #12161
2018-09-27 12:45:55 -04:00
Alan Agius
f28cd7c426
style: improve formatting of spec file
2018-09-27 12:45:55 -04:00
Stephen Fluin
1cd4ce8fd5
feat(@schematics/angular): add default budget of 2mb/5mb
2018-09-26 09:01:56 -04:00