Permalink
Browse files

Push to version 3.2.1

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 1614b225c0a62926a7365d6d30df14995e534872
Showing with 12 additions and 4 deletions.
  1. +8 −0 bin/blade
  2. +1 −1 { → meteor}/smart.json
  3. +3 −3 package.json
View
@@ -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
@@ -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": {
}
View
@@ -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",
@@ -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"

0 comments on commit 1614b22

Please sign in to comment.