TL;DR
git clone https://github.com/rsms/estrella.git
cd estrella
npm install
./build.js -gwRequirements:
- Posix system (i.e. macOS, Linux, Windows WSL or Cygwin) It might build fine in other environments. If you try and it works, please let me know.
- NodeJS version 10.10.0 or later (10.10.0 introduces mkdir -p, used in tests)
- Bash version 2 or later (for testing)
Files:
srccontains estrella source files.testcontains directories which each is one unit test.examplescontains directories of various example setups with estrella. These are also built as part of the test suite.distis the output directory of builds.mischouses scripts and dev tools. You can ignore this.
Testing:
- Run all tests with
./test/test.sh - Run one or more specific tests with
./test/test.sh test/watchdir examples/minimal
Notes:
- After cloning or pulling in changes from git, run
npm install. - Estrella builds itself:
./build.jsruns AND producesdist/estrella.js. - If you break
dist/estrella.js, justgit checkout dist/estrella.jsand run./build.jsagain. Alternativelynpm run build-rescuewhich uses vanilla esbuild. - Debug builds are built with
./build.js -gproducingdist/estrella.g.js.