sik-tools
v0.0.1
Published
Command line generators for Sik
Downloads
3
Readme
Sik-Tools
Command line tools/generators for sik
Commands
api < name >
Generates an express-based sik API at lib/api/name-api.js
.
Options
-d, --dir
- set the target directory for the api. By default this islib/api
.-m, --models
- Auto import models into the API.
Example
sik api users -m user
Generates:
lib/api/users-api.js
var User = require('user-model');
var app = module.exports = require('sik')();
app.get('/api/...', function(req, res, next) {
});
component < name >
Generates a angular component.
Options
-d, --dir
- set the target directory for the component. By default this islib/components
.-j, --javascript
- mark the component to include js file namedcomponent-name.js
-s, --styles
- mark the component to include styl file namedcomponent-name.styl
-t, --template
- mark the component to include template file namedcomponent-name.jade
Example
sik component -jsp -l some-dependency some-component
Generates:
lib/components/some-component
-> some-component.js
-> some-component.styl
-> template.jade
page < name >
Generates a local page with a angular page template and adds it to the local section of component.json
Options
-d, --dir
- set the target directory for the component. By default this islib/pages
.-l, --locals
- Comma delimited list for use incomponent.json
locals section
Example
sik page -l some-dependency some-page
Generates:
lib/pages/some-page
-> some-page.js
-> some-page.styl
-> template.jade