![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
broccoli-version
Advanced tools
Broccoli plugin for incrementing version numbers in bower.json and package.json files
const BroccoliVersion = require('broccoli-version')
const versioned = new BroccoliVersion('app', {
major: false,
minor: false,
patch: true,
meta: (options) => {
if(!options.major && !options.minor && !options.patch) {
return options.meta += 1
} else {
return 0
}
}
targets: {
npm: true,
bower: false
}
})
module.exports = versioned
const BroccoliVersion = require('broccoli-version')
const versioned = new BroccoliVersion('app', {
meta: (options) => {
let builds = 0
const now = new Date()
const string = [now.getFullYear(), now.getMonth() + 1, now.getDay()].join('')
if (options.meta && options.meta.indexOf(string) > -1) {
builds = parseInt(options.meta.split('-')[1])
}
return [string, ++builds].join('-')
},
targets: {
npm: true,
bower: false
}
})
module.exports = versioned
npm install broccoli-version --save-dev
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.
meta
: An optional function returning additional build metadata. The function is called with the three boolean flags mentioned above plus the current value of the build meta data or null. Build meta data is appended to the version with a leading '+'.
targets
: An object specifying what configuration files should be updated. Needs at least npm set to true.
The returned output node contains umodified copies of all files and subfolders of the input nodes.
This project is distributed under the MIT license.
FAQs
Broccoli plugin for incrementing version numbers in .json files
The npm package broccoli-version receives a total of 0 weekly downloads. As such, broccoli-version popularity was classified as not popular.
We found that broccoli-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.