Skip to content

Bert0324/webpack-package-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

It is an interesting tiny tool to see whether your packages is outdated, or combine several package.json together. Let's start!

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. It is so kind if you can give a star ⭐!

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published