I"»

Compiling Lego component is built-in with no extra installation; pretty straighforward.

npx lego [-w] [source_path] [target_path]

Therefore npx lego would compile the source_path files or folder (recursively) into target_file_path js file using lego.min.js (from ./bricks to ./dist by default).

As mentioned before, when developing you probably want to watch for changes with the -w option: npx lego -w <source_path> <target_file_path>

:ET