File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed
Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,12 @@ module.exports = function (grunt) {
1111 require ( 'load-grunt-tasks' ) ( grunt ) ;
1212 require ( 'time-grunt' ) ( grunt ) ;
1313
14- // configurable paths
15- var yeomanConfig = {
16- app : 'app' ,
17- dist : 'dist'
18- } ;
19-
20- try {
21- yeomanConfig . app = require ( './bower.json' ) . appPath || yeomanConfig . app ;
22- } catch ( e ) { }
23-
2414 grunt . initConfig ( {
25- yeoman : yeomanConfig ,
15+ yeoman : {
16+ // configurable paths
17+ app : require ( './bower.json' ) . appPath || 'app' ,
18+ dist : 'dist'
19+ } ,
2620 watch : {
2721 coffee : {
2822 files : [ '<%%= yeoman.app %>/scripts/{,*/}*.coffee' ] ,
@@ -75,7 +69,7 @@ module.exports = function (grunt) {
7569 open : true ,
7670 base : [
7771 '.tmp' ,
78- yeomanConfig . app
72+ '<%%= yeoman .app %>'
7973 ]
8074 }
8175 } ,
@@ -84,13 +78,13 @@ module.exports = function (grunt) {
8478 middleware : [
8579 '.tmp' ,
8680 'test' ,
87- yeomanConfig . app
81+ '<%%= yeoman .app %>'
8882 ]
8983 }
9084 } ,
9185 dist : {
9286 options : {
93- base : yeomanConfig . dist
87+ base : '<%%= yeoman .dist %>'
9488 }
9589 }
9690 } ,
You can’t perform that action at this time.
0 commit comments