Commit Graph

410 Commits

Author SHA1 Message Date
Kristiyan Kostadinov 01ec602b0b build: handle prerelease versions in deletion target rule (#10101) 2018-05-04 10:57:03 -07:00
Kristiyan Kostadinov e504d81815 build: bump screenshot tool to Angular 6 (#11150) 2018-05-04 10:00:31 -07:00
Kristiyan Kostadinov b0457cd152 build: fix screenshot tool compilation errors (#11060) 2018-05-02 11:02:33 -07:00
Kristiyan Kostadinov 340b0b23ea build: fix dashboard compilation errors (#11066) 2018-05-01 14:38:17 -07:00
Andrew Seguin 1ee9c5f967 chore(demo): add examples to demo app (#11018)
* chore(demo): add examples to demo app

* fix aot
2018-04-27 18:43:36 -07:00
Kristiyan Kostadinov b590cec04b build: add stylelint rule to validate ampersands in theme selectors (#10949)
Replaces the `selector-nested-pattern-scoped` Stylelint rule with a new rule called `no-ampersand-beyond-selector-start`. The new rule will enforce that ampersands can only be used at the start of selectors in theme mixins. This will catch issues like #10889 and #10904 where having an ampersand anywhere else in the selector will work in most cases, but will break down once the mixin is wrapped in a selector.
2018-04-25 22:04:06 -07:00
Andrew Seguin 6dd6080d58 Revert "chore(demo): add examples to demo app (#10743)" (#11017)
This reverts commit 68b1f2afeb.
2018-04-25 22:01:12 -07:00
Andrew Seguin 68b1f2afeb chore(demo): add examples to demo app (#10743)
* chore(demo): add examples to demo app

* fix polyfill
2018-04-25 21:58:54 -07:00
Tobias Schweizer 153dfb8f34 fix(datepicker): allow MatCalendarHeader to be re-used inside a custom header (#10856)
* refactor (MatCalendarHeader): remove Host decorator

* fix (remove unused import)

* feature (MatCalendarHeader): add custom header using the standard header to demo

* fix (ts lint)

* test (MatCalendarHeader): add a unit test for custom header input (ongoing)

* refactor (styling)

* refactor (styling)

* test (MatCalendarHeader): pass header component to datepicker

* test (MatCalendarHeader): remove header component to fix test (temporary)

* test (MatCalendarHeader): provide entryComponents

* test (MatCalendarHeader): add custom header component to declarations

* fix (MatCalendarHeader): fix issue with rollup-globals

* test (MatCalendarHeader): get rid of declarations param

* test (MatCalendarHeader): add test to check for standard calendar header selector

* test (MatCalendarHeader): rename test

* test (MatCalendarHeader): type annotations
2018-04-19 11:04:50 -07:00
Jeremy Elbourn c9f5be6c9e fix(schematics): make v6 migration work (#10853)
This includes:
* Adding missing schema json to package
* Add missing packageGroup entries to material, cdk, and moment-adapter
* Move schematics for migration to the migrate-specific schema
* Bump version to 6.0.0-rc.11
2018-04-16 11:51:50 -07:00
Igor Minar f1a33e90c1 build: mark material and cdk packages as sideEffect-free for webpack v4 (#10816)
This change enables material and cdk packages to take advantage of webpacks more advanced optimizations
documented at https://github.com/webpack/webpack/tree/master/examples/side-effects

Our code is already side-effect free because otherwise @angular-devkit/build-optimizer would break it, so it's safe
to turn this on.
2018-04-12 13:04:28 -07:00
mmalerba 3cc21cdc30 cleanup: migrate migration tool to schematics (#10736)
* WIP: migrate migration tool to schematics

* address comments

* fix bazel

* make released version work

* Add additional rules

* wip

* wip

* yay, working

* all rules migrated

* combine packages in single `npm i` call

* update schematics version and fix TODOs
2018-04-11 13:30:27 -07:00
Rafael Santana c147f32f9a chore: remove noRxjsPatchImportsRule (#10765) 2018-04-10 11:06:51 -07:00
mmalerba b472330659 docs(datepicker): add docs for custom calendar header (#10543)
* docs(datepicker): add docs for custom calendar header

* fix error

* fix error in example module generation
2018-04-10 10:54:27 -07:00
Jeremy Elbourn 09a60bbc3e build(bazel): add version stamping (#10687) 2018-04-09 12:44:55 -07:00
Joey Perrott 7fb2f892b6 chore: bind devapp to 0.0.0.0 (#10714) 2018-04-05 10:30:35 -07:00
Rafael Santana b85ee8c575 chore: remove duplicate imports (#10692) 2018-04-05 07:55:15 -07:00
Jeremy Elbourn 872952efb9 build: add ng_package rule for @angular/material (#10625)
In order to make this work, this includes:
* Move schematics under src/lib
* Change sass rules to omit sourcemaps
* Add cdk/text-field and lib/tree to packages list
* Add bazel rules for prebuilt themes
* Add html assets to all ng_module rules
* Point all ng_module rules to a package common tsconfig
* Add missing index.ts for src/lib
* Add bazel rules for schematics
* Fix incorrect module_name for hyphenated lib ng_module rules
* Add NgModules to `imports` of the example module (formerly were just
exports)
2018-03-30 11:45:00 -07:00
Joey Perrott c05005a688 chore: update to rxjs v6 beta and angular v6 beta (#10496) 2018-03-23 08:40:20 -07:00
Jeremy Elbourn 9091b21f6f build(bazel): add rule for cdk npm package (#10509)
* build(bazel): add rule for cdk npm package

* Bump to rc0, remove moment from cdk rollup config

* Remove TODOs
2018-03-22 14:21:04 -07:00
Jeremy Elbourn 6f63fd283e build: add schematics to @angular/material package (#10351)
This also fixes a handful of minor issues with the blueprints
2018-03-12 14:31:59 -07:00
Jeremy Elbourn fcc09089c3 build: create sass_bundle bazel rule (#10055)
This defines a bazel rule to bundle sass partials into a single file
using the "scss-bundle" npm package. The rule definition is commented so
that it can serve as an example for creating other rules in the future.

I've also added the missing build file for badge so that its theme can
be included in the bundle.
2018-03-12 11:12:38 -07:00
Kristiyan Kostadinov 7ff086afd1 build: add stylelint rule to avoid top-level ampersands in themes (#10280)
* Adds a stylelint rule that will log a warning for top-level ampersand selectors inside of mixins. This will help us avoid issues like #9991 in the future.
* Makes the `mat-radio-color` internal.
2018-03-06 11:17:37 -05:00
Paul Gschwendtner b53002ce01 build: add package name to AMD modules (#10177)
* Fixes that the UMD bundles, which use the `define` function in AMD mode, don't have a module name. This feature has been added in later versions of Rollup, so we had to upgrade. By comparing with the previous UMD bundles, the bundles still seem to work properly (also in our demo-app).

Fixes #10142
2018-02-28 11:15:16 -08:00
Paul Gschwendtner e21015da16 build: update dgeni packages (#10144)
* Updates dgeni-packages to the latest version (to include https://github.com/angular/dgeni-packages/pull/262)
* Cleans up the logic for removing duplicate exports and aliases from Dgeni. Right now, it can happen that parameter Dgeni docs are being filtered out.
2018-02-28 11:14:31 -08:00
Kristiyan Kostadinov d078e5ee6a build: add stylelint rule to ban concrete CSS rules inside theme files (#10003)
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to #9999.
2018-02-26 07:05:53 -08:00
Kristiyan Kostadinov f33e2a2d3e refactor: clean out variables that are being assigned to but not being read (#9871) 2018-02-22 11:34:10 -08:00
Jeremy Elbourn 19463bb6c9 chore: update master to Angular 6.0.0 beta (#10078) 2018-02-22 08:17:29 -08:00
Kristiyan Kostadinov 4c3e385b00 build: enforce that deprecated APIs have a deletion target (#9931)
Follow-up from #9881. Ensures that anything marked with `@deprecated` also has a `@deletion-target`.
2018-02-13 11:34:47 -08:00
Paul Gschwendtner 2f891e64f6 build: enforce consistent version names (#9917)
Ensures that versions are following a consistent format before publishing. e.g. versions like `6.0.0-beta-0` is not valid, because the last dash should be actually a dot.

Closes #9910.
2018-02-13 07:53:32 -08:00
Kristiyan Kostadinov b6e7174f62 build: add tslint rule to enforce deletion targets (#9881)
Adds a tslint rule that will mark any deletion targets that are due to be deleted.
2018-02-13 07:51:57 -08:00
Paul Gschwendtner 7feaeb1f9e docs(dgeni): fix typo in method name (#9892)
* Fixes a minor typo in the `MergeInheritedProperties` processor.
* Fixes an incorrectly placed comment inside of `decorators.ts`.
* Cleans up the `dgeni/index.ts` file
2018-02-13 07:51:13 -08:00
Paul Gschwendtner 47ab3367b9 docs(dgeni): simplify filtering of alias exports (#9893)
Simplifies the processor that filters alias exports. This is now possible with https://github.com/angular/dgeni-packages/commit/f7034143390293f908cd94ca424fcf9420653d70
2018-02-13 07:50:15 -08:00
Paul Gschwendtner cf54802e44 chore: less warnings for docs generation (#9864)
* Hides the warnings about unresolved TypeScript symbols for the mixin base classes. Those warnings are not fixable and are polluting the Dgeni output.
* Adds missing `@deprecated` tags to entries that already have the  `@deletion-target` set.
* Updates to the latest version of dgeni-packages because https://github.com/angular/dgeni-packages/commit/3a4e5685589b99b85dfb88e8fd8dbf46aab24088 landed.
2018-02-09 14:19:05 -08:00
Paul Gschwendtner 01f35ab1da build: prevent alpha/beta/rc publishing to latest tag (#9711)
* No longer allows publishing versions that include "beta" / "alpha" / "rc" to the "latest" tag on NPM. This safeguard can be still removed temporarily, if there is a real need to publish a beta in the latest tag.

Closes #9699.
2018-02-02 16:06:28 -08:00
Paul Gschwendtner 5e6822d6d3 chore(dgeni): fix duplicate api doc entries (#9666)
* Fixes that some API document entries are showing up twice (e.g. https://material.angular.io/cdk/scrolling/api). This happens because the `ScrollDispatcher` is exported multiple times across different packages (`cdk/scrolling` and `cdk/overlay`).
2018-01-31 10:25:28 -08:00
Paul Gschwendtner 664d69eb73 build: show deletion target in docs (#9648)
* Surfaces the @deletion-target JSDoc information into the Dgeni HTML output. Currently it will add a title to the deprecation marker.

Closes #9641
2018-01-31 10:25:17 -08:00
Kristiyan Kostadinov b201dc7d30 chore: fix demo app not serving the favicon (#9644)
Fixes the demo app 404ing on the favicon.
2018-01-31 10:24:47 -08:00
Paul Gschwendtner 34d6e6d8b4 chore(dgeni): add @deletion-target to valid tags (#9642)
* Currently Dgeni always shows warnings about the `@deletion-target` tag, because it considers non-jsdoc tags as invalid by default.
2018-01-31 10:24:34 -08:00
Juliano c306297b89 build: tslint rule to enforce html tags escaping in comments (#8200) 2018-01-25 16:48:28 -08:00
Paul Gschwendtner e7af740471 build: auto generate example module (#9590)
No longer pushes the example-module.ts file to the GitHub repository. The file will be auto-generated once the `material-examples` build package is being built.

References #9574.
2018-01-25 10:56:49 -08:00
Juliano 40a507043a docs: escape html tags and close unclosed backticks (#9583) 2018-01-25 10:36:31 -08:00
Paul Gschwendtner e0fc2bd51c chore(dgeni): better extraction of directive metadata (#9387)
* chore(dgeni): better extraction of directive metadata

* No longer extracts the directive/component metadata using Regular Expressions.
* Fixes that inherited properties from interfaces or super-classes are not showing up as inputs/outputs if they are specified in the component/directive metadata.
* Now handles multi-line selectors (this was not possible using the Regular Expression)
* Fixes that merged inherited properties have a reference to the original document (this causes unexpected behavior; if properties are updated).

References #9299
2018-01-23 16:08:11 -08:00
Rafael Santana 379a305182 docs: ensure docs are being shown for '@Input's (#9471) 2018-01-23 07:30:03 -08:00
Paul Gschwendtner 7024dc49f8 chore: update dashboard functions (#9504)
* Updates the package dependencies of the Dashboard dependencies. There seem to be errors with the old `node-github` API, but updating to the latest version (`@octokit/rest`) seems to work locally.
2018-01-22 12:50:50 -08:00
Rafael Santana 151e58142c docs: ensure jsdocs are properly set (#9390) 2018-01-18 10:41:39 -08:00
Roy 75eccb53f7 docs: use correct naming Sass (#9375) 2018-01-18 10:39:30 -08:00
Kristiyan Kostadinov 60b0625667 docs: clean up example config and data generation (#9223)
* Removes all of the optional properties being passed in as null in the example config. Also adds stronger typing to the list.
* Cleans up the example data generation to be closer to the rest of the project.
2018-01-12 09:41:01 -08:00
Paul Gschwendtner e5a0f7d5a7 docs: show inherited properties (#9299)
* Fixes that properties from mixins (e.g color, disabled) are not showing up in the docs.
* No longer runs Dgeni twice when executing the docs task.

Fixes #5284
2018-01-12 09:40:09 -08:00
Paul Gschwendtner 7187670d14 fix: too strict peer dependency of angular (#9355)
* Right now the `peerDependency` of Angular will be the one from the `package.json`. This means that upcoming minor versions of Angular cause peer dependency warnings within Yarn or NPM.

Fixes #9328
2018-01-12 09:27:17 -08:00