Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Command line tools/generators for Sik
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
templates
.gitignore
README.md
index.js
package.json

README.md

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 is lib/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 is lib/components.

  • -j, --javascript - mark the component to include js file named component-name.js

  • -s, --styles - mark the component to include styl file named component-name.styl

  • -t, --template - mark the component to include template file named component-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 is lib/pages.

  • -l, --locals - Comma delimited list for use in component.json locals section

Example

sik page -l some-dependency some-page

Generates:

   lib/pages/some-page
      -> some-page.js
      -> some-page.styl
      -> template.jade
Something went wrong with that request. Please try again.