24 Commits

Author SHA1 Message Date
Sachin Grover
8543bf7f8c fix(@schematics/angular): scroll issue on new app after adding Material
Fixes #16966
2020-02-18 12:49:59 -08:00
cexbrayat
3ec4f61357 fix(@schematics/angular): remove unneeded debugElement in test
The generate tests in `app.component.spec.ts` are using `fixture.debugElement.componentInstance` whereas we can directly use `fixture.componentInstance`. This fixes the generated test to show a better example to users discovering unit tests.
2019-10-21 09:38:16 -07:00
Muhammad Umair Khan
bcbbc19293 fix(@schematics/angular): scroll issue on new app (#15714)
Subtracting the top space from image vh(viewport height) to remove scroll

Closes #15596
2019-10-07 09:15:08 -07:00
Christian Liebel
8527206d6e feat(@schematics/angular): feature PWA in CLI app
Feature PWA support via `@angular/pwa` directly in the new CLI app.
2019-09-04 02:30:15 +05:30
Alan Agius
a35d9084ce refactor(@schematics/angular): remove classes from twitter icon as it breaks Ivy in IE11
https://github.com/angular/angular/issues/32192
2019-08-28 22:54:52 +05:30
vikerman
860d5925e6 fix(@schematics/angular): open twitter link in new tab (#15446)
Change the default application to open the twitter link in a new tab
instead of in the current tab. This is consistent with all the other
external links in the page.
2019-08-26 11:49:35 -07:00
Stefanie Fluin
a05148e9f5 fix(@schematics/angular): add twitter link icon (#15385)
* fix(@schematics/angular): add twitter link icon

* fix(@schematics/angular): remove height unit
2019-08-21 10:34:00 -07:00
Minko Gechev
26f66fe366
fix(@schematics/angular): handle the inlineTemplate case for ng new (#15324)
Update the template of `app.component.ts` when using `--inlineTemplate`.
2019-08-14 10:22:09 -07:00
Stefanie Fluin
40601c46e7 feat(@schematics/angular): cli app redesign (#14403)
* feat(@angular/cli): cli app redesign

* add template comment code and fix rocket ship smoke image placement

* correct tests verbiage

* fix tests copy of PR 14484

* move styles to template and remove unused icons font ref

* move font references to template

* remove external font references

* remove body styles and simplify css

* add comment block and remove old comments

* fix end of placeholder comment
2019-08-12 13:54:09 -07:00
Amadou Sall
d25879f9fc fix(@schematics/angular): the required 'alt' attribute is missing in the root component's template
When you generate an application with `--minimal` flag, the image in the
HTML template of the root component doesn't have the 'alt' attribute
2019-07-24 19:02:47 -07: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
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
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
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
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
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
41eee217d5 fix(@schematics/angular): point CLI link to angular.io instead of wiki 2018-10-18 14:08:09 -07: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
Cédric Exbrayat
3f94b2d8ba feat(@schematics/angular): remove useless import for Ivy (#11874)
Using cli `6.2.0-beta.2` with the new `experimentalIvy` flag leads to:

    ERROR in src/app/app.module.ts(1,1): error TS6133: 'BrowserModule' is declared but its value is never read.
2018-08-28 13:10:18 -07:00
Hans
3886aab55b feat(@schematics/angular): add a --experimental-ivy flag to ng-new
This will create a new Ivy-enabled application. Also available in "ng g application".
2018-08-09 19:37:53 -04:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00