https://github.com/flolu/aspect-typescript
🌿 Minimal example of Bazel rules for TypeScript
https://github.com/flolu/aspect-typescript
bazel bazelisk docker kubernetes nodejs pnpm rules-docker rules-js rules-k8s rules-swc rules-ts typescript
Last synced: 3 months ago
JSON representation
🌿 Minimal example of Bazel rules for TypeScript
- Host: GitHub
- URL: https://github.com/flolu/aspect-typescript
- Owner: flolu
- Created: 2022-11-28T14:38:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T15:24:30.000Z (over 3 years ago)
- Last Synced: 2025-09-02T11:34:35.987Z (10 months ago)
- Topics: bazel, bazelisk, docker, kubernetes, nodejs, pnpm, rules-docker, rules-js, rules-k8s, rules-swc, rules-ts, typescript
- Language: Starlark
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🌿 aspect-typescript
Minimal example of Bazel rules for TypeScript
# Features
- Import internal dependencies with `@org/`
- Intellisense for VSCode
- Fast compilation with SWC
- Run tests with Jest
- Build Docker image from app
- Deploy app to Kubernetes cluster
- Run tests in GitHub Action
# Usage
**Requirements**
- Linux
- Node.js
- pnpm (`npm install -g pnpm`)
- Bazelisk (`npm install -g @bazel/bazelisk`)
- Buildifier (`npm install -g @bazel/buildifier`)
**Setup**
- `pnpm i` (Install Node dependencies)
**Commands**
- `bazel build //...` (Build everything)
- `bazel test //...` (Test everything)
- `bazel run //app:bin` (Run app)
- `bazel run //app:image` (Build docker image)
- `docker run --rm -it -p 3000:3000 bazel/app:image` (Run docker image)
- `bazel run //:kubernetes.apply` (Deploy app to Kubernetes cluster)