Commit Graph

487 Commits

Author SHA1 Message Date
Paul Gschwendtner c4331048ec build(schematics): version placeholders not replaced (#13688)
Since we copy the schematics after the version placeholders have been inlined, the version range that uses the NG version placeholder is not replaced properly.

This is not problematic because by default we determine the NG version based on the installed `@angular/core` version.

```
 addPackageToPackageJson(host, '@angular/animations',
        ngCoreVersionTag || requiredAngularVersionRange);
```
2018-10-29 08:12:46 -07:00
Paul Gschwendtner 91d4c0f649 build: share release output between circle jobs (#13838)
Also support parallel Karma instances on CircleCI
2018-10-29 08:11:35 -07:00
Greg Magolan b3a00376cd build: update to Angular 7.0.1 http_archive & @angular/bazel package (#13831)
* Update to Angular & @angular/bazel 7.0.1
* Remove sha256 from io_bazel_rules_sass http_archive
2018-10-29 07:57:56 -07:00
Paul Gschwendtner 631c991d8f build: use angular 7.0.0 w/ bazel (#13793)
* Switches away from the temporary `angular/angular:bazel` branch and uses a version of Angular that is based on `master` and comes after `v7.0.0`.
2018-10-24 15:35:35 -07:00
Paul Gschwendtner bec5823719 build: test material with bazel (#13670)
* build: test material with bazel

* Supports testing `src/lib` with Bazel.

* Add prebuilt theme to all Material tests

* Always include prebuilt theme. Rebase changes for paginator spec
2018-10-24 15:34:40 -07:00
Paul Gschwendtner 3ca3e39d59 build: update dgeni-packages version (#13772)
* Updates to the latest `dgeni-packages` version that includes: https://github.com/angular/dgeni-packages/commit/5d90fd9f31541f380a62a52fd31493b232b9585c. This allows us to remove a workaround.
* Removes the closure testing stuff that hasn't been used for months. In case we want to reintroduce testing w/ Google Closure, we should consider using Bazel or something (AFAIK there are Bazel rules for closure)
2018-10-23 12:00:11 -07:00
Paul Gschwendtner 0e8ef603bb chore: stage release script should create commit (#13748) 2018-10-23 09:02:36 -07:00
Kristiyan Kostadinov 193eb48612 build: bump dashboard to Angular 7 final and switch to yarn (#13706) 2018-10-22 07:05:51 -07:00
Joey Perrott efeefd1408 build: fix getRemoteCommitSha to only return the sha (#13699) 2018-10-19 15:06:32 -07:00
Paul Gschwendtner fb8496dc45 build: move aot and prerender jobs to circleci (#13690) 2018-10-19 13:42:55 -07:00
Kristiyan Kostadinov a54530ac85 chore: clean up unused catch clause parameters (#13481) 2018-10-19 08:06:45 -07:00
Paul Gschwendtner 16098a7802 build: exported scss files missing in CDK (#13679) 2018-10-19 07:28:15 -07:00
Paul Gschwendtner 183df8f937 build: move bazel config to workspace root (#13644) 2018-10-17 14:56:46 -04:00
Paul Gschwendtner 6fae3bf610 build: build material with angular from source (#13655) 2018-10-17 14:56:00 -04:00
Paul Gschwendtner aaac266c6d build: initial release staging script (#13621) 2018-10-17 10:05:58 -04:00
Kristiyan Kostadinov 97703be459 chore: add support for noImplicitThis (#13404) 2018-10-17 10:02:17 -04:00
Paul Gschwendtner 5c8e0cbc95 build: run overlay and text-field tests with Bazel (#13637) 2018-10-16 18:28:09 -04: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
Kristiyan Kostadinov 85f04db62a build: set up tooling to ensure consistent prefixes for CSS classes (#13563)
Enables the `selector-class-pattern` Stylelint rule and fixes everything that wasn't consistent.

Fixes #13545.
2018-10-15 09:35:35 -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
mmalerba f1386824ab demo(prerender): add theme to prerender demo (#13516) 2018-10-10 11:27:50 -07:00
Kristiyan Kostadinov c4a422abad build: fix custom lint rule throwing errors in IDE on invalid files (#13488)
Fixes errors being thrown by the decorator validation rule when run in an IDE. The errors can happen, because the rule is run for each key stroke and the user might not be done typing out the definition yet. The two cases where it was throwing were when a decorator is added without being called (e.g. `@Component class Something`) and when defining a new property that doesn't have an initializer yet (e.g. `@Component({selector})`).
2018-10-10 11:27:12 -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
Paul Gschwendtner 4b15b78a44 build(docs): ensure const types are not truncated (#13457)
* By default TypeScript truncates the types when calling `typeToString`. Since we don't want to truncate the types automatically, we need to work around: https://github.com/angular/dgeni-packages/issues/276 until there is a possibility to change this using the `tsHost`.
2018-10-05 16:36:08 -07:00
Paul Gschwendtner 321c01d723 build(docs): deprecated state of type alias not showing up (#13449)
* Currently if a type alias is marked as `@deprecated`, we don't add an indication as for the constants. Now a similar indication will be added if a type alias is deprecated.
* Similarly to the constants and `angular.io`, we will display the actual type of the `type-alias` in a better-looking & more clear way.
* Also fixes that the constant code "overview" does not include the trailing semicolon (Angular.io also adds a trailing semicolon)
2018-10-05 11:09:50 -07:00
Paul Gschwendtner 6a7327351f build(docs): show exported constants in docs (#13168)
* Currently constants which are exported, will not show up in the docs. This introduces support for displaying `constants` in the docs.
* Also creates a Nunjucks plugin that supports highlighting specific code snippets. This is helpful when rendering a type in the docs (similar to angular/aio)
* Marks most animation constants as `@docs-private` because those shouldn't be relevant to users.
2018-10-04 10:11:09 -07:00
Paul Gschwendtner db873341a3 build: fix e2e rate limit failures (#13376)
* Since the `webdriver-manager` always tries to query the versions of all Selenium drivers, we currently run into rate limit failures that cause the E2E tests to not run properly.
2018-10-01 14:13:48 -07:00
Paul Gschwendtner 74fdedba56 build: ts compilation not reporting failures (#13312)
Currently if the TS compilation (either through `ngc` or `tsc`) fails, the gulp tasks won't report the error properly because the `reject()` call of the Promise does not have any error message. This causes compilation failures to be ignored. See: #13310
2018-09-26 11:25:42 -07:00
Paul Gschwendtner 70dd33f143 chore(examples): disable user select in ripple-overview example (#13257)
* Since people often click on the ripple container of the example, we need to disable the user selection because otherwise the text will be accidentally selected.
* Disables the `no-prefixes` rule for example style files. The examples are not auto-prefixed and we don't want to show the `/** stylelint-disable` comments in the examples.
2018-09-25 07:06:45 -07:00
Paul Gschwendtner 93f832118e build: stylelint should not check node_modules (#13258)
Currently, if someone runs `gulp stylelint` and has the dashboard node modules installed, stylelint will lint the `tools/dashboard/node_modules/`. This causes stylelint to report thousands of failures due to some minified CSS files in the `node_modules/`.
2018-09-24 16:47:34 -07:00
Paul Gschwendtner 5f1f072d7e build: livereload not working for core/theming files (#13275)
Since most of the SCSS files inside of `core/theming` are not suffixed with `-theme.scss`, the livereload will rebuild the Material bundles, but not the theme SCSS files. This causes undesired slow-down and a non-working livereload.
2018-09-24 13:33:57 -07:00
Paul Gschwendtner 6b6cf45098 refactor(schematics): foundation for cdk schematics (#13213)
* Moves the utility functions which will be needed for building CDK schematics to the CDK (`cdk/schematics`).
* Updates package tools to properly build schematics for CDK and Material (shared logic for building schematics; Material schematics depend on CDK schematics)
* Update to `ng-add`: The Angular CLI only installs `@angular/material` if someone runs `ng add @angular/material`. But since we need access to the utility functions from the CDK, we need to install the dependencies first, and then setup the project.
2018-09-20 10:39:31 -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
Paul Gschwendtner 4f58d5a424 fix(examples): form-field custom control example not working (#13043)
* Removes a workaround that allowed the secondary component of the form-field-custom-control to use the primary asset files (`form-field-custom-control-example.(html|css` are reserved for the primary example component). This workaround caused the example to not render properly inside of StackBlitz.
* Fixes that the build-example-module task does not properly detect stylesheet additional files.
* Depends on https://github.com/angular/material.angular.io/pull/516
Fixes #13021
2018-09-11 15:15:37 -07:00
Paul Gschwendtner 6b2f00897f docs: component-grouper does not always include components (#13079)
* Currently we group the Dgeni docs by entry-points (we just call it *grouping by components*). Technically there are "component groups" that do not even include any component/directive (e.g. `cdk/coercion`, `cdk/platform`). This renames the component grouper to `entry point grouper`.
* No longer displays interfaces, classes, type-aliases etc. as `additional` "parts of an entry-point". (As mentioned above; sometimes classes are the primary export of an entry-point).
2018-09-11 15:12:58 -07:00
Paul Gschwendtner 041a41d4a7 build(dashboard): switch to new @angular/fire package (#13051)
Switches the dashboard to the new scoped name for the `angularfire2` package.
2018-09-10 16:09:29 -07:00
Paul Gschwendtner e1b040d0e1 build(docs): fix directive metadata not showing up in docs (#13057)
* Due to the recent update to TypeScript 3.0.0, the new TS version conflicts with the internal TypeScript version from `dgeni-packages`. This causes the selector, exported-as to not show up in the docs.
* Removes the selector blacklist and `md-`prefix filter. All of the blacklisted selectors have been removed (except the autosize selector; but the whole class has been deprecated now)
2018-09-10 16:06:35 -07:00
Paul Gschwendtner d74f94c335 build: run publish sanity checks before building (#13060)
Runs the publish sanity checks before building the release output of Angular Material. Building the release output is very time consuming, and therefore the sanity checks should run before.

Closes #12918
2018-09-10 15:54:25 -07:00
Paul Gschwendtner dc6688df04 build: skip duplicate commit entries in changelog (#12943)
Ensures that commits are not showing up multiple times in the changelog.

Commits can show up multiple times, if a changelog has been generated on a publish branch and has been copied over to "master". In that case, the changelog will already contain the commits that have been cherry-picked into the publish branch. These shouldn't be added twice.

Closes #12915
2018-09-04 15:12:17 -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
Paul Gschwendtner c618f03a34 build: upgrade dashboard dependencies (#12960)
Upgrades the dashboard to V7 beta. This also fixes some vulnerabilities with the `hoek` transitive dependency.
2018-09-04 11:44:24 -07:00
Kristiyan Kostadinov b2ae3f4a9d build: clean up build workaround for ts 2.9 (#12912)
Removes a workaround that was initially introduced to get #12182 through. The root issue has been resolved in #12876.
2018-08-30 14:35:29 -07:00
Jeremy Elbourn 4576863b17 chore: make publish version+branch check support minor and patch (#12910) 2018-08-30 13:05:03 -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
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
Paul Gschwendtner e5e5b68a93 build: prevent publishing from the wrong branch (#12831)
* Patch releases should be published from patch publish branches with the format: `{}.{}.x`
* Minor releases should be published from minor publish branches with the format: `{}.x`
* Major releases should be published from the `master` branch.

Closes #12655
2018-08-25 07:49:36 -07:00
Kristiyan Kostadinov 2364b7cc3a build: add tslint rule to disallow private setters (#12706)
Adds a tslint rule to prevent people from adding private getters since they don't contribute to the public API and they generate more ES5 code.
2018-08-21 11:41:33 -07:00
Paul Gschwendtner 4879dc4720 docs: show exported functions (#12736)
Changes the Dgeni setup to properly display exported functions (e.g. from cdk/coercion, cdk/a11y, cdk/platform)
2018-08-20 13:40:28 -07:00