mirror of
https://github.com/TBEDP/datavjs.git
synced 2025-12-08 19:45:52 +00:00
Add the build script
This commit is contained in:
parent
4a56213da4
commit
7b3f0ff287
@ -7,7 +7,7 @@ var version = require('../package.json').version;
|
||||
|
||||
exports.minify = function (input) {
|
||||
var ast = uglify.ast_squeeze(uglify.ast_mangle(parser.parse(input)));
|
||||
return uglify.gen_code(ast);
|
||||
return uglify.gen_code(ast);
|
||||
};
|
||||
|
||||
exports.getInput = function (name) {
|
||||
@ -28,3 +28,8 @@ exports.build = function (name, withVersion, minify) {
|
||||
exports.build('datav');
|
||||
exports.build('datav', "version");
|
||||
exports.build('datav', "version", "minify");
|
||||
|
||||
exports.build('deps');
|
||||
|
||||
exports.build('all');
|
||||
exports.build('all', "version", "minify");
|
||||
@ -1,10 +1,55 @@
|
||||
exports.datav = [
|
||||
exports.deps = [
|
||||
'deps/array_shim.js',
|
||||
'deps/json2.js',
|
||||
'deps/d3.js',
|
||||
'deps/raphael.js',
|
||||
'deps/eventproxy.js',
|
||||
'deps/jquery-1.7.1.js',
|
||||
'deps/underscore-1.4.2.js',
|
||||
'lib/datav.js'
|
||||
'deps/underscore-1.4.2.js'
|
||||
];
|
||||
|
||||
exports.datav = exports.deps.concat([
|
||||
'lib/datav.js'
|
||||
]);
|
||||
|
||||
exports.without = function (excludes) {
|
||||
return exports.datav.filter(function (filename) {
|
||||
return excludes.indexOf(filename) !== -1;
|
||||
});
|
||||
};
|
||||
|
||||
exports.datav_without_jquery = exports.without([
|
||||
'deps/jquery-1.7.1.js'
|
||||
]);
|
||||
|
||||
exports.data_html5 = exports.without([
|
||||
'deps/array_shim.js',
|
||||
'deps/json2.js'
|
||||
]);
|
||||
|
||||
exports.data_shu = exports.without([
|
||||
'deps/raphael.js',
|
||||
'deps/eventproxy.js',
|
||||
'deps/jquery-1.7.1.js',
|
||||
'deps/underscore-1.4.2.js'
|
||||
]);
|
||||
|
||||
exports.all = exports.datav.concat([
|
||||
'lib/charts/axis.js',
|
||||
'lib/charts/brush.js',
|
||||
'lib/charts/bubble.js',
|
||||
'lib/charts/bullet.js',
|
||||
'lib/charts/bundle.js',
|
||||
'lib/charts/chord.js',
|
||||
'lib/charts/diff.js',
|
||||
'lib/charts/flow.js',
|
||||
'lib/charts/force.js',
|
||||
'lib/charts/histogram.js',
|
||||
'lib/charts/matrix.js',
|
||||
'lib/charts/parallel.js',
|
||||
'lib/charts/pie.js',
|
||||
'lib/charts/scatterplotMatrix.js',
|
||||
'lib/charts/stream.js',
|
||||
'lib/charts/tree.js',
|
||||
'lib/charts/treemap.js'
|
||||
]);
|
||||
Loading…
x
Reference in New Issue
Block a user