The command line interface for Gobble, used for serving and building a project with a gobblefile.
npm i -g gobble-cli
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
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
Like gobble build
, except that the build will be updated whenever the source files change.
gobble watch out
MIT.