Commit Graph

336 Commits

Author SHA1 Message Date
Paul Gschwendtner 8e324c8e21 build: run chrome and firefox headless tests in circleci (#13603) 2018-10-16 12:35:37 -04:00
Andrew Seguin 3f98306429 chore: bump package.json to 7.0.0-rc.2 (#13623)
* chore: bump package.json to rc.2

* update
2018-10-15 15:16:23 -07:00
Paul Gschwendtner d128fffcd6 build: test cdk with bazel (#13575)
* build: test cdk with bazel

* Add comment for bazel tsconfig files

* CDK tsconfig sync with Bazel build tsconfig
2018-10-15 09:35:51 -07:00
Paul Gschwendtner 8c3457b50a build: move lint job to circleci (#13596)
* Runs the Lint job on CircleCI within a new workflow.
* Adds comment for structuring the Circle config file (the file will
become even larger in the future)
2018-10-15 09:33:15 -07:00
Paul Gschwendtner 282736f8be build: build cdk with angular from source (#13541)
* build: build cdk with angular from source

* Continues the long-term Bazel goal by fixing the CDK bazel build
targets. Also builds the CDK targets with Angular from source.

Follow up's will try to make serving, and testing possible.

* Build package on CI

* No longer compile with AOT compiler that generates factory files that cannot be packaged into "ng_package"
2018-10-11 10:00:40 -07:00
Paul Gschwendtner e0856645e0 build: enable sourcemaps for bazel (#13471)
* Since the NodeJS rules execute built code in a sandbox, we need to enable source map support. This is recommended by the `Bazel NodeJS` rules.

* Also introduces support for repository-wide defaults. This will be helpful when fully switching to Bazel.
2018-10-10 11:27:05 -07:00
Paul Gschwendtner 4ada0c46fa build: fix firebase app type warnings (#13469)
* The `firebase` packages comes by default without typings. Firebase defines the app types as peer dependencies, so we should fix those.
2018-10-10 11:26:57 -07:00
vivian-hu 2e4a51180b chore: bump verion to 7.0.0-rc.1 w/ changelog (#13501) 2018-10-08 17:34:05 -07:00
Paul Gschwendtner da63c6f850 build: switch to yarn (#13362)
* build: switch to yarn

* Use more recent version of Yarn
2018-10-05 14:37:41 -07:00
Kristiyan Kostadinov b8c1024a09 refactor: add support for noImplicitAny (#13381)
Enables the `noImplicitAny` compiler option and fixes all of the resulting compiler errors.

Fixes #13330.
2018-10-05 09:17:17 -07:00
Paul Gschwendtner 3254992a8e build: update bazel typescript rules (#13408)
* Updates the Bazel TypeScript rules.
* Fixes a test case which doesn't match the name of the upgrade data it runs with (`css-names` --> `css-selectors`)
* Removes Bazel version check (the NodeJS rules automatically check the Bazel version based on the version of the NodeJS rules)
2018-10-04 11:52:59 -07:00
Jeremy Elbourn 01b18c04d0 chore: bump version w/ changelog for 7.0.0-rc.0 (#13391) 2018-10-02 12:06:45 -07:00
Jeremy Elbourn c9681bf014 chore: update to TypeScript 3.1 (#13384)
With TypeScript 3.1, several native DOM types have been updated. Notably, `document.documentElement` and `document.activeElement` are now nullable. APIs relating to `matchMedia` were also updated.
2018-10-02 10:38:58 -07:00
Jeremy Elbourn 8ed0129906 chore: bump versions of Angular and devkit betas (#13359)
We can't bump to Angular 7 RC because it requires TypeScript 3.1, and
devkit/schematics hasn't published a version w/ TypeScript 3.1 yet.
Since it's a full dependency there (and not a peer dependency), the
version mismatch breaks our schematics.

For going to Angular 7 beta.7, we need to now explicitly unset some of
the `angularCompilerOptions` in the `tsconfig-test` because they're now
inherited.

For going to devkit/schematics v6 beta 4, we need to update some imports
around the `WorkspaceProject` class. There seem to now be two
incompatible versions of this class in the devkit, so we'll need to sort
that out soon.
2018-09-30 07:43:48 -07:00
Paul Gschwendtner ac3f8c4d1a feat(schematics): support for ng add (#13319)
* Introduces support for `ng add @angular/cdk`. Note that this currently just sets up the `package.json` but is necessary because otherwise the CLI will complain about the `ng-add` schematic not being available.
* Upgrades Bazel workspace rules in favor of removing Bazel manual-copying workarounds for the schematics. This also allows us to switch over to fine-grained dependencies in a follow-up (making it consistent with angular/angular).
* Use fine grained dependencies in schematics bazel rules
2018-09-27 07:44:49 -07:00
Kristiyan Kostadinov 4e475f91c7 build: consistent line breaks for css files (#12977)
Bumps to stylelint 9.5.0 and enables the line break checking for CSS files.
2018-09-27 07:18:18 -07:00
mmalerba 67a4f1296b chore: update changelog for 7.0.0-beta.2 (#13230)
* chore: update changelog for 7.0.0-beta.2

* add highlights
2018-09-20 15:59:10 -07:00
mmalerba 800e36652a Revert "build: sync bazel angular version placeholder (#12635)" (#13222)
This reverts commit bbd2a61470.
2018-09-20 10:38:46 -07:00
Paul Gschwendtner bbd2a61470 build: sync bazel angular version placeholder (#12635)
* Updates the Bazel Angular version that will be replaced within the `npm_package` rule to the required Angular version that has been changed with #12089.
* Removes an unused NPM script
* Adds a small check to the Bazel workspace status script that ensures that both Angular versions are in sync.
2018-09-20 10:37:44 -07:00
Jeremy Elbourn 82e50ff49d chore: bump version to 7.0.0-beta.1 w/ changelog (#13174) 2018-09-17 14:45:39 -07:00
Paul Gschwendtner 239c781f59 refactor(schematics): add tests for component walker (#13106)
* The `ComponentWalker` is a major part of the update schematics and we should verify that external resource files are resolved properly. All test-cases currently just use inline stylesheets or templates.
* Removes the `color` helper function.
* Removes the superfluous utility function for retrieving a `StringLiteral`'s text content.
2018-09-13 10:43:49 -07:00
Paul Gschwendtner 714c205312 feat(schematics): compatibility with Angular CLI 6.2.0 (#13078)
* Upgrades the devkit dependencies to the latest versions.
* Adds support for the newly introduced and published `project.targets` instead of `project.architect` (see: https://github.com/angular/angular-cli/commit/307160806cb48c95ecb8982854f452303801ac9f)
* Compatibility behavior for a published but non-announced breaking change within the schematic context (see: https://github.com/angular/angular-cli/commit/9720077a4b5ae628ddfaf5f1a26bac3b04bdf637#diff-e73df838d6700d187eff76a50c7e1c53R233`)
* Supports the new `project.targets` schema within the update schematics (in order to properly determine `tsconfig` files)
* Due to the fact that the @angular-devkit/schematics now handles Bazel better, the template files will be resolved through NodeJS. This means that the template files need to be referenced in the @//:node_modules label.

Fixes #11438
2018-09-11 15:13:35 -07:00
Paul Gschwendtner 5d9ab9eeb2 refactor(schematics): re-add disabled aliases (#12982)
* Due to a devkit issue, we temporarily had to remove the schematic aliases in order to be able to run the tests. Since this issue has been fixed a long time ago, we can re-add the aliases.
* Also adds more aliases to other schematics for consistency.
* Locks the devkit and schematics version because there is an ongoing type definition bug within the devkit (https://unpkg.com/@angular-devkit/core@0.7.5/src/virtual-fs/host/test.d.ts).
2018-09-05 10:39:14 -07:00
Paul Gschwendtner da95e34ef6 build: update dgeni packages (#12956)
* Upgrades to the latest Dgeni packages version that includes a fix which ensures that the docs for the `Platform` show up properly.

See: https://github.com/angular/dgeni-packages/commit/ab957d1234b49624fb999e321479a8b7493a114a
2018-09-04 11:50:26 -07:00
Kristiyan Kostadinov 0ab720a69d build: rework breaking changes tooling (#12950)
* Reworks the breaking change tslint rule to remove the logic that checks that there are no expired breaking changes.
* Adds a new script that can be used to get an overview of the pending and expired breaking changes.
2018-09-04 11:46:26 -07:00
Jeremy Elbourn 2433b82067 chore: bump to 7.0.0-beta.0 w/ TS 3.0 and changelog (#12916) 2018-08-30 15:38:58 -07:00
Paul Gschwendtner 53b4af6d2a build(docs): fix description comments sometimes empty (#12885)
Follow-up commit for 4879dc4720.

---

Disables concatenation of multiple leading comments for a TypeScript node. Since all shipped source files have a license banner at top, the license banner comment would be incorrectly considered as "comment" for the first TypeScript node of a given file. Since there are various files in the Material project where the first node of a source file is exported and should only use the first leading comment, we need to disable comment concatenation.

See for example: https://github.com/angular/material2/blob/master/src/cdk/coercion/boolean-property.ts
2018-08-29 15:43:52 -07:00
Jeremy Elbourn 515912b23f fix: explictly declare types for mixin base classes (#12876)
As of TypeScript 2.9, tsc will inline imports for inferred types with
the `import("...")` syntax. However, this inlining happens *after*
`paths` are resolved. This means that in places where we import from
`@angular/material/core` in source end up having relative paths (e.g.
`../core/common-behaviors/index`) in the generated d.ts files. These
relative import paths become incorrect when moved into our package
structure, breaking downstream apps.
2018-08-29 10:14:37 -07:00
Kristiyan Kostadinov d424c70676 build: update to TS 2.9 and enable strictFunctionTypes (#12182)
Bumps the project to TypeScript 2.9, enables the `strictFunctionTypes` everywhere and fixes the various errors.

Fixes #12177.
2018-08-28 07:17:26 -07:00
Joey Perrott 2f76451546 chore: update to RxJS 6.2.x (#12678) 2018-08-21 11:45:12 -07:00
mmalerba b20662f28e chore: bump version to 6.4.6 on master (#12764) 2018-08-20 17:27:54 -04:00
Paul Gschwendtner 3a8425968d build: update project dependencies (#12675)
* Updates Dgeni and other development dependencies in order to fix more `npm audit` vulnerabilities.
2018-08-14 10:03:36 -07:00
Joey Perrott f16795930a chore: bump to 6.4.5 (#12657) 2018-08-13 10:59:21 -07:00
Joey Perrott 9f0c31fb09 chore: update changelog and package.json for 6.4.4 (#12652) 2018-08-13 08:36:18 -07:00
Kristiyan Kostadinov 6fde81a1c0 build: bump versions of test tooling and resolve some audit warnings (#12629) 2018-08-13 06:54:52 -07:00
Paul Gschwendtner a2c6dfc92f build: fix invalid required angular version (#12089) 2018-08-09 13:06:11 -07:00
Paul Gschwendtner 1effb16c24 refactor(schematics): use parse5 for finding inputs and outputs (#12524) 2018-08-09 07:46:14 -07:00
Paul Gschwendtner fca1429718 build: remove madge (#12548) 2018-08-08 09:45:53 -07:00
Paul Gschwendtner 73f3f940b0 build: remove deprecated node-github api (#12420)
Switches to the newer version of `node-github` that has been renamed to `@octokit/rest`.
2018-07-31 11:13:34 -07:00
Paul Gschwendtner e4ac04d678 build: speed-up stylesheet building (#12426)
* Switches back from `dart-sass` to `node-sass` due to a pretty huge slow-down we noticed (can be revisited)
* No longer copies all SCSS files to the temporary `package` output just in favor of the demo-app (slows down unnecessarily). This now allows us to live-reload theme changes within a second.
* No longer rebuilds all package SCSS files twice for the ES5 output (rel: https://github.com/angular/material2/pull/7403)
2018-07-31 09:06:39 -07:00
mmalerba 2ffdae6c80 chore: 6.4.2 changelog (#12441)
* chore: 6.4.2 changelog

* address comments
2018-07-30 15:01:02 -07:00
Paul Gschwendtner e07400354a build: switch to dart-sass (#12370)
* Switches to dart-sass in order to be consistent with the Bazel output. That way we can identify potential issues with the SASS output (e.g. demo-app) before we at some point make the full-switch.
* Also speeds-up the project installs because libsass bindings are no longer needed (trade-off with compilation time though; but pretty minimal due to our amount of Sass files)
2018-07-28 21:49:04 -07:00
Paul Gschwendtner 5963d14bdd build(schematics): test schematics properly (#12410)
* build(schematics): test schematics properly

* Previously, the spec files that have been pushed to the repository, didn't run at all, or were outdated. This PR updates the tests and also enables most of them (as much as possible).
* Sets up the Bazel test rules (with a few needed workarounds) in order to test the schematics
* Removed devkit utils that can be used from `@schematics/angular` which is **always present** (we can assume that)
* Moved data `.json` files into TypeScript files (in order to workaround a bazel typescript issue; and to allow separation for v6 and v7 data at some point)
* Updates and fixes schematics to properly work within the latest Angular CLI version

* Address feedback

* Remove unnecessary diff
2018-07-28 21:48:11 -07:00
Paul Gschwendtner e23709f513 build: remove unused dependencies (#12346)
* Removes unused dependencies.
2018-07-24 10:10:07 -07:00
Joey Perrott c3e3dcb3fc chore: update changelog for 6.4.1 (#12330) 2018-07-23 12:06:52 -07:00
Kristiyan Kostadinov 3b50e44bf2 chore: bump to latest tslint version (#12300) 2018-07-20 17:27:42 -07:00
Paul Gschwendtner 1c67663e47 build: add git-semver-tags to dev dependencies (#12230) 2018-07-18 08:52:58 -07:00
Jeremy Elbourn cc33f57f4e chore: bump version to 6.4.0 w/ changelog (#12240) 2018-07-16 15:47:31 -07:00
Paul Gschwendtner fdd70823cf build: fix small browser test coverage (#11970)
* No longer just runs the tests against the first browser of a test platform (travis, saucelabs, browserstack)
* Stability is more valuable than speed (runs sequentially on CI now)
* Update Saucelabs Connect
* Remove unused spec reporter
* Update from Edge 14 to Edge 17
* Fix pixel deviations in Edge 17
2018-07-11 08:18:32 -07:00
mmalerba e1fd13aec5 update changelog for 6.3.3 (#12120)
* update changelog for 6.3.3

* add release name
2018-07-09 13:55:33 -07:00