chore(): update generator directories

This commit is contained in:
Tim Lancina
2016-01-07 18:57:03 -06:00
parent adb060dfff
commit 44be634997
8 changed files with 16 additions and 13 deletions

View File

@@ -9,11 +9,11 @@ import {IONIC_DIRECTIVES} from 'ionic/ionic';
*/
@Component({
selector: '<%= fileName %>',
templateUrl: '<%= directory %>/<%= fileName %>/<%= fileName %>.html',
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
directives: [IONIC_DIRECTIVES] // makes all Ionic directives available to your component
})
export class <%= jsClassName %> {
constructor() {
this.text = 'Hello World, I\'m <%= jsClassName %>';
this.text = 'Hello World';
}
}

View File

@@ -5,7 +5,7 @@ module.exports = ComponentGenerator;
function ComponentGenerator(options) {
Generator.call(this, options);
this.directory = path.join('app', 'components');
this.directory = 'components';
}
ComponentGenerator.prototype = Object.create(Generator.prototype);