29 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
4cca3a10e8 feat(@schematics/angular): add text-summary to code coverage reporters
Fixes #3602
2018-10-23 10:16:44 -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
Charles Lyding
d3fa9a6631 fix(@schematics/angular): remove redundant reflect polyfill 2018-09-24 13:23:57 -07:00
Sean Wright
467c02b35c style: match styleguide catch callback 2018-09-12 12:43:35 -07:00
Adrian Moos
247b20d37a style(@schematics/angular): fix typo and English in environment.ts (#12023) 2018-08-30 13:47:15 -07:00
Eaton
03c4296c1b docs: fix broken links to angular.io (#11811)
docs:  fix broken links to angular.io
2018-08-23 13:54:32 -07:00
Charles Lyding
a9e25fffae fix(@schematics/angular): ensure non-evergreen IE browsers are excluded 2018-08-23 10:36:53 -07:00
Alan Agius
b99b6bab08 fix(@schematics/angular): incorrect exclude path for test.ts
Closes #11829
2018-08-13 17:03:32 -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
Qais Patankar
68d87e82d1 style(@schematics/angular): fix English in environment.ts 2018-08-07 10:40:26 +01:00
Filipe Silva
b8cecbbb3c feat(@schematics/angular): use es2015 modules overall
This change helps to keep the behaviour of build/serve/test consistent by using the same import semantics in all of them.
2018-06-13 22:33:32 +01:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00