1.0.7 • Published 5 years ago

webpack-package-manager v1.0.7

Weekly downloads
17
License
MIT
Repository
github
Last release
5 years ago

A webpack plugin can check package versions, combine package.json, auto update.

Install

npm i --save-dev webpack-package-manager

Start

const PackageUpdatePlugin = require('webpack-package-manager');
module.exports = {
    plugins:[new PackageUpdatePlugin()]
}

In command line when compiling, it wll show like:

Options

const PackageUpdatePlugin = require('webpack-package-manager');
new PackageUpdatePlugin({
    onlyShowAvailable: false,                   
    //whether show the packages that don't need to update, default is false
    autoUpdate:false,                           
    //whether automatically update the packages detected to update, default is false
    showReleaseTime:true,                       
    //whether show latest release time, default is true
    updateFrom:['<other path>/package.json']    
    //an array, the paths that other package.json files you want to combine, if set this options, 
    //the latest version showing will be the highest version among all files instead of npm latest
    //default is undefined
})

If you have issues or want to make some suggestions, welcome to contact me.

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago