diff --git a/app/templates/skeleton/Gruntfile.js b/app/templates/skeleton/Gruntfile.js
index c61a693..79007e3 100644
--- a/app/templates/skeleton/Gruntfile.js
+++ b/app/templates/skeleton/Gruntfile.js
@@ -7,7 +7,14 @@ var folderMount = function folderMount(connect, point) {
module.exports = function (grunt) {
// Project configuration.
+
+ var yeomanConfig = {
+ dist: 'dist'
+ };
+
grunt.initConfig({
+ yeoman: yeomanConfig,
+
connect: {
main: {
options: {
@@ -35,7 +42,7 @@ module.exports = function (grunt) {
},
clean: {
before:{
- src:['dist','temp']
+ src:['<%= yeoman.dist %>','temp']
},
after: {
src:['temp']
@@ -62,12 +69,12 @@ module.exports = function (grunt) {
copy: {
main: {
files: [
- {src: ['index.html'], dest: 'dist/'},
- {src: ['img/**'], dest: 'dist/'},
- {src: ['bower_components/angular-ui/build/angular-ui-ieshiv.js'], dest: 'dist/'},
- {src: ['bower_components/font-awesome/build/assets/font-awesome/font/**'], dest: 'dist/',filter:'isFile',expand:true},
- // {src: ['bower_components/select2/*.png','bower_components/select2/*.gif'], dest:'dist/css/',flatten:true,expand:true},
- {src: ['bower_components/angular-mocks/angular-mocks.js'], dest: 'dist/'}
+ {src: ['index.html'], dest: '<%= yeoman.dist %>/'},
+ {src: ['img/**'], dest: '<%= yeoman.dist %>/'},
+ {src: ['bower_components/angular-ui/build/angular-ui-ieshiv.js'], dest: '<%= yeoman.dist %>/'},
+ {src: ['bower_components/font-awesome/build/assets/font-awesome/font/**'], dest: '<%= yeoman.dist %>/',filter:'isFile',expand:true},
+ // {src: ['bower_components/select2/*.png','bower_components/select2/*.gif'], dest:'<%= yeoman.dist %>/css/',flatten:true,expand:true},
+ {src: ['bower_components/angular-mocks/angular-mocks.js'], dest: '<%= yeoman.dist %>/'}
]
}
},
@@ -89,32 +96,32 @@ module.exports = function (grunt) {
remove:'script[data-remove!="exclude"]',
append:{selector:'head',html:''}
},
- src:'dist/index.html'
+ src:'<%= yeoman.dist %>/index.html'
},
addscript: {
options:{
append:{selector:'body',html:''}
},
- src:'dist/index.html'
+ src:'<%= yeoman.dist %>/index.html'
},
removecss: {
options:{
remove:'link',
append:{selector:'head',html:''}
},
- src:'dist/index.html'
+ src:'<%= yeoman.dist %>/index.html'
},
addcss: {
options:{
append:{selector:'head',html:''}
},
- src:'dist/index.html'
+ src:'<%= yeoman.dist %>/index.html'
}
},
cssmin: {
main: {
src:['temp/app.css','<%%= dom_munger.data.appcss %>'],
- dest:'dist/css/app.full.min.css'
+ dest:'<%= yeoman.dist %>/css/app.full.min.css'
}
},
concat: {
@@ -132,7 +139,7 @@ module.exports = function (grunt) {
uglify: {
main: {
src: 'temp/app.full.js',
- dest:'dist/app.full.min.js'
+ dest:'<%= yeoman.dist %>/app.full.min.js'
}
},
htmlmin: {
@@ -142,16 +149,16 @@ module.exports = function (grunt) {
collapseWhitespace: true
},
files: {
- 'dist/index.html': 'dist/index.html'
+ '<%= yeoman.dist %>/index.html': '<%= yeoman.dist %>/index.html'
}
}
},
imagemin: {
main:{
files: [{
- expand: true, cwd:'dist/',
+ expand: true, cwd:'<%= yeoman.dist %>/',
src:['**/{*.png,*.jpg}'],
- dest: 'dist/'
+ dest: '<%= yeoman.dist %>/'
}]
}
},