forked from novus/nvd3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add grunt, see more in README.md about how to use intstall and use grunt
- Loading branch information
lihongxun
committed
Apr 24, 2013
1 parent
7e9b8c0
commit 2a394fe
Showing
8 changed files
with
758 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ _site | |
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
# nodejs packages # | ||
###################### | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"asi": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
module.exports = function(grunt) { | ||
|
||
//Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
concat: { | ||
options: { | ||
separator: '' | ||
}, | ||
dist: { | ||
src: [ | ||
'src/intro.js', | ||
'src/core.js', | ||
'src/tooltip.js', | ||
'src/utils.js', | ||
'src/models/axis.js', | ||
'src/models/historicalBar.js', | ||
'src/models/bullet.js', | ||
'src/models/bulletChart.js', | ||
'src/models/cumulativeLineChart.js', | ||
'src/models/discreteBar.js', | ||
'src/models/discreteBarChart.js', | ||
'src/models/distribution.js', | ||
'src/models/indentedTree.js', | ||
'src/models/legend.js', | ||
'src/models/line.js', | ||
'src/models/lineChart.js', | ||
'src/models/linePlusBarChart.js', | ||
'src/models/lineWithFocusChart.js', | ||
'src/models/linePlusBarWithFocusChart.js', | ||
'src/models/multiBar.js', | ||
'src/models/multiBarChart.js', | ||
'src/models/multiBarHorizontal.js', | ||
'src/models/multiBarHorizontalChart.js', | ||
'src/models/multiChart.js', | ||
'src/models/ohlcBar.js', | ||
'src/models/pie.js', | ||
'src/models/pieChart.js', | ||
'src/models/scatter.js', | ||
'src/models/scatterChart.js', | ||
'src/models/scatterPlusLineChart.js', | ||
'src/models/sparkline.js', | ||
'src/models/sparklinePlus.js', | ||
'src/models/stackedArea.js', | ||
'src/models/stackedAreaChart.js', | ||
'src/outro.js' | ||
], | ||
dest: 'nv.d3.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %> */' | ||
}, | ||
js: { | ||
files: { | ||
'nv.d3.min.js': ['nv.d3.js'] | ||
} | ||
} | ||
}, | ||
jshint: { | ||
foo: { | ||
src: "src/**/*.js" | ||
}, | ||
options: { | ||
jshintrc: '.jshintrc' | ||
} | ||
}, | ||
watch: { | ||
js: { | ||
files: ["src/**/*.js"], | ||
tasks: ['concat'] | ||
} | ||
}, | ||
|
||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
|
||
grunt.registerTask('default', ['concat']); | ||
grunt.registerTask('production', ['concat', 'uglify']); | ||
grunt.registerTask('lint', ['jshint']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.