Command Line Interface
yarn add --dev @elodin/cli
This package provides the CLI for Elodin with compilation commands.
It requires a valid Elodin configuration to run.
# Single buildelodin# Single build with cleanupelodin -c# Single build + build on every changeelodin -w# Single build with cleanup + build on every changeelodin -c -w# Build on every changeelodin -w -sib
The CLI comes with a set of configuration options.
One can also use run
for a quick overview of all the configuration options.
|./elodin.config.js||The relative path to your Elodin configuration.|
|Enables watch mode to automatically recompile on file changes.|
|Remove previously generated files before compilation. Helps to get rid of old files where the Elodin file has been removed.|
|Skips the initial build in watch mode.|
Only works with watch mode enabled.
Watch mode (using either
or the shorthand
flag) will automatically recompile all files on detected file changes.
This is very useful for development, where you want to apply changes immediately without having to compile manually again and again.