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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i shipit-better-cnpm

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

7.66 kB

Total Files

8

Last publish

Collaborators

  • meizikeai