sailor-scripts v0.8.2
Scripts for Sailor
All scripts necessary for setup Sailor projects
Install
npm install sailor-scriptsUsage
scripts = require 'sailor-scripts'API
.run(\, callback)
Run a shell command without returning the output
.exec(\, 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(\, \, callback)
Create a symbolic link. User for linked a module with your base.
.writeModuleFile(\, baseName, callback)
Use for write in the config/modules the name of your module. Necessary for load the module in the Sails core.
.clean(\, 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
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago