Skip to content
 
 

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of building an Angular app with Bazel

This is in Alpha and depends on un-released version of Angular. There may be breaking changes.

Installation

Mac: brew install bazel

Other platforms, see Bazel installation instructions.

Try it

$ bazel run @yarn//:yarn
$ bazel build src

Note: there is a "watch mode" for Bazel available at https://github.com/bazelbuild/bazel-watcher

Notes:

  • we use bazel to run yarn simply to be sure we get the same versions of Node and Yarn as CI and co-workers (hermeticity FTW)
  • a postinstall task in the package.json prepares the node_modules directory by running the Angular compiler on third_party libraries (such as Angular itself) since these do not ship with generated code (eg. ngfactorys)

About

Demo of building angular with bazel

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages