This repo demonstrates the basic usage of Bazel with TypeScript.
Prerequisites: Node.js, Yarn
$ yarn install # install bazel & other dependencies
$ yarn build # build everything
$ yarn test # test everything
$ yarn start # run the app
- TypeScript for transpiling
- Rollup for bundling
- Terser for minifying
- Jest for testing
├── 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)