Detalhes do pacote

gobble-cli

gobblejs369MIT0.8.0

Command line interface for gobble

gobble

readme (leia-me)

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.

changelog (log de mudanças)

changelog

0.8.0

  • Switch back to chokidar. Argh

0.7.0

  • Switch to pathwatcher
  • Show port number on each build completion, if serving
  • Update dependencies

0.6.0

  • Gracefulify fs, to avoid issues on Windows (#15)
  • Update dependencies

0.5.0

  • Update to latest chokidar

0.4.4

  • Don't mind me...

0.4.3

  • More reliable error logging on Windows (#17))

0.4.2

  • Handle sourcemap events (from gobble 0.10.0 and later)

0.4.1

  • Fix logging bug with small terminals (#13))

0.4.0

  • Expect locally-installed gobble version to be 0.9.0 or greater
  • Squelch duplicate messages
  • Respect terminal width better when printing messages
  • gobble --help now includes gobble watch
  • Very long messages are truncated
  • Display inputdir and outputdir for easier debugging, if these are provided in error messages
  • Prevent builds from hanging (regression with gobble 0.9.0)

0.3.5

  • Helpful error on missing build definition
  • Neater terminal messages
  • If gobble build fails, it does so with a non-zero error code
  • Current command (i.e. serve, build or watch) is added to environment as GOBBLE_COMMAND

Thanks to evs-chris for these additions

0.3.4

  • Include sorcery as a dependency in package.json

0.3.3

  • Environment defaults to 'development' for gobble/gobble watch, 'production' for gobble build

0.3.2

  • Fixes broken plugin auto-installation

0.3.1

  • gobble-cli will attempt to print code that causes transformations to fail (e.g. syntax errors), and will trace back to the original file if sourcemaps are present (requires gobble 0.7.1 to be installed locally)

0.3.0

  • BREAKING - requires gobble 0.7.0 or higher. Tasks should emit info events with message codes, rather than strings.
  • gobble watch <dir> writes the project to <dir> and updates it on file change
  • More readable console output

0.2.11

  • Add gobble --help command
  • Fix error handling in bad builds

0.2.10

  • Started maintaining a changelog