1 | # gobble-cli
|
2 |
|
3 | The 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
|
9 | npm i -g gobble-cli
|
10 | ```
|
11 |
|
12 |
|
13 | ## Usage
|
14 |
|
15 | Start a server and watch for changes, using the `gobblefile.js` in the current folder (or one of its ancestors).
|
16 |
|
17 | ```bash
|
18 | gobble
|
19 | ```
|
20 |
|
21 | To use a specific port:
|
22 |
|
23 | ```bash
|
24 | gobble --port 1337
|
25 | gobble -p 1337
|
26 | ```
|
27 |
|
28 | Build the project to the `out` folder:
|
29 |
|
30 | ```bash
|
31 | gobble build out
|
32 | ```
|
33 |
|
34 | Set the `--force` flag to clear out the target folder if it exists and is not empty:
|
35 |
|
36 | ```bash
|
37 | gobble build out --force
|
38 | gobble build out -f
|
39 | ```
|
40 |
|
41 |
|
42 | ## License
|
43 |
|
44 | MIT.
|