🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

broccoli-version

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-version

Broccoli plugin for incrementing version numbers in .json files

0.1.1
Source
npm
Version published
Maintainers
1
Created
Source

Broccoli Version Plugin

Broccoli plugin for incrementing version numbers in bower.json and package.json files

Example

const BroccoliVersion = require('broccoli-version')

const versioned = new BroccoliVersion('app', {
    major: false,
    minor: false,
    patch: true,
    targets: {
        npm: true,
        bower: false
    }
})

module.exports = versioned

Installation

npm install broccoli-version --save-dev

Documentation

new BroccoliVersion(inputNodes, options)

  • inputNodes: An array of input nodes, or a string pointing to a folder.

  • options:

    • major, minor, patch: Boolean flags specifying what parts of the version number should be incremented.

    • targets: An object specifying what configuration files should be updated.

The returned outputNodes are a copy of the supplied inputNodes.

License

This project is distributed under the MIT license.

Keywords

broccoli-plugin

FAQs

Package last updated on 31 Jul 2016

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