sailor-scripts
v0.8.2
Published
All scripts necessary for setup Sailor projects
Downloads
33
Readme
Scripts for Sailor
All scripts necessary for setup Sailor projects
Install
npm install sailor-scriptsUsage
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.
dirby default isprocess.cwd()optionscan be:name: name of the folder projectorganization: name of the organization (for git repository)repository: name of the git reposositorydescription: 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.
dirby default isprocess.cwd()optionscan be:name: name of the folder projectorganization: name of the organization (for git repository)repository: name of the git reposositorydescription: 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 isprocress.cwd()options: options to pass to sails core (like log level, node environment,...)
License
MIT © sailorjs
