gaia-cli

3.0.2 • Public • Published

Build Status Coverage

gaia-cli

Development and deployment toolkit for gaia

Install

$ npm i gaia-cli -D

Usage

Show gaia help

> gaia

gaia.config.js

gaia should locate in the repo's root directory should contains, and it defines the configurations used by gaia-cli

gaia.config.js contains:

  • A server field which is the second argument for new gaia.Server(root, config)
  • A port field which defines the port the server will listen to

Field server and field port are required by command gaia start

Commands

gaia start

Start the gaia server

gaia start
 
gaia start --dev

options

  • --dev whether start the server in dev mode. If true, gaia cli will populate the env variables from .env file by using dotenv

gaia test -- [test-command]

Start a dev server for the current project and then run the test command.

gaia test will handle the server starting and closing, so you need not to start a gaia server in test specs. Just create gaia clients in your test cases.

gaia test -- nyc ava test/*.js

License

MIT

/gaia-cli/

    Package Sidebar

    Install

    npm i gaia-cli

    Weekly Downloads

    1

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    14.9 kB

    Total Files

    17

    Last publish

    Collaborators

    • kael