Permalink
Browse files

Bit of a general tidy up - moved the version into

one place.
  • Loading branch information...
1 parent 59f1917 commit 5e946112bbc07b07ea894b4ab0707a09371eb611 @d0ugal d0ugal committed Apr 9, 2012
Showing with 25 additions and 3 deletions.
  1. +3 −1 AUTHORS
  2. +19 −0 Makefile
  3. +2 −2 locache.js
  4. +1 −0 version.txt
View
4 AUTHORS
@@ -1 +1,3 @@
-Dougal Matthews
+Dougal Matthews
+
+And https://github.com/d0ugal/locache/contributors
View
19 Makefile
@@ -0,0 +1,19 @@
+.PHONY : clean build-min docs
+
+VERSION = $(shell cat version.txt)
+
+build: | clean build-min docs
+
+build-min:
+ @echo "Creating minified version."
+ @mkdir -p ./build
+ @echo "Marking version ${VERSION}"
+ @cat locache.js | sed 's/VERSION-PLACEHOLDER/${VERSION}/' > ./build/locache.js
+ @jsmin < ./build/locache.js > ./build/locache.min.js
+
+docs:
+ @echo "Creating docs"
+ @docco ./build/locache.js
+
+clean:
+ @rm -rf ./build
View
4 locache.js
@@ -1,6 +1,6 @@
/*jshint asi:true */
-// locache 0.1.0
+// locache VERSION-PLACEHOLDER
//
// (c) 2012 Dougal Matthews
// locache may be freely distributed under the MIT licence.
@@ -29,7 +29,7 @@
// Current version of locache. Keep this in sync with the version
// at the top of this file.
- locache.VERSION = "0.1.0"
+ locache.VERSION = "VERSION-PLACEHOLDER"
// Boolean value that determines if they browser supports localStorage or
// not. This is based on the Modernizr implementation that can be found
View
1 version.txt
@@ -0,0 +1 @@
+0.2.0pre

0 comments on commit 5e94611

Please sign in to comment.