sailor-scripts

0.8.2 • Public • Published
![](http://i.imgur.com/ekGsPNz.png)

Scripts for Sailor

Build Status Dependency status Dev Dependencies Status NPM Status Gittip

All scripts necessary for setup Sailor projects

Install

npm install sailor-scripts

Usage

scripts = require 'sailor-scripts'

API

.run(<command>, [callback])

Run a shell command without returning the output

.exec(<command>, [callback])

Exec a shell command and return the output or return a callback with the output.

.newBase([directory], [options], [callback])

Generate a new Sailor Base Proyect.

  • dir by default is process.cwd()
  • options can be:
    • name: name of the folder project
    • organization: name of the organization (for git repository)
    • repository: name of the git reposository
    • description: description for your project

By default the name and the repository is the same (testApp) and the organization is sailorjs

.newModule([directory], [options], [callback])

Generate a new Module for Sailor Base Proyect.

  • dir by default is process.cwd()
  • options can be:
    • name: name of the folder project
    • organization: name of the organization (for git repository)
    • repository: name of the git reposository
    • description: description for your project

By default the name and the repository is the same (testApp) and the organization is sailorjs

.link(<origin>, <destination>, [callback])

Create a symbolic link. User for linked a module with your base.

.writeModuleFile(<origin>, [baseName], [callback])

Use for write in the config/modules the name of your module. Necessary for load the module in the Sails core.

.clean(<directory>, [callback])

Clear a directory.

.lift([directory], [options], [callback])

Lift a project, like:

  • directory: path under start the server. by default is procress.cwd()
  • options: options to pass to sails core (like log level, node environment,...)

License

MIT © sailorjs

Readme

Keywords

Package Sidebar

Install

npm i sailor-scripts

Weekly Downloads

0

Version

0.8.2

License

MIT

Last publish

Collaborators

  • kikobeats