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

semver-extended-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semver-extended-webpack-plugin

Semver webpack plugin, see http://semver.org

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

semver-extended-webpack-plugin

A webpack plugic to do semver

Archives

Features

  • Bump up version using function semver.inc fields in json files, ex: package.json, bower.json
  • Support command line arguments or config
  • Enable/disable by arguments
  • Console update (see options)
  • Add buildDate (see options)

Installation

npm install semver-extended-webpack-plugin --save-dev

Webpack example

  • webpack.config.js
var SemverWebpackPlugin = require('semver-extended-webpack-plugin');

module.exports = {
  plugins: [
      new SemverWebpackPlugin({
        files: [path.resolve(__dirname, 'package.json')],
        incArgs: ['patch'],
        console: true,
        buildDate: true,
        version: '1.8'  // optional if you want to set the desired version
      })
    ]
}

Usage

Webpack config

new SemverWebpackPlugin({options})
OptionsProperties
fileslist of input files, should are absolute paths
incArgsarguments will be passed to function semver.inc(), see node-semver
consoleshow console output of version update (default: false)
buildDateadd buildDate key to package.json (default: false)
versionset version to a specific version (default: null)

Arguments

  • --semver-extended-webpack-plugin-inc-args arguments passed to function semver.inc (in csv format), ex: webpack --semver-extended-webpack-plugin-inc-args=prelease,beta
  • --semver-extended-webpack-plugin-disable this is useful to bumpup version in sometime, see example section above for more info
    • true then the Plugin will not run
    • Default is false

License

http://www.opensource.org/licenses/mit-license.php

Credits

semver-extended-webpack-plugin written by Mike Erickson

E-Mail: codedungeon@gmail.com

Twitter: @codedungeon

Website: codedungeon.org

Additional Attribution:

semver-webpack-plugin

Keywords

FAQs

Package last updated on 04 Jun 2017

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