Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bert0324/webpack-package-manager
A webpack plugin can check package versions, combine package.json, auto update. :blue_car: :car:
https://github.com/bert0324/webpack-package-manager
javascript webpack
Last synced: 2 months ago
JSON representation
A webpack plugin can check package versions, combine package.json, auto update. :blue_car: :car:
- Host: GitHub
- URL: https://github.com/bert0324/webpack-package-manager
- Owner: Bert0324
- License: mit
- Created: 2019-07-12T17:44:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T00:29:59.000Z (over 5 years ago)
- Last Synced: 2024-04-28T12:02:24.468Z (9 months ago)
- Topics: javascript, webpack
- Language: JavaScript
- Homepage:
- Size: 447 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```JavaScript
const PackageUpdatePlugin = require('webpack-package-manager');
module.exports = {
plugins:[new PackageUpdatePlugin()]
}
```
In command line when compiling, it wll show like:## Options
```JavaScript
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:['/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 :star:!