Skip to content

lokshunhung/bazel-ts-monorepo

Repository files navigation

bazel-ts-monorepo

This repo demonstrates the basic usage of Bazel with TypeScript.

Getting started

Prerequisites: Node.js, Yarn

$ yarn install  # install bazel & other dependencies
$ yarn build    # build everything
$ yarn test     # test everything
$ yarn start    # run the app

Libraries used

Project structure

├── pkgs/
│   ├── app/
│   │       (Console application, depends on `common`)
│   └── common/
│           (Utility library)
├── tools/
│           (Starlark marcros, config files for tools)
├── package.json
│           (Nodejs manifest file, list project & build tool dependencies)
└── WORKSPACE.bazel
            (Bazel workspace file)