ember-cli-htmlbars
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -33,3 +33,3 @@ 'use strict'; | ||
} | ||
}) | ||
}); | ||
@@ -42,4 +42,2 @@ if (type === 'parent') { | ||
included: function (app) { | ||
var self = this; | ||
this._super.included.apply(this, arguments); | ||
@@ -64,3 +62,3 @@ | ||
return path.join(this.project.root, templateCompilerPath); | ||
return path.resolve(this.project.root, templateCompilerPath); | ||
}, | ||
@@ -93,2 +91,2 @@ | ||
} | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var Filter = require('broccoli-filter'); | ||
@@ -27,3 +29,2 @@ | ||
var plugins = this.options.plugins; | ||
var templateCompiler = this.options.templateCompiler; | ||
@@ -50,6 +51,6 @@ if (plugins) { | ||
TemplateCompiler.prototype.processString = function (string, relativePath) { | ||
return "export default Ember.HTMLBars.template(" + this.precompile(string, false) + ');'; | ||
} | ||
TemplateCompiler.prototype.processString = function (string/*, relativePath */) { | ||
return 'export default Ember.HTMLBars.template(' + this.precompile(string, false) + ');'; | ||
}; | ||
module.exports = TemplateCompiler; |
{ | ||
"name": "ember-cli-htmlbars", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "A library for adding htmlbars to ember CLI", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git@github.com:rondale-sc/ember-cli-htmlbars.git" | ||
"url": "git@github.com:ember-cli/ember-cli-htmlbars.git" | ||
}, | ||
@@ -25,5 +25,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/rondale-sc/ember-cli-htmlbars/issues" | ||
"url": "https://github.com/ember-cli/ember-cli-htmlbars/issues" | ||
}, | ||
"homepage": "https://github.com/rondale-sc/ember-cli-htmlbars", | ||
"homepage": "https://github.com/ember-cli/ember-cli-htmlbars", | ||
"devDependencies": { | ||
@@ -33,3 +33,4 @@ "bower": "^1.3.12", | ||
"broccoli-concat": "0.0.11", | ||
"mocha": "^1.21.4" | ||
"mocha": "^1.21.4", | ||
"mocha-jshint": "^0.0.9" | ||
}, | ||
@@ -36,0 +37,0 @@ "dependencies": { |
@@ -40,5 +40,5 @@ 'use strict'; | ||
var source = fs.readFileSync(sourcePath + '/template.hbs', { encoding: 'utf8' }); | ||
var expected = "export default Ember.HTMLBars.template(" + htmlbarsPrecompile(source) + ");"; | ||
var expected = 'export default Ember.HTMLBars.template(' + htmlbarsPrecompile(source) + ');'; | ||
assert.equal(actual,expected,'They dont match!') | ||
assert.equal(actual,expected,'They dont match!'); | ||
}); | ||
@@ -58,7 +58,7 @@ }); | ||
var source = fs.readFileSync(sourcePath + '/web-component-template.hbs', { encoding: 'utf8' }); | ||
var expected = "export default Ember.HTMLBars.template(" + htmlbarsPrecompile(source) + ");"; | ||
var expected = 'export default Ember.HTMLBars.template(' + htmlbarsPrecompile(source) + ');'; | ||
assert.equal(actual,expected,'They dont match!') | ||
assert.equal(actual,expected,'They dont match!'); | ||
}); | ||
}); | ||
}); |
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
8884
14
5