Permalink
Browse files

v0.1.3 - updated to isomorph 0.2

  • Loading branch information...
1 parent 21c9ebf commit be3733623c81f4a72bf8888a9fc696569f5797fe @insin committed Jun 29, 2012
Showing with 14 additions and 12 deletions.
  1. +6 −1 CHANGES.rst
  2. +6 −9 lib/buildumb.js
  3. +2 −2 package.json
View
@@ -1,4 +1,9 @@
-0.1.2 / 2012-02--04
+0.1.3 / 2012-06-29
+==================
+
+* Updated to isomorph 0.2
+
+0.1.2 / 2012-02-04
==================
* File sizes from the Closure Compiler API are now reported in KB
View
@@ -3,16 +3,13 @@ var fs = require('fs')
, util = require('util')
var request = require('request')
- , object = require('isomorph/lib/object')
+ , object = require('isomorph/object')
+ , format = require('isomorph/format')
function normjoin(path1, path2) {
return path.normalize(path.join(path1, path2))
}
-function kb(bytes) {
- return (bytes / 1024).toFixed(2) + 'KB'
-}
-
/**
* Reads a template string from the given path and formats it with any
* additional arguments given.
@@ -96,11 +93,11 @@ exports.build = function(config) {
if (!result.hasOwnProperty('errors')) {
console.log('statistics:')
console.log(' original size: %s (%s gzipped)',
- kb(result.statistics.originalSize),
- kb(result.statistics.originalGzipSize))
+ format.fileSize(result.statistics.originalSize),
+ format.fileSize(result.statistics.originalGzipSize))
console.log(' compressed size: %s (%s gzipped)',
- kb(result.statistics.compressedSize),
- kb(result.statistics.compressedGzipSize))
+ format.fileSize(result.statistics.compressedSize),
+ format.fileSize(result.statistics.compressedGzipSize))
console.log('compressed: %s', compressedOutputPath)
fs.writeFileSync(compressedOutputPath, config.header + result.compiledCode)
}
View
@@ -1,7 +1,7 @@
{
"name": "buildumb"
, "description": "Ultra-dumb exporter of Node.js modules for use in the browser"
-, "version": "0.1.2"
+, "version": "0.1.3"
, "author": "Jonathan Buchanan <jonathan.buchanan@gmail.com> (https://github.com/insin)"
, "tags": ["build", "export", "browser", "modules"]
, "main": "./lib/buildumb"
@@ -10,7 +10,7 @@
, "url": "http://github.com/insin/buildumb.git"
}
, "dependencies": {
- "isomorph": "0.1.x"
+ "isomorph": "0.2.x"
, "request": "2.9.x"
}
}

0 comments on commit be37336

Please sign in to comment.