Commit Graph

11 Commits

Author SHA1 Message Date
Paul Gschwendtner f6d4acb44a build: update angular to 8.0.1 2019-06-21 09:34:21 -07:00
Paul Gschwendtner 8ba2f2259a build: add linting for bazel build files (#16090) 2019-06-03 11:19:45 -07:00
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
Paul Gschwendtner 31f753a360 build: re-enable all temporary disabled e2e tests (#15623)
Updates all Angular packages expect "@angular/compiler-cli" to
the latest beta version. This allows us to pick up recent Bazel fixes
which allow us to fully re-enable all e2e tests. Additionally we can
now update to the latest `rules_nodejs` version that switched from
`rollup` to `terser`.

Additionally since we updated `@angular/bazel@8.0.0-beta.6`, we
can take advantage of https://github.com/angular/angular/commit/105cfaf
and move forward with using the Bazel `ng_package` output for the NPM
release output.

Also removes unused source-map-support dependency. The NodeJS rule now transitively bring in the `source-map-support` dependency and therefore we don't need to add it to various Bazel targets.

Also specifying the `jasmine` attribute is currently not working as it breaks
the runfile dependency of `@npm//@bazel/jasmine`. `@bazel/jasmine`
transitively brings its own version of `jasmine`.

Explicitly passes required runfiles in nodejs_binary

Fixes #15614
2019-03-27 09:19:59 -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
Jeremy Elbourn 5fb022f2b3 chore: update master to angular version 8 beta (#15392)
This allows us to cherry-pick @kara's static query updates from the
`ivy-2019` branch.

This change includes:
* Adding missing dependencies for various Angular subpackages
* Add umd assets where they are now necessary
* Configure bazel to target ES5 output as a workaround for https://github.com/angular/angular/issues/29107
* Updates most npm dependencies to the @npm// workspace
* Updates general workspace setup, RBE config, ngcontainer
* Update to rxjs 6.4.0 (building from source no longer needed)
* Added rxjs_shims for ts_web_test and ts_devserver targets
* Removed index.bzl and angular_material_setup_workspace (not needed anymore since material won't be built from source)
* Use browser_repositories() from @npm_bazel_karma which have pinned browsers that work on all platforms
* Change dgeni processor functions from arrow function to `function` to
work around `@npm//di` not supporting arrow functions

Co-authored-by: Greg Magolan <gmagolan@gmail.com>
2019-03-06 15:16:47 -08: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 2a9e132e4f build: switch away missing deps from @npm namespace (#13949) 2018-11-02 15:29:33 -07: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