Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

flolu/aspect-typescript

Repository files navigation

🌿 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)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /