Skip to content

Commit

Permalink
Add version number in the CSS file
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
sindresorhus committed Jun 12, 2019
1 parent c7b6afc commit c1d65e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modern-normalize.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! modern-normalize | MIT License | https://github.com/sindresorhus/modern-normalize */
/*! modern-normalize v0.5.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/* Document
========================================================================== */
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"node": ">=6"
},
"scripts": {
"test": "stylelint modern-normalize.css"
"test": "stylelint modern-normalize.css",
"version": "replace-in-files --regex='v\\d+\\.\\d+\\.\\d+' --replacement=v$npm_package_version modern-normalize.css && git add ."
},
"files": [
"modern-normalize.css"
Expand All @@ -28,6 +29,7 @@
"style"
],
"devDependencies": {
"replace-in-files-cli": "^0.1.0",
"stylelint": "^9.3.0",
"stylelint-config-xo": "^0.9.0"
},
Expand Down

0 comments on commit c1d65e3

Please sign in to comment.