-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGruntfile.js
98 lines (93 loc) · 3.45 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
module.exports = function(grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
stripBanners: true
},
dist: {
src: [
'public_html/src/JSFreeChart.js',
'public_html/src/Utils.js',
'public_html/src/Args.js',
'public_html/src/util/*.js',
'public_html/src/graphics/RefPt2D.js',
'public_html/src/graphics/Anchor2D.js',
'public_html/src/graphics/Shape.js',
'public_html/src/graphics/Circle.js',
'public_html/src/graphics/Color.js',
'public_html/src/graphics/Font.js',
'public_html/src/graphics/*.js',
'public_html/src/Colors.js',
'public_html/src/table/*.js',
'public_html/src/data/*.js',
'public_html/src/Charts.js',
'public_html/src/Chart.js',
'public_html/src/ChartManager.js',
'public_html/src/legend/LegendBuilder.js',
'public_html/src/legend/StandardLegendBuilder.js',
'public_html/src/legend/FixedLegendBuilder.js',
'public_html/src/legend/LegendItemInfo.js',
'public_html/src/axis/ValueAxis.js',
'public_html/src/axis/CategoryAxis.js',
'public_html/src/axis/StandardCategoryAxis.js',
'public_html/src/axis/AxisSpace.js',
'public_html/src/axis/BaseValueAxis.js',
'public_html/src/axis/Crosshair.js',
'public_html/src/axis/LabelOrientation.js',
'public_html/src/axis/NumberTickSelector.js',
'public_html/src/axis/LinearAxis.js',
'public_html/src/axis/TickMark.js',
'public_html/src/axis/*.js',
'public_html/src/renderer/ColorSource.js',
'public_html/src/renderer/category/CategoryRenderer.js',
'public_html/src/renderer/category/BaseCategoryRenderer.js',
'public_html/src/renderer/category/BarRenderer.js',
'public_html/src/renderer/category/StackedBarRenderer.js',
'public_html/src/renderer/StrokeSource.js',
'public_html/src/renderer/*.js',
'public_html/src/plot/*.js',
'public_html/src/interaction/Modifier.js',
'public_html/src/interaction/*.js',
'public_html/src/labels/*.js',
'public_html/src/Module.js'
],
dest: 'public_html/lib/jsfreechart.js',
}
},
uglify: {
build: {
src: 'public_html/lib/jsfreechart.js',
dest: 'public_html/lib/jsfreechart.min.js',
options: {
mangle: true
}
}
},
jasmine_node: {
options: {
forceExit: true,
match: '.',
matchall: false,
extensions: 'js',
specNameMatcher: 'spec',
jUnit: {
report: true,
savePath : "./build/reports/jasmine/",
useDotNotation: true,
consolidate: true
}
},
all: ['public_html/spec/']
}
});
// 3. Where we tell Grunt we plan to use this plug-in.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-jasmine-node');
// 4. Where we tell Grunt what to do when we type "grunt" into the terminal.
grunt.registerTask('default', ['concat', 'uglify', 'jasmine_node']);
grunt.registerTask('build', ['concat', 'uglify']);
grunt.registerTask('test', ['jasmine_node']);
};