Estrella Build Tool

1.4.1 · active · verified Tue Apr 21

Estrella is a versatile and lightweight build tool leveraging the speed of esbuild for TypeScript and JavaScript projects. It distinguishes itself by eschewing traditional configuration files in favor of a user-defined JavaScript or TypeScript build script, providing full programmatic control over the build process. Key features include automatic rebuilds on file changes, parallel project building, and integrated TypeScript diagnostics which can be optionally enabled and customized, allowing remapping of diagnostic severity levels. The current stable version is 1.4.1, with releases occurring periodically to incorporate esbuild updates and introduce new features or fixes. Its minimal dependency footprint (primarily esbuild itself) and single-file design contribute to its fast startup times, aiming to retain esbuild's blazing performance.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to set up a basic build script using Estrella to compile a TypeScript entry point, bundle it, output it to a specified file, and explicitly enable TypeScript diagnostics.

#!/usr/bin/env node
const { build } = require("estrella")

// A basic build script compiling a TypeScript entry point
// and bundling it to a specified output file.
// TypeScript diagnostics are explicitly enabled.
build({
  entry: "src/main.ts",
  outfile: "out/foo.js",
  bundle: true,
  // Pass any options to esbuild here, e.g., minify, sourcemap, platform.
  // This also explicitly enables TypeScript diagnostics during the build.
  tsc: true
})

// To run this script: chmod +x build.js && ./build.js -watch

view raw JSON →