From 19b42fabc613c09c5b46ca7e4aca9f5a6d143817 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Wed, 21 Nov 2012 04:10:02 -0500 Subject: [PATCH] fix angular filter generator --- filter/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/filter/index.js b/filter/index.js index b148e8971..fb2867253 100644 --- a/filter/index.js +++ b/filter/index.js @@ -9,15 +9,14 @@ module.exports = Generator; function Generator() { ScriptBase.apply(this, arguments); - this.sourceRoot(path.join(__dirname, '../templates')); - + } util.inherits(Generator, ScriptBase); Generator.prototype.createFilterFiles = function createFilterFiles() { - this.template('filter.js', 'app/scripts/filters/' + this.name); - this.template('spec/filter.js', 'test/spec/filters/' + this.name); + this.template('filter', 'app/scripts/filters/' + this.name); + this.template('spec/filter', 'test/spec/filters/' + this.name); }; Generator.prototype.rewriteIndexHtml = function() {