Comparing version 1.0.0 to 1.0.1
@@ -19,8 +19,7 @@ var ometajs = require('ometajs'), | ||
xjstTree = xjst.translate(BEMCToXJST.match(tree, 'topLevel')), | ||
exportName = options.exportName || 'TEMPLATES'; | ||
exportName = options.exportName || 'TEMPLATES', | ||
xjstOpts = options.devMode? { 'no-opt': true } : { engine: 'sort-group' }; | ||
try { | ||
var xjstJS = options.devMode ? | ||
xjst.compile(xjstTree, '', { 'no-opt': true }): | ||
xjst.compile(xjstTree, { engine: 'sort-group' }); | ||
var xjstJS = xjst.compile(xjstTree, xjstOpts); | ||
} catch (e) { | ||
@@ -27,0 +26,0 @@ throw new Error("xjst to js compilation failed:\n" + e.stack); |
@@ -17,2 +17,8 @@ var PATH = require('path'), | ||
.opt() | ||
.title('Raw mode') | ||
.name('rawMode') | ||
.long('raw') | ||
.flag() | ||
.end() | ||
.opt() | ||
.title('Output file (stdout by default)') | ||
@@ -49,3 +55,3 @@ .name('output') | ||
var res = bemc.translate(src, { devMode: opts.devMode }), | ||
var res = bemc.translate(src, { devMode: opts.devMode, raw: opts.rawMode }), | ||
output = opts.output; | ||
@@ -52,0 +58,0 @@ |
{ | ||
"name": "bemc", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "http://github.com/bem/bemc", | ||
@@ -43,2 +43,3 @@ "author": "Fedor Indutny <fedor.indutny@gmail.com> (http://github.com/indutny)", | ||
"directories": { | ||
"bin": "bin", | ||
"test": "test" | ||
@@ -45,0 +46,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17905
175