Skip to content

Commit a0f16e2

Browse files
committed
fix(build): remove references to global yeomanConfig
1 parent 67c0ebf commit a0f16e2

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

templates/common/Gruntfile.js

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)