File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 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) {
9393 ]
9494 } ]
9595 } ,
96+ heroku : {
97+ files : [ {
98+ dot : true ,
99+ src : [
100+ 'heroku/*' ,
101+ '!heroku/.git*' ,
102+ '!heroku/Procfile'
103+ ]
104+ } ]
105+ } ,
96106 server : '.tmp'
97107 } ,
98108 jshint : {
@@ -258,6 +268,25 @@ module.exports = function (grunt) {
258268 ]
259269 } ]
260270 } ,
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+ } ,
261290 styles : {
262291 expand : true ,
263292 cwd : '<%%= yeoman.app %>/styles' ,
@@ -358,6 +387,12 @@ module.exports = function (grunt) {
358387 'usemin'
359388 ] ) ;
360389
390+ grunt . registerTask ( 'heroku' , [
391+ 'build' ,
392+ 'clean:heroku' ,
393+ 'copy:heroku'
394+ ] ) ;
395+
361396 grunt . registerTask ( 'default' , [
362397 'jshint' ,
363398 'test' ,
You can’t perform that action at this time.
0 commit comments