0.2.0 • Published 10 years ago
generator-exoservice-livescript v0.2.0
LiveScript Exoservice Generator 
Generates an Exosphere service written in LiveScript
Installation
(assuming you already have Node.js and LiveScript installed)
npm install -g yo generator-exoservice-livescript- add
./binto your$PATH.
Usage
To generate a new micro-service:
yoThe generator will ask you for all information. Choose Exoservice Livescript from the menu that appears. You can also provide all the information on the command line:
yo exoservice-livescript [<service-name>] [<application-name>]Development
- this is a Yeoman generator
- the business logic is in src/app/index.ls, which gets compiled into generators/app/index.js
- the tests are in features and are run with
spec - run
buildafter you make changes to the source code for them to reflect in the tests and the NPM package - run
watchduring development for automatic building - to update dependencies, run
update
Running the generator locally
- in the folder of your generator sourc code (i.e. this folder), run
npm link - this installs a copy of the current source code as a global NPM module
- run
yoto run the generator - each time you make changes to the source you have to run
npm link
Deployment
- update the dependencies:
update - bump the version:
npm version (patch|minor|major) - release the module:
npm publish