Miss any of our Open RFC calls?Watch the recordings here! »

shipit-submodule

1.0.0 • Public • Published

shipit-submodule

Install

npm install shipit-submodule --save-dev

Usage

To activate download of git submodules (recursively), enable submodules in shipit initial configuration:

submodules: true

Example shipitfile.js

module.exports = function (shipit) {
  require('shipit-deploy')(shipit);
 
  shipit.initConfig({
    default: {
      workspace: '/tmp/github-monitor',
      deployTo: '/tmp/deploy_to',
      repositoryUrl: 'https://github.com/user/repo.git',
      ignores: ['.git', 'node_modules'],
      keepReleases: 2,
      key: '/path/to/key',
      shallowClone: true,
 
      submodules: true // <---
 
    },
    staging: {
      servers: 'user@myserver.com'
    }
  });
};

It will download recursively all git submodules in repository.

TODO

  • Tests
  • More options

License

MIT License © David Pérez Terol

Install

npm i shipit-submodule

DownloadsWeekly Downloads

17

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar