Skip to content

bluedapp/shipit-cnpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shipit-cnpm

cnpm tasks for Shipit

support flags

Usage

var cnpm = require('shipit-cnpm');
var deploy = require('shipit-deploy');
module.exports = function(shipit) {
  deploy(shipit);
  cnpm(shipit);
  shipit.initConfig({
    default: {
      workspace: '/tmp/deploy/cnpm-test',
      deployTo: '/home/work/cnpm-test',
      repositoryUrl: 'https://xx.git',
      ignores: ['.git'],
      keepReleases: 2,
      deleteOnRollback: false,
      shallowClone: true,
      cnpm: {
        flags: '--production'
      }
    },
    production: {
      servers: ['[email protected]']
    },
    dev: {
      servers: ['[email protected]']
    }
  });
}

Releases

No releases published

Packages

No packages published