right in your terminal
- Zero configuration
- Single-folder file browser
What and Why
Hopa is a command line tool that does the following:
- Reads the current directory and lets you choose a file.
- Runs the generated bundle via node and shows you the result.
- It also runs a watcher so changing the files will trigger new compilation.
npm i hopa -g
Go to the folder that contains your files and run
This will display a menu and you have to pick a file. You'll get transpilation, bundling, running and watching.
> hopa -i script.js -o bundle.js -m
script.js, transpiles it and bundle it to a new file called
bundle.js which is also minified. No watching in this case. It's a single-shot operation.
-o are optional. If the output is not specified Hopa creates a file with name
bundle.<your file>. Have in mind that this feature is experimental. I find that in some cases Hopa can't resolve properly modules and errors out.