update-to-yourweb
v0.0.8
Published
Automatically detect and update online projects
Downloads
3
Readme
update-to-yourweb
Description
Version update plugin for website
Installation
npm i -S update-to-yourweb
Instructions
import UpdateToYourweb from 'update-to-yourweb';
new UpdateToYourweb({
looptime: 10000, // 10 second loop
text: 'find the version to update...', // alert text optional
filename: 'version.static.json', // version code filename
});
version.static.json
{
"versionCode": "0.0.0.3"
}
Contribution
- Need to add a version file, and it is in json format
- Version files can be accessed directly
- filename can be a relative path
- You need to update the code after packaging to test it
- 版本号支持任意位数,但不支持修改该字段名称