A bumped plugin. Adds version to html files in meta tags on each bump.
<!doctype html>
<html lang="en">
<head>
<meta name="version" content="3.2.0" />
</head>
<body>...</body>
</html>
If version
meta tag exists in your html file bumped-html
will replace version with actual one. If not - version
meta tag will be added in html markup.
npm install -g bumped-html
Declare a plugin step in your .bumpedrc
like:
plugins:
postrelease:
'Setting version to html files':
plugin: bumped-html
files:
- src/index.html
Check out bumped repository for more detailed information how to setup/use bumped.
Note: This plugin should be called on postrelease
!
Check if meta tag exist (if not - add one);Validate filepath;Error handling;- Add tests.