File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,16 @@ module.exports = function (grunt) {
93
93
]
94
94
} ]
95
95
} ,
96
+ heroku : {
97
+ files : [ {
98
+ dot : true ,
99
+ src : [
100
+ 'heroku/*' ,
101
+ '!heroku/.git*' ,
102
+ '!heroku/Procfile'
103
+ ]
104
+ } ]
105
+ } ,
96
106
server : '.tmp'
97
107
} ,
98
108
jshint : {
@@ -258,6 +268,25 @@ module.exports = function (grunt) {
258
268
]
259
269
} ]
260
270
} ,
271
+ heroku : {
272
+ files : [ {
273
+ expand : true ,
274
+ dot : true ,
275
+ cwd : '<%= yeoman.dist %>' ,
276
+ dest : 'heroku/public' ,
277
+ src : [
278
+ '**/**'
279
+ ]
280
+ } , {
281
+ expand : true ,
282
+ dest : 'heroku' ,
283
+ src : [
284
+ 'package.json' ,
285
+ 'server.js' ,
286
+ 'lib/**/*'
287
+ ]
288
+ } ]
289
+ } ,
261
290
styles : {
262
291
expand : true ,
263
292
cwd : '<%%= yeoman.app %>/styles' ,
@@ -358,6 +387,12 @@ module.exports = function (grunt) {
358
387
'usemin'
359
388
] ) ;
360
389
390
+ grunt . registerTask ( 'heroku' , [
391
+ 'build' ,
392
+ 'clean:heroku' ,
393
+ 'copy:heroku'
394
+ ] ) ;
395
+
361
396
grunt . registerTask ( 'default' , [
362
397
'jshint' ,
363
398
'test' ,
You can’t perform that action at this time.
0 commit comments