Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add versioning to files

  • Loading branch information...
commit 23a11bfead808a6fe97aaad9efe6c496226fd9a9 1 parent f73da20
Casey O'Hara authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Makefile
View
4 Makefile
@@ -1,3 +1,5 @@
+VERSION=`grep 'version' package.json | cut -d '"' -f 4`
+
package:
npm test
mkdir -p build
@@ -5,3 +7,5 @@ package:
cp src/retina.less build/retina.less
cp src/retina.js build/retina.js
uglifyjs build/retina.js > build/retina.min.js
+ mv build/retina.js build/retina.$(VERSION).js
+ mv build/retina.min.js build/retina.$(VERSION).min.js
Please sign in to comment.
Something went wrong with that request. Please try again.