shipit-cnpm

0.7.0 • Public • Published

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: ['work@10.x.x.x']
    },
    dev: {
      servers: ['work@10.x.x.x']
    }
  });
}

Package Sidebar

Install

npm i shipit-cnpm

Weekly Downloads

1

Version

0.7.0

License

MIT

Last publish

Collaborators

  • mdemo