Socket
Socket
Sign inDemoInstall

grunt-branches

Package Overview
Dependencies
108
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-branches

Run specified task against all remote branches of a git submodule


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

grunt-branches

Run specified task against all remote branches of a git submodule.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-branches --save-dev

Then add this line to your project's Gruntfile.coffee:

grunt.loadNpmTasks 'grunt-branches'

Documentation

grunt.initConfig

  # ... other configs

  branches:
    foo:
      path: 'ext/foo'
      options:
        match: '^release/' # Only run task against branches that match this reg exp

  # ... other configs

To run the task 'b' on all remote branches of the submodule 'foo' run: grunt branches:foo:b

Or register a shortcut:

grunt.registerTask 'buildall', ['branches:foo:b']

Events

The following events are emitted and can be subscribed to using grunt.emit.on

  • branches.checkedout - params: branch, path
  • branches.commitinfo - params: branch, hash, path
  • branches.taskqueued - params: branch, path

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

License

Copyright (c) 2014, Derek Petersen

Licensed under the MIT license.

Keywords

FAQs

Last updated on 23 Feb 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc