diff --git a/Makefile b/Makefile index 22aa871..5d34710 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ -minify: +minify: real-minify test-minified + +real-minify: strftime.js rm -f strftime-min.js closure |strftime-min.js @@ -6,4 +8,8 @@ test: TZ=America/Vancouver node test/test.js TZ=CET node test/test.js -.PHONY: test +test-minified: + TZ=America/Vancouver node test/test.js ../strftime-min.js + TZ=CET node test/test.js ../strftime-min.js + +.PHONY: test test-minified diff --git a/test/test.js b/test/test.js index e9c118c..2aac49a 100755 --- a/test/test.js +++ b/test/test.js @@ -8,7 +8,8 @@ // - look for edge cases var assert = require('assert') - , lib = require('../strftime') + , libFilename = process.argv[2] || '../strftime.js' + , lib = require(libFilename) // Tue, 07 Jun 2011 18:51:45 GMT , Time = new Date(1307472705067)