       fs.writeFileSync args.dir, "module.exports.plugins = [" + JSON.stringify(args.src) + "]"
 
     args.done?()
-
-
-
-  ###
-   * Generate a new base proyect
-   * @param  {String}   name         Optional name
-   * @param  {String}   organization Optional organization
-   * @param  {String}   repository   Optional repository
-   * @param  {String}   dir          Optional path
-   * @param  {Function} done         Optional Callback
-  ###
-  @newBase: (name, organization, repository, dir, options, done) =>
-    args = Args([
-      {name         : Args.STRING   | Args.Optional, _default: DEFAULT.NAME}
-      {organization : Args.STRING   | Args.Optional, _default: DEFAULT.ORGANIZATION}
-      {repository   : Args.STRING   | Args.Optional, _default: name}
-      {dir          : Args.STRING   | Args.Optional, _default: "#{process.cwd()}"}
-      {done         : Args.FUNCTION | Args.Optional, _default: undefined}
-    ], arguments)
-
-    SCOPE.APP    = "#{args.dir}/#{args.name}"
-    wrench.copyDirSyncRecursive TEMPLATE.BASE, SCOPE.APP, forceDelete: true
-
-    options =
-      name         : args.name
-      organization : args.organization
-      repository   : args.repository
-
-    @_copyTemplate template, options for template in TEMPLATE.FILES
-
-    appJSON  = require("#{SCOPE.APP}/package.json")
-    delete appJSON.dependencies?.sailorjs
-
-    SCOPE.SAILS  = @_resolvePath 'sails'
-    SCOPE.SAILOR = @_resolvePath 'sailor'
-
-    # search the dependency in sails or sailor and linkin in the folder of the project
-    @_copyDependencies(appJSON, args.done)
-
-
-  ###
-   * Generate a new module for a proyect
-   * @param  {String}   name name
-   * @param  {String}   dir  Optional path
-   * @param  {Function} done Optional Callback
-  ###
-  @newModule: (name, organization, repository, dir, done) =>
-    args = Args([
-      {name         : Args.STRING   | Args.Optional, _default: DEFAULT.NAME}
-      {organization : Args.STRING   | Args.Optional, _default: DEFAULT.ORGANIZATION}
-      {repository   : Args.STRING   | Args.Optional, _default: name}
-      {dir          : Args.STRING   | Args.Optional, _default: "#{process.cwd()}"}
-      {done         : Args.FUNCTION | Args.Optional, _default: undefined}
-    ], arguments)
-
-    SCOPE.APP    = "#{args.dir}/#{args.name}"
-    wrench.copyDirSyncRecursive TEMPLATE.MODULE, SCOPE.APP, forceDelete: true
-
-    options =
-      name         : args.name
-      organization : args.organization
-      repository   : args.repository
-
-    @_copyTemplate template, options for template in TEMPLATE.FILES
-
-    appJSON  = require("#{SCOPE.APP}/package.json")
-    delete appJSON.dependencies?.sailorjs
-
-    SCOPE.SAILS  = @_resolvePath 'sails'
-    SCOPE.SAILOR = @_resolvePath 'sailor'
-
-    # search the dependency in sails or sailor and linkin in the folder of the project
-    @_copyDependencies(appJSON, args.done)
 
 
 


      catch e
        console.log "#{chalk.blue('info')}   : Dependency '#{moduleName}' doesn't found. Installing..."
        @run "cd #{app_node} && npm install #{moduleName}"

    # Finally link sailor
    sailorLocal = path.resolve(SCOPE.APP, 'node_modules', 'sailorjs')

  SAILOR : null
  APP    : null

OPTIONS =
  NAME         : 'testApp'
  ORGANIZATION : 'sailorjs'
  REPOSITORY   : 'testApp'

TEMPLATE =
  BASE  : path.join(__dirname, '../template/base')
