Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

octopus-start-prepush

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

octopus-start-prepush

task for start that adds prepush git hooks

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

octopus-start-prepush

start-runner task that adds a git pre-push script that runs task sync on before git push.

install

npm install --save-dev octopus-start-prepush

Usage

Add task to modules.spec.js and another task sync that will be invoked before git push:

const Start = require('start'),
 prepush = require('octopus-start-prepush');

const start = new Start();

module.exports.init = () => start(prepush);
module.exports.sync = () => start(() => console.log('synced'));

Add start-simple-cli task to package.json scripts:

{
  "scripts": {
    "start": "start-runner"
  }
}

Run npm start init once to have hook installed and then on every next push npm start sync will be executed.

FAQs

Package last updated on 10 May 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