Skip to content

Commit

Permalink
Push to version 3.2.1
Browse files Browse the repository at this point in the history
Commander is now an optional dependency
Moved smart.json to /meteor to (hopefully) isolate Meteor smart package
  • Loading branch information
bminer committed Apr 8, 2013
1 parent 1ea24e7 commit 1614b22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions bin/blade
Expand Up @@ -3,7 +3,15 @@
var fs = require('fs'),
path = require('path'),
blade = require('../'),
program;

try {
program = require('commander');
} catch(e) {
console.error("Error: `commander` package is required to run the command-line utility." +
"\nPlease run `npm install commander` to fix this problem.");
process.exit(1);
}
if(!fs.existsSync)
fs.existsSync = path.existsSync; //Node 0.6 compatibility

Expand Down
2 changes: 1 addition & 1 deletion smart.json → meteor/smart.json
Expand Up @@ -3,7 +3,7 @@
"author": "Blake Miner <miner.blake@gmail.com> (http://www.blakeminer.com/)",
"description": "Blade - HTML Template Compiler, inspired by Jade & Haml",
"homepage": "https://github.com/bminer/node-blade",
"version": "3.2.0",
"version": "3.2.1",
"git": "https://github.com/bminer/node-blade.git",
"packages": {
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -15,7 +15,7 @@
"live binding",
"meteor"
],
"version": "3.2.0",
"version": "3.2.1",
"homepage": "https://github.com/bminer/node-blade",
"repository": {
"type": "git",
Expand All @@ -25,14 +25,14 @@
"main": "lib/blade.js",
"bin": { "blade": "./bin/blade" },
"dependencies": {
"commander": ">=0.6"
},
"devDependencies": {
"pegjs": ">=0.7",
"uglify-js": ">=2.2.3 || >=1.2 <2"
},
"optionalDependencies": {
"uglify-js": ">=2.2.3 || >=1.2 <2"
"uglify-js": ">=2.2.3 || >=1.2 <2",
"commander": ">=0.6"
},
"engines": {
"node": ">=0.6"
Expand Down

0 comments on commit 1614b22

Please sign in to comment.