Awesome
gobble-cli
The command line interface for Gobble, used for serving and building a project with a gobblefile.
Installation
npm i -g gobble-cli
Usage
Serving a project
This will start a server and watch for changes, using the gobblefile.js
in the current folder (or one of its ancestors).
# you could also do `gobble serve` - it's the same thing
gobble
To use a specific port:
gobble --port 1337
gobble -p 1337
Building a project
To build the project to the out
folder:
gobble build out
Set the --force
flag to clear out the target folder if it exists and is not empty:
gobble build out --force
gobble build out -f
Build to a specific folder, and watch for changes
Like gobble build
, except that the build will be updated whenever the source files change.
gobble watch out
License
MIT.