@@ -26,20 +26,20 @@ module.exports = function (grunt) {
2626 views : 'views'
2727 } ,
2828 express : {
29+ options : {
30+ port : process . env . PORT || 9000
31+ } ,
32+ dev : {
2933 options : {
30- port : process . env . PORT || 9000
31- } ,
32- dev : {
33- options : {
34- script : 'server.js'
35- }
36- } ,
37- prod : {
38- options : {
39- script : 'server.js' ,
40- node_env : 'production'
41- }
34+ script : 'server.js'
35+ }
36+ } ,
37+ prod : {
38+ options : {
39+ script : 'server.js' ,
40+ node_env : 'production'
4241 }
42+ }
4343 } ,
4444 open : {
4545 server : {
@@ -79,15 +79,15 @@ module.exports = function (grunt) {
7979 }
8080 } ,
8181 express: {
82- files : [
83- 'server.js' ,
84- 'lib/{,*//*}*.{js,json}'
85- ] ,
86- tasks : [ 'express:dev' ] ,
87- options : {
88- livereload : true ,
89- nospawn : true //Without this option specified express won't be reloaded
90- }
82+ files : [
83+ 'server.js' ,
84+ 'lib/{,*//*}*.{js,json}'
85+ ] ,
86+ tasks : [ 'express:dev' ] ,
87+ options : {
88+ livereload : true ,
89+ nospawn : true //Without this option specified express won't be reloaded
90+ }
9191 } ,
9292 styles: {
9393 files : [ '<%%= yeoman.app %>/styles/{,*/}*.css' ] ,
@@ -98,16 +98,13 @@ module.exports = function (grunt) {
9898 }
9999 } ,
100100
101- // The actual grunt server settings
102-
103101 // Make sure code styles are up to par and there are no obvious mistakes
104102 jshint : {
105103 options : {
106104 jshintrc : '.jshintrc' ,
107105 reporter : require ( 'jshint-stylish' )
108106 } ,
109- all : [
110- 'Gruntfile.js' < % if ( ! coffee ) { % > ,
107+ all : [ < % if ( ! coffee ) { % >
111108 '<%%= yeoman.app %>/scripts/{,*/}*.js' < % } %>
112109 ] < % if ( ! coffee ) { % > ,
113110 test: {
@@ -137,10 +134,10 @@ module.exports = function (grunt) {
137134 src : [
138135 'heroku/*' ,
139136 '!heroku/.git*' ,
140- '!heroku/Procfile'
137+ '!heroku/Procfile'
141138 ]
142139 } ]
143- } ,
140+ } ,
144141 server : '.tmp'
145142 } ,
146143
0 commit comments