shipit-better-cnpm

0.0.4 • Public • Published

shipit-better-cnpm

Fork from bluedapp/shipit-cnpm

cnpm tasks for shipit

Install

npm i -D shipit-better-cnpm

How to use

var cnpm = require('shipit-better-cnpm')
var deploy = require('shipit-better-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: {
        compare: true,
        flags: '--production',
        local: false,
        npm: 'cnpm',
        remote: true
      }
    },
    production: {
      servers: ['work@10.x.x.x']
    },
    dev: {
      servers: ['work@10.x.x.x']
    }
  })
}

Tips

If you have used shipit-cnpm before, you need run npm install in the deploy:publish. now, only package.json file different.

/shipit-better-cnpm/

    Package Sidebar

    Install

    npm i shipit-better-cnpm

    Weekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    7.66 kB

    Total Files

    8

    Last publish

    Collaborators

    • meizikeai