New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

git-module

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-module

Package which emulates git sub modules

latest
Source
npmnpm
Version
0.0.8
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source

Package to emulate git sub modules

Installation

sudo npm install -g git-module

Usage

Prepare

Extend your package.json for the following root entry:


"modules": [
 {
   "name": "server-template",
   "options": {
     "repository": "https://github.com/gbaumgart/xcf-servers.git",
     "recursive": true,
     "directory": "server-template",
     "profile":"control-freak"
   },
   "clone": {
     "post": {
       "command": "git submodule foreach \"git checkout master\""
     }
   }
 }
]

Commands

  • init-modules (clones modules into target folders, specified as above)
  • update-modules (updates modules via git pull)
  • commit-modules (commits and pushes modules via git commit and git push)
  • each-module (runs a shell command in each module)

Default command options:

target

This option allows you to change target directory for all modules:

git-module init-modules --target="./test"

profile

This option allows you to filter modules against "profile". Extend your module definition as seen above in the example package.json.

git-module init-modules --target="./test" --profile="control-freak"

Command init-modules

Install git modules as specified in the package.json

git-module init-modules

This will clone https://github.com/gbaumgart/xcf-servers.git in ./server-template and also checks out sub modules.

This will only process modules which have a "profile" set to "control-freak"

FAQs

Package last updated on 27 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts