semver-webpack-plugin
A webpack plugic to do semver
Features
- Bump up
version
using functionsemver.inc
fields in json files, ex:package.json
,bower.json
- Support command line
arguments
orconfig
- Enable/disable by
arguments
- More comming...
Dependencies
These dependencies should be installed via npm
semver
latestcommand-line-args
latest
Installation
npm install semver-webpack-plugin --save-dev
Webpack example
- webpack.config.js
var SemverWebpackPlugin = ;moduleexports =plugins:files: path
- Gruntfile.js
grunt;
- package.json
Usage
Webpack config
options
options
properties:
files
: list of input files, should are absolute pathsincArgs
:arguments
will be passed to functionsemver.inc()
, see node-semverindent
: number of spaces in indentation
Arguments
--semver-webpack-plugin-inc-args
arguments passed to functionsemver.inc
(incsv
format), ex:webpack --semver-webpack-plugin-inc-args=prelease,beta
--semver-webpack-plugin-disable
this is useful tobumpup
version in sometime, see example section above for more infotrue
then the Plugin will not run- Default is
false