File tree 3 files changed +26
-1
lines changed
3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ Generator.prototype._injectDependencies = function _injectDependencies() {
436
436
437
437
Generator . prototype . serverFiles = function ( ) {
438
438
this . template ( '../../templates/express/server.js' , 'server.js' ) ;
439
+ this . copy ( '../../templates/express/jshintrc' , 'lib/.jshintrc' ) ;
439
440
this . template ( '../../templates/express/api.js' , 'lib/controllers/api.js' ) ;
440
441
this . template ( '../../templates/express/index.js' , 'lib/controllers/index.js' ) ;
441
442
this . template ( '../../templates/express/config/express.js' , 'lib/config/express.js' ) ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ module.exports = function (grunt) {
95
95
'server.js' ,
96
96
'lib/{,*//*}*.{js,json}'
97
97
] ,
98
- tasks : [ 'express:dev' ] ,
98
+ tasks : [ 'newer:jshint:server' , ' express:dev'] ,
99
99
options : {
100
100
livereload : true ,
101
101
nospawn : true //Without this option specified express won't be reloaded
@@ -109,6 +109,12 @@ module.exports = function (grunt) {
109
109
jshintrc : '.jshintrc' ,
110
110
reporter : require ( 'jshint-stylish' )
111
111
} ,
112
+ server : {
113
+ options : {
114
+ jshintrc : 'lib/.jshintrc'
115
+ } ,
116
+ src : [ 'lib/{,*/}*.js' ]
117
+ } ,
112
118
all : [ < % if ( ! coffee ) { % >
113
119
'<%%= yeoman.app %>/scripts/{,*/}*.js' < % } % >
114
120
] < % if ( ! coffee ) { % > ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "node": true,
3
+ "browser": true,
4
+ "esnext": true,
5
+ "bitwise": true,
6
+ "camelcase": true,
7
+ "curly": true,
8
+ "eqeqeq": true,
9
+ "immed": true,
10
+ "indent": 2,
11
+ "latedef": true,
12
+ "newcap": true,
13
+ "noarg": true,
14
+ "regexp": true,
15
+ "undef": true,
16
+ "strict": true,
17
+ "smarttabs": true
18
+ }
You can’t perform that action at this time.
0 commit comments