Skip to content

Commit

Permalink
Issue-1193 Add source maps. Upgrade grunt uglify and cssmin plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
NameFILIP committed Aug 16, 2015
1 parent 6706b78 commit eaa56bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 14 additions & 10 deletions GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ module.exports = function(grunt) {
//Include all files in src/models
'src/models/*.js'
// example to exclude files: '!src/models/excludeMe*'
],
],
dest: 'build/nv.d3.js'
}
},
uglify: {
options: {
sourceMap: true,
banner: '/* nvd3 version ' + _pkg.version + ' (' + _pkg.url + ') ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
Expand Down Expand Up @@ -74,18 +75,21 @@ module.exports = function(grunt) {
}
},
copy: {
css: {
files: [
{ src: 'src/nv.d3.css', dest: 'build/nv.d3.css' }
]
}
css: {
files: [
{ src: 'src/nv.d3.css', dest: 'build/nv.d3.css' }
]
}
},
cssmin: {
dist: {
files: {
'build/nv.d3.min.css' : ['build/nv.d3.css']
options: {
sourceMap: true
},
dist: {
files: {
'build/nv.d3.min.css' : ['build/nv.d3.css']
}
}
}
},
karma: {
unit: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"grunt": "^0.4.5",
"grunt-contrib-concat": "~0.2.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.2",
"grunt-contrib-cssmin": "~0.13.0",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-uglify": "~0.9.1",
"grunt-contrib-watch": "~0.3.1",
"grunt-text-replace": "^0.4.0",
"grunt-karma": "^0.9.0",
Expand Down

0 comments on commit eaa56bf

Please sign in to comment.