main: {
expand: true,
cwd: 'app/',
- src: ['**', '!js/**', '!lib/**', '!**/*.css', '!**/*.js', '!**/bower_components/**', '!**/nbproject/**', '!npm-debug.log'],
+ src: ['**', '!js/**', '!lib/**', '!**/*.example', '!**/*.css', '!**/*.js', '!**/bower_components/**', '!**/nbproject/**', '!npm-debug.log'],
dest: 'dist/'
},
shims: {
dest: 'dist/js/shims'
}
},
+
+ cleanempty: {
+ options: {},
+ src: ['dist/**']
+ },
rev: {
files: {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-rev');
grunt.loadNpmTasks('grunt-usemin');
+ grunt.loadNpmTasks('grunt-cleanempty');
// Tell Grunt what to do when we type "grunt" into the terminal
grunt.registerTask('default', [
- 'copy', 'useminPrepare', 'concat', 'uglify', 'cssmin', 'rev', 'usemin'
+ 'copy', 'cleanempty', 'useminPrepare', 'concat', 'uglify', 'cssmin', 'rev', 'usemin'
]);
};
"grunt-usemin": "~2.0.2",
"grunt-contrib-copy": "~0.5.0",
"grunt-rev": "~0.1.0",
- "grunt-contrib-clean": "~0.5.0"
+ "grunt-contrib-clean": "~0.5.0",
+ "grunt-cleanempty": "~1.0.0"
},
"scripts": {
"postinstall": "bower install",