@@ -12,7 +12,6 @@ var minimist = require('minimist');
12
12
var runAsync = require ( 'run-async' ) ;
13
13
var through = require ( 'through2' ) ;
14
14
var userHome = require ( 'user-home' ) ;
15
- var GruntfileEditor = require ( 'gruntfile-editor' ) ;
16
15
var FileEditor = require ( 'mem-fs-editor' ) ;
17
16
var pathIsAbsolute = require ( 'path-is-absolute' ) ;
18
17
var pathExists = require ( 'path-exists' ) ;
@@ -137,33 +136,6 @@ var Base = module.exports = function Base(args, options) {
137
136
138
137
// ensure source/destination path, can be configured from subclasses
139
138
this . sourceRoot ( path . join ( path . dirname ( this . resolved ) , 'templates' ) ) ;
140
-
141
- // Only instantiate the Gruntfile API when requested
142
- Object . defineProperty ( this , 'gruntfile' , {
143
- get : function ( ) {
144
- if ( ! this . env . gruntfile ) {
145
- var gruntfile = '' ;
146
- var gruntPath = this . destinationPath ( 'Gruntfile.js' ) ;
147
-
148
- if ( this . fs . exists ( gruntPath ) ) {
149
- gruntfile = this . fs . read ( gruntPath ) ;
150
- }
151
-
152
- this . env . gruntfile = new GruntfileEditor ( gruntfile ) ;
153
- }
154
-
155
- // Schedule the creation/update of the Gruntfile
156
- this . env . runLoop . add ( 'writing' , function ( done ) {
157
- this . fs . write (
158
- this . destinationPath ( 'Gruntfile.js' ) ,
159
- this . env . gruntfile . toString ( )
160
- ) ;
161
- done ( ) ;
162
- } . bind ( this ) , { once : 'gruntfile:write' } ) ;
163
-
164
- return this . env . gruntfile ;
165
- }
166
- } ) ;
167
139
} ;
168
140
169
141
util . inherits ( Base , events . EventEmitter ) ;
0 commit comments