Skip to content

Commit

Permalink
fix angular filter generator
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Nov 21, 2012
1 parent d1ec4f4 commit 19b42fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions filter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 19b42fa

Please sign in to comment.