Skip to content

Commit

Permalink
Merge pull request #1266 from vsn4ik/refactoring_gruntfile
Browse files Browse the repository at this point in the history
Some refactor Gruntfile.js.
  • Loading branch information
acrobat committed Feb 11, 2015
2 parents 62f215a + c7260ab commit 4fc893e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
docs/_build
node_modules/
*-dist.zip
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function(grunt){

// Task configuration.
clean: {
dist: 'dist'
dist: ['dist', '*-dist.zip']
},
jshint: {
options: {
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = function(grunt){
files: [{
expand: true,
cwd: 'js/locales/',
src: ['*.js', '!*.min.js'],
src: '*.js',
dest: 'dist/locales/',
rename: function(dest, name){
return dest + name.replace(/\.js$/, '.min.js');
Expand Down Expand Up @@ -137,14 +137,14 @@ module.exports = function(grunt){
dist: [
'dist/css/bootstrap-datepicker.css',
'dist/css/bootstrap-datepicker3.css',
'dist/css/bootstrap-datepicker_standalone.css',
'dist/css/bootstrap-datepicker3_standalone.css'
'dist/css/bootstrap-datepicker.standalone.css',
'dist/css/bootstrap-datepicker3.standalone.css'
]
},
compress: {
main: {
options: {
archive: 'bootstrap-datepicker-<%= pkg.version %>-dist.zip',
archive: '<%= pkg.name %>-<%= pkg.version %>-dist.zip',
mode: 'zip',
level: 9,
pretty: true
Expand All @@ -153,7 +153,7 @@ module.exports = function(grunt){
{
expand: true,
cwd: 'dist/',
src: ['**']
src: '**'
}
]
}
Expand Down

0 comments on commit 4fc893e

Please sign in to comment.