sik-tools v0.0.1
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 userGenerates:
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-componentGenerates:
   lib/components/some-component
      -> some-component.js
      -> some-component.styl
      -> template.jadepage < 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.jsonlocals section
Example
sik page -l some-dependency some-pageGenerates:
   lib/pages/some-page
      -> some-page.js
      -> some-page.styl
      -> template.jade12 years ago