Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-code-ahead-of-master

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-code-ahead-of-master

Check whether current branch code ahead of master before building

  • 0.3.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Check-code-ahead-of-master

Check whether current branch code ahead of master before building

Install

npm i check-code-ahead-of-master

Usage

Add a command before your building command in package.json, for example

scripts: {
  "build": "ccaom && webpack...",

The ccaom command does following things:

  1. if git has remote repository, the command will check remote origin/master branch otherwise will check local mater branch.

  2. if current branch is behind master, the command will throw an error and abort the process.

Licence

MIT

Keywords

FAQs

Package last updated on 04 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc