# octopus-start-prepush

> task for start that adds prepush git hooks

Latest version **0.0.5** (published 2017-05-10) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install octopus-start-prepush
pnpm add octopus-start-prepush
yarn add octopus-start-prepush
bun add octopus-start-prepush
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-05-10 |
| First published | 2017-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Vilius Lukosius |
| Maintainers | viliusl |

## Links

- npm: https://www.npmjs.com/package/octopus-start-prepush
- Repository: https://github.com/wix/octopus
- Homepage: https://github.com/wix/octopus/start-prepush
- Issues: https://github.com/wix/octopus/issues
- npm.io page: https://npm.io/package/octopus-start-prepush

## Dependencies (1)

- [fs-extra](https://npm.io/package/fs-extra.md) 2.1.2

## Recent versions

- 0.0.5 (latest) — 2017-05-10
- 0.0.4 — 2017-05-08
- 0.0.3 — 2017-04-14
- 0.0.2 — 2017-04-14
- 0.0.1 — 2017-04-13

## README

# octopus-start-prepush

[start-runner](https://github.com/start-runner) task that adds a git pre-push script that runs task `sync` on before git push.

# install

```bash
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: 
```js
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:
```json
{
  "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.

---
_Source: https://npm.io/package/octopus-start-prepush · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
