1.0.2 • Published 4 years ago

hemera-generator v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

hemera-generator

Command line tools for Hemera. Generate, write and run an application with one single command!

Install

npm install hemera-generator --global

Usage

hemera-generator offers a single command line interface for your hemera project:

$ hemera

Will print an help:

Hemera command line interface, available commands are:

  * generate      generate a new project
  * plugin        generate a new plugin
  * version       the current hemera-generator version
  * help          help about commands

Launch 'hemera help [command]' to know more about the commands.

generate

hemera-generator can also help with generating some project of your next hemera application. To use it:

  1. hemera generate <yourapp>
  2. cd yourapp
  3. npm install

The sample code offers you four npm tasks:

  • npm start - starts the application
  • npm test - runs the tests

You will find three different folders:

  • plugins: the folder where you will place all your custom plugins
  • services: the folder where you will declare all your endpoints
  • test: the folder where you will declare all your test

Finally there will be an app.js file, which is your entry point.

plugin

Create a basic plugin.

$ hemera plugin <folder>/<name>
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago