Skip to content

Commit 400aa54

Browse files
authored
feat(generators): refactor generators
* feat(generators): update templates * feat(generators): add pipeName to templates
1 parent add0c4e commit 400aa54

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@
148148
"pre-push#master": [
149149
"test"
150150
]
151-
}
151+
}

scripts/templates/page/module.ts.tmpl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@ import { $CLASSNAME } from './$FILENAME';
99
imports: [
1010
IonicPageModule.forChild($CLASSNAME),
1111
],
12-
exports: [
13-
$CLASSNAME
14-
]
1512
})
1613
export class $CLASSNAMEModule {}

scripts/templates/page/ts.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Component } from '@angular/core';
2-
import { NavController, NavParams } from 'ionic-angular';
2+
$IMPORTSTATEMENT
33

44
/**
55
* Generated class for the $CLASSNAME page.
66
*
77
* See http://ionicframework.com/docs/components/#navigation for more info
88
* on Ionic pages and navigation.
99
*/
10-
10+
$IONICPAGE
1111
@Component({
1212
selector: 'page-$FILENAME',
1313
templateUrl: '$FILENAME.html',

scripts/templates/pipe/ts.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Pipe, PipeTransform } from '@angular/core';
77
* Angular Pipes.
88
*/
99
@Pipe({
10-
name: '$FILENAME',
10+
name: '$PIPENAME',
1111
})
1212
export class $CLASSNAME implements PipeTransform {
1313
/**

scripts/templates/tabs/ts.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { Component } from '@angular/core';
2-
import { NavController } from 'ionic-angular';
2+
$TABS_IMPORTSTATEMENT
33

44
/**
55
* Generated class for the $CLASSNAME tabs.
66
*
77
* See https://angular.io/docs/ts/latest/guide/dependency-injection.html for
88
* more info on providers and Angular DI.
99
*/
10+
$IONICPAGE
1011
@Component({
1112
selector: 'page-$FILENAME',
1213
templateUrl: '$FILENAME.html'

0 commit comments

Comments
 (0)