Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit bb041f5

Browse files
committed
label wrapping for horizontalBarChart
1 parent d9769b3 commit bb041f5

File tree

4 files changed

+10428
-10519
lines changed

4 files changed

+10428
-10519
lines changed

GruntFile.js

Lines changed: 11 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,17 @@
1-
2-
var version = '1.7.1';
3-
41
module.exports = function(grunt) {
52

6-
//Project configuration.
7-
grunt.initConfig({
8-
pkg: grunt.file.readJSON('package.json'),
9-
concat: {
10-
options: {
11-
separator: '',
12-
// wrap output in a function block.
13-
banner: '/* nvd3 version ' + version + '(https://github.com/novus/nvd3) ' +
14-
'<%= grunt.template.today("yyyy-mm-dd") %> */\n' + '(function(){\n',
15-
footer: '\nnv.version = "' + version + '";\n})();'
16-
},
17-
dist: {
18-
src: [
19-
'src/core.js',
20-
'src/interactiveLayer.js',
21-
'src/tooltip.js',
22-
'src/utils.js',
23-
//Include all files in src/models
24-
'src/models/*.js'
25-
// example to exclude files: '!src/models/excludeMe*'
26-
],
27-
dest: 'build/nv.d3.js'
28-
}
29-
},
30-
uglify: {
31-
options: {
32-
banner: '/* nvd3 version ' + version + ' (https://github.com/novus/nvd3) ' +
33-
'<%= grunt.template.today("yyyy-mm-dd") %> */\n'
34-
},
35-
js: {
36-
files: {
37-
'build/nv.d3.min.js': ['build/nv.d3.js']
38-
}
39-
}
40-
},
41-
jshint: {
42-
foo: {
43-
src: "src/**/*.js"
44-
},
45-
options: {
46-
jshintrc: '.jshintrc'
47-
}
48-
},
49-
watch: {
50-
js: {
51-
files: ["src/**/*.js"],
52-
tasks: ['concat']
53-
}
54-
},
55-
copy: {
56-
css: {
57-
files: [
58-
{ src: 'src/nv.d3.css', dest: 'build/nv.d3.css' }
59-
]
60-
}
61-
},
62-
cssmin: {
63-
dist: {
64-
files: {
65-
'build/nv.d3.min.css' : ['build/nv.d3.css']
66-
}
67-
}
68-
},
69-
karma: {
70-
unit: {
71-
options: {
72-
logLevel: 'ERROR',
73-
browsers: ['Firefox'],
74-
frameworks: [ 'mocha', 'sinon-chai' ],
75-
reporters: [ 'spec', 'junit', 'coverage'],
76-
singleRun: true,
77-
preprocessors: {
78-
'src/*.js': ['coverage'],
79-
'src/models/*.js': ['coverage'],
80-
'test/mocha/*.coffee': ['coffee']
81-
},
82-
files: [
83-
'bower_components/d3/d3.js',
84-
'src/*.js',
85-
'src/models/*.js',
86-
'test/mocha/*.coffee'
87-
],
88-
exclude: [
89-
'src/intro.js',
90-
'src/outro.js',
91-
//Files we don't want to test.
92-
'src/models/lineWith*',
93-
'src/models/parallelCoordinates*',
94-
'src/models/multiBarTime*',
95-
'src/models/indented*',
96-
'src/models/linePlus*',
97-
'src/models/ohlcBar.js',
98-
'src/models/multiChart.js'
99-
]
100-
}
101-
}
3+
//Project configuration.
4+
grunt.initConfig({
5+
uglify: {
6+
js: {
7+
files: {
8+
'build/nv.d3.min.js': ['build/nv.d3.js']
1029
}
103-
});
10+
}
11+
}
12+
});
10413

105-
grunt.loadNpmTasks('grunt-contrib-watch');
106-
grunt.loadNpmTasks('grunt-contrib-concat');
107-
grunt.loadNpmTasks('grunt-contrib-jshint');
108-
grunt.loadNpmTasks('grunt-contrib-uglify');
109-
grunt.loadNpmTasks('grunt-contrib-copy');
110-
grunt.loadNpmTasks('grunt-contrib-cssmin');
111-
grunt.loadNpmTasks('grunt-karma');
14+
grunt.loadNpmTasks('grunt-contrib-uglify');
11215

113-
grunt.registerTask('default', ['concat', 'karma:unit']);
114-
grunt.registerTask('production', ['concat', 'uglify', 'copy', 'cssmin']);
115-
grunt.registerTask('release', ['production']);
116-
grunt.registerTask('lint', ['jshint']);
16+
grunt.registerTask('default', ['uglify']);
11717
};

0 commit comments

Comments
 (0)