Commit Graph

6 Commits

Author SHA1 Message Date
Paul Gschwendtner dc859fea2a build: remove example-module from gitignore
In order to work around an Angular Bazel bug where genfiles aren't
properly picked up in the `ng_module` metadata bundler, we need to
check-in the example module into the source-file and use the
example-module as a real source instead of generating it dynamically
through a genfile. This allows us to temporarily fix the examples package
until the bug (https://github.com/angular/angular/issues/30259) is fixed.
2019-05-16 13:20:41 -07:00
Kristiyan Kostadinov c2f3d4817c build: throw error if example is missing a title (#15430)
Throws a proper error message if one of the examples is missing a title, in order to avoid a more cryptic error down the line.
2019-03-11 10:41:08 -07:00
Paul Gschwendtner 42681ee254 build: pretty print example module (#14264)
* In order to debug the example data for the tests on `material.angular.io`, I had to look into the `example-module.ts` output, but it was nearly impossible to read because we don't pretty print the auto-generated code.
2018-11-26 17:07:36 -08:00
Kristiyan Kostadinov 06fb4087bc build: example list outputting quoted components (#13955)
In c64503e0bf the logic that outputs the list of components was reworked to use `JSON.stringify`. As a result, the data that is generated has the `component` inside quotes, rather than a reference to the component class itself. This breaks the demo app. The following changes add some extra logic to remove the quotes around the `component`.
2018-11-09 16:09:56 -08:00
Joey Perrott d0d97c3e37 fix: reference symbols for example components rather than providing a string of the component name (#13992) 2018-11-05 11:01:41 -08:00
Paul Gschwendtner c64503e0bf build: build material-examples with bazel (#13932)
This includes a `genrule` to create the generated `ExampleModule`
2018-11-02 14:38:34 -07:00