gulp-cortex-handlebars-compiler
Advanced tools
Comparing version 0.1.2 to 0.2.0
16
index.js
@@ -24,3 +24,11 @@ 'use strict'; | ||
this.ext = options.ext || '.js'; | ||
this.root = options.root || '../../../'; | ||
// ``` | ||
// root/ | ||
// |-- <name> | ||
// |-- <version> | ||
// |-- template | ||
// |-- index.html | ||
// ``` | ||
this.root = options.root || '../../'; | ||
this.jsons = {}; | ||
@@ -60,2 +68,6 @@ } | ||
var dirname = node_path.dirname(path); | ||
var relative = node_path.relative(dirname, this.cwd); | ||
var root = node_path.join(this.root, relative); | ||
var c = compiler({ | ||
@@ -65,3 +77,3 @@ pkg: pkg, | ||
ext: this.ext, | ||
root: this.root | ||
root: root | ||
}); | ||
@@ -68,0 +80,0 @@ |
{ | ||
"name": "gulp-cortex-handlebars-compiler", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Gulp task builder for cortex-handlebars-compiler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
'use strict'; | ||
var expect = require('chai').expect; | ||
var gulp_cortex_handlebars_compiler = require('../'); | ||
var compiler = require('../'); |
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
6816
122