UNPKG

720 BMarkdownView Raw
1# gobble-cli
2
3The command line interface for [Gobble](https://github.com/gobblejs/gobble), used for serving and building a project with a [gobblefile](https://github.com/gobblejs/gobble/wiki/How-to-write-a-gobblefile).
4
5
6## Installation
7
8```bash
9npm i -g gobble-cli
10```
11
12
13## Usage
14
15Start a server and watch for changes, using the `gobblefile.js` in the current folder (or one of its ancestors).
16
17```bash
18gobble
19```
20
21To use a specific port:
22
23```bash
24gobble --port 1337
25gobble -p 1337
26```
27
28Build the project to the `out` folder:
29
30```bash
31gobble build out
32```
33
34Set the `--force` flag to clear out the target folder if it exists and is not empty:
35
36```bash
37gobble build out --force
38gobble build out -f
39```
40
41
42## License
43
44MIT.