File tree Expand file tree Collapse file tree 13 files changed +27
-52
lines changed
Expand file tree Collapse file tree 13 files changed +27
-52
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,9 @@ var util = require('util');
44var yeoman = require ( 'yeoman-generator' ) ;
55
66
7- module . exports = Generator ;
8-
9- function Generator ( ) {
7+ var Generator = module . exports = function Generator ( ) {
108 yeoman . generators . Base . apply ( this , arguments ) ;
11- }
9+ } ;
1210
1311util . inherits ( Generator , yeoman . generators . Base ) ;
1412
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ var ScriptBase = require('../script-base.js');
55var angularUtils = require ( '../util.js' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
12- }
10+ } ;
1311
1412util . inherits ( Generator , ScriptBase ) ;
1513
Original file line number Diff line number Diff line change @@ -4,17 +4,15 @@ var util = require('util');
44var ScriptBase = require ( '../script-base.js' ) ;
55
66
7- module . exports = Generator ;
8-
9- function Generator ( ) {
7+ var Generator = module . exports = function Generator ( ) {
108 ScriptBase . apply ( this , arguments ) ;
119
1210 // if the controller name is suffixed with ctrl, remove the suffix
1311 // if the controller name is just "ctrl," don't append/remove "ctrl"
1412 if ( this . name && this . name . toLowerCase ( ) !== 'ctrl' && this . name . substr ( - 4 ) . toLowerCase ( ) === 'ctrl' ) {
1513 this . name = this . name . slice ( 0 , - 4 ) ;
1614 }
17- }
15+ } ;
1816
1917util . inherits ( Generator , ScriptBase ) ;
2018
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ var ScriptBase = require('../script-base.js');
55var angularUtils = require ( '../util.js' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
12- }
10+ } ;
1311
1412util . inherits ( Generator , ScriptBase ) ;
1513
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ var ScriptBase = require('../script-base.js');
55var angularUtils = require ( '../util.js' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
12- }
10+ } ;
1311
1412util . inherits ( Generator , ScriptBase ) ;
1513
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ var ScriptBase = require('../script-base.js');
55var angularUtils = require ( '../util.js' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
12- }
10+ } ;
1311
1412util . inherits ( Generator , ScriptBase ) ;
1513
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ var ScriptBase = require('../script-base.js');
55var yeoman = require ( 'yeoman-generator' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
12- }
10+ } ;
1311
1412util . inherits ( Generator , ScriptBase ) ;
1513
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ var ScriptBase = require('../script-base.js');
55var angularUtils = require ( '../util.js' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
12- }
10+ } ;
1311
1412util . inherits ( Generator , ScriptBase ) ;
1513
Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ var ScriptBase = require('../script-base.js');
55var angularUtils = require ( '../util.js' ) ;
66
77
8- module . exports = Generator ;
9-
10- function Generator ( ) {
8+ var Generator = module . exports = function Generator ( ) {
119 ScriptBase . apply ( this , arguments ) ;
1210 this . hookFor ( 'angular:controller' ) ;
1311 this . hookFor ( 'angular:view' ) ;
14- }
12+ } ;
13+
1514util . inherits ( Generator , ScriptBase ) ;
1615
1716Generator . prototype . rewriteAppJs = function ( ) {
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ var path = require('path');
44var yeoman = require ( 'yeoman-generator' ) ;
55var angularUtils = require ( './util.js' ) ;
66
7- module . exports = Generator ;
8-
9- function Generator ( ) {
7+ var Generator = module . exports = function Generator ( ) {
108 yeoman . generators . NamedBase . apply ( this , arguments ) ;
119
1210 try {
@@ -60,7 +58,7 @@ function Generator() {
6058 }
6159
6260 this . sourceRoot ( path . join ( __dirname , sourceRoot ) ) ;
63- }
61+ } ;
6462
6563util . inherits ( Generator , yeoman . generators . NamedBase ) ;
6664
You can’t perform that action at this time.
0 commit comments