1.0.0 • Published 10 years ago
generator-elasticio v1.0.0
generator-elasticio

elastic.io component generator
Installation
First, install Yeoman and generator-elasticio using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-elasticioThen generate your new project:
yo elasticioUsage
yo elasticioNote that this template will generate create a new directory in your current directory, so no files will be overwritten or modified.
This will generate a new Node project with following content:
- Filled
package.jsonfile as part of your NPM module .gitignorewith defaults for node.js projectcomponent.jsonfile with basic structure and simple credentialsREADME.mdwill give you some inspirationlogo.pngthat will be randomly generated- Travis CI continuous integration (optional)
- License
After that you can just go to the newly generated directory, add it to git and push it to elastic.io (don't forget to create a repo on elastic.io before)
cd my-api-component
git init .
git add *
git commit -a -m 'Initial import'
git remote add elasticio team@git.elastic.io:repository-name.git
git push elasticio masterSubgenerators
Component Action
You can easily scaffold necessary files for a component's action, just use following command inside the component's directory
yo elasticio:actionLicense
Apache-2.0 © elastic.io GmbH
1.0.0
10 years ago