310 Commits

Author SHA1 Message Date
ukrukar
3d86b18d7e fix(@schematics/angular): buildRelativePath handles files in root
Before, if one of the arguments was a file in root (eg "/module")
code would fail with: "" must be an absolute path.
2019-04-01 10:51:24 -07:00
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
Minko Gechev
9a1f48f990 feat(@schematics/angular): update to codelyzer 5
This PR also updates the hello world sample app and migrates its
`tslint.json` file.
2019-03-31 09:56:19 -07:00
Minko Gechev
a355e7d693 feat(@schematics/angular): drop es6 from modern polyfills
1. Remove imports of es6 polyfills introduced by the CLI.
2. Refactor the migrations for version 8 by moving the codelyzer and
polyfill transforms into different files.

The PR drops all `core-js/es6` polyfills that we've introduced with the
CLI, except the commented ones. We do not remove commented imports,
since they are not part of the internal es6 polyfills.

The migration automatically drops the
associated comments with the removed imports since they are part of the node - under its
`jsDoc` property.
2019-03-29 18:06:01 -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
ecd25a7131 refactor(@angular/cli): remove dimension 20
We need it for errors in build.
2019-03-28 13:28:41 -07:00
Minko Gechev
4b89fe21f4 feat(@schematics/angular): tslint migration for 8
Migration of the `tslint.json` and `package.json` files required by the refactoring of
codelyzer. For more information check this PR
https://github.com/mgechev/codelyzer/pull/754.
2019-03-27 12:24:21 -07:00
Renovate Bot
688ed6aca9 build: update zone.js to version ^0.9.0 2019-03-27 12:23:59 -07:00
Alan Agius
e516a817ac feat(@schematics/angular): update to ng-packagr version 5
This changes remove the need for tsickle.
2019-03-27 12:11:38 -07:00
Renovate Bot
a516f8ad91 build: update semver to version 6.0.0 2019-03-27 10:05:43 -07:00
Will
63d64472b5 feat(@schematics/angular): add type checking for protractor.conf.js file
Fixes #13958
2019-03-22 07:14:14 -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
Filipe Silva
6e3d2e0c4d feat(@ngtools/webpack): support Angular 8
This requires updating projects to TypeScript 3.3
2019-03-20 12:29:01 -07:00
cexbrayat
12b5db4624 feat(@schematics/angular): use more codelyzer rules 2019-03-19 10:00:30 -07:00
Alan Agius
10fb461829 fix(@schematics/angular): remove baseUrl from universal tsconfig
The baseUrl is used for non relative module imports, and we should always use the baseUrl set in the workspace tsconfig. When having path mappings set at workspace level and setting a `baseUrl` in the server tsconfig, this paths will no longer work as paths mapping as relative to the baseUrl.

Fixes #13935
2019-03-19 09:27:55 -07:00
Hans Larsen
c7cc4ddff0
release: v8.0.0-beta.7 2019-03-14 16:02:05 -07:00
Hans Larsen
6acd20bb30 feat(@schematics/angular): allow ember, ember-cli, vendor, app and test names
We dont care about the app name anymore.
2019-03-13 13:56:13 -07:00
Alex Eagle
eb5643e370 feat(@angular-devkit/core): Remove dep on chokidar
It is unused within our code, as webpack will do the file watching.
This removes 1.4 MB from the download size of the package.
See https://codepen.io/alexeagle/full/zbZWRM

BREAKING CHANGE:
Users who rely on angular-devkit/core to do the file watching must add chokidar to their devDependencies.
2019-03-13 13:53:53 -07:00
Hans Larsen
08e91a94ab build: refactor QoL on monorepo.json
This should make it easier to manage and diff. This takes 2 things into account:
1. we have either stable or experimental versions and each are kept in monorepo.
2. we dont keep hash and update only changed packages.

This commit also removed the hash to make sure this does not happen.
2019-03-13 13:51:01 -07:00
Alan Agius
4ff4d5335f feat(@schematics/angular): update workspace jasmine to 3.3.1+ 2019-03-13 13:49:49 -07:00
Alan Agius
c378ddc500 feat(@schematics/schematics): update jasmine to 3.3.1+ 2019-03-13 13:49:49 -07:00
WilliamKoza
d841b3771e fix(@schematics/angular): change entry file name of the library schematic according to the kebab-case convention 2019-03-11 13:40:02 -07:00
Cyrille Tuzi
d747490fd9 feat(@schematics/angular): JSON schema for service worker config 2019-03-11 13:37:28 -07:00
Hans Larsen
fd5cb7a7f0
release: v8.0.0-beta.5 2019-03-06 14:01:53 -08:00
Filipe Silva
643e83d054 feat(@schematics/angular): use esnext as the default TS module format 2019-03-06 11:29:34 -08:00
Alan Agius
60ccf2fe64 feat(@schematics/angular): update minimum karma and tslint versions
Karma `4.0.1` removes usages of some vulnerable dependencies
See: https://github.com/karma-runner/karma/releases/tag/v4.0.1

Also, this updates tslint to `~5.13.1` which comes with several bugfixes https://github.com/palantir/tslint/blob/master/CHANGELOG.md#change-log
2019-03-06 11:28:37 -08: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
Alex Eagle
bf1c069f73 refactor(@schematics/angular): drop dependency on TypeScript package
instead, vendor in the two files we actually need.
This reduces our install footprint by 5MB
2019-03-06 11:27:48 -08:00
Alex Eagle
4e262f966f build: Update to latest bazel rules 2019-03-06 11:27:48 -08:00
Alan
64b83e2a55 feat(@schematics/angular): relocate ng g service-worker files
This is a follow up on https://github.com/angular/angular-cli/pull/13811, with this now all application have the same structure and hence `ng g service-worker` should follow suit and have the same folder strucute if generated in a root app, or an app inside the projects.
2019-03-06 11:27:04 -08:00
Alan
1fcb9a09f9 test: remove now duplicate test 2019-03-04 10:26:09 -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 Agius
edfc155f35 feat(@schematics/angular): rename tsconfig.e2e.json to tsconfig.json
This will help IDEs as they only pick up the standard name
2019-03-04 09:33:12 -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
Hans Larsen
214e8efaa7
release: v8.0.0-beta.4 2019-02-28 17:57:33 -08:00
Alex Eagle
4a093e5e38 Revert "feat(@angular/cli): Add VsCode extension recommendations"
This reverts commit d9166b04fccc708bc3856a6b243a8752120f312d.
2019-02-28 10:25:28 -08:00
Alex Eagle
71428bd9cb Revert "feat(@angular/cli): Add VsCode recommendation for Angular Console"
This reverts commit 3d6ae631788b600a1b80132ae407f15ad3dc65aa.
2019-02-28 10:24:46 -08:00
Alex Eagle
242ebd932f Revert "feat(@schematics/angular): recommend plugins that John Papa recommends"
This reverts commit 3a68b8cf9696e678308da65ca59b53329981c94f.
2019-02-28 10:24:44 -08:00
Minko Gechev
ef11c9fbc9 release: v8.0.0-beta.3 2019-02-27 16:40:55 -08:00
Alex Eagle
3a68b8cf96 feat(@schematics/angular): recommend plugins that John Papa recommends
This list comes from https://marketplace.visualstudio.com/items?itemName=johnpapa.angular-essentials
But we don't write a .prettier.json config file so we don't include the Prettier plugin yet
2019-02-27 10:10:18 -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
mrmeku
3d6ae63178 feat(@angular/cli): Add VsCode recommendation for Angular Console 2019-02-26 08:45:12 -08:00
Charles Lyding
b96e7bf76f fix(@schematics/angular): default newProjectRoot to current directory 2019-02-26 08:39:57 -08:00
Alan Agius
ae13974f1d build: update to rxjs 6.4 2019-02-26 08:33:48 -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