3.0.2 • Published 6 years ago
gaia-cli v3.0.2
gaia-cli
Development and deployment toolkit for gaia
Install
$ npm i gaia-cli -DUsage
Show gaia help
> gaiagaia.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
serverfield which is the second argument fornew gaia.Server(root, config) - A
portfield 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 --devoptions
- --dev whether start the server in dev mode. If
true, gaia cli will populate the env variables from .env file by usingdotenv
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/*.jsLicense
MIT