Skip to content

Commit

Permalink
fix(build): remove references to global yeomanConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Sep 9, 2013
1 parent 67c0ebf commit a0f16e2
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@ module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);

// configurable paths
var yeomanConfig = {
app: 'app',
dist: 'dist'
};

try {
yeomanConfig.app = require('./bower.json').appPath || yeomanConfig.app;
} catch (e) {}

grunt.initConfig({
yeoman: yeomanConfig,
yeoman: {
// configurable paths
app: require('./bower.json').appPath || 'app',
dist: 'dist'
},
watch: {
coffee: {
files: ['<%%= yeoman.app %>/scripts/{,*/}*.coffee'],
Expand Down Expand Up @@ -75,7 +69,7 @@ module.exports = function (grunt) {
open: true,
base: [
'.tmp',
yeomanConfig.app
'<%%= yeoman.app %>'
]
}
},
Expand All @@ -84,13 +78,13 @@ module.exports = function (grunt) {
middleware: [
'.tmp',
'test',
yeomanConfig.app
'<%%= yeoman.app %>'
]
}
},
dist: {
options: {
base: yeomanConfig.dist
base: '<%%= yeoman.dist %>'
}
}
},
Expand Down

0 comments on commit a0f16e2

Please sign in to comment.