Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 21, 2014
2 parents d252683 + ba0ae09 commit 07f3c44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Jakefile.js
Expand Up @@ -4,6 +4,7 @@
var jake = require('jake'),
browserify = require('browserify'),
wrench = require('wrench'),
CleanCSS = require('clean-css'),
fs = require('fs');

require('jake-utils');
Expand All @@ -14,6 +15,7 @@ var VIS = DIST + '/vis.js';
var VIS_CSS = DIST + '/vis.css';
var VIS_TMP = DIST + '/vis.js.tmp';
var VIS_MIN = DIST + '/vis.min.js';
var VIS_MIN_CSS = DIST + '/vis.min.css';

/**
* default task
Expand Down Expand Up @@ -144,7 +146,7 @@ task('build', {async: true}, function () {
* minify the visualization library vis.js
*/
desc('Minify the visualization library vis.js');
task('minify', function () {
task('minify', {async: true}, function () {
// minify javascript
minify({
src: VIS,
Expand All @@ -156,6 +158,10 @@ task('minify', function () {
replacePlaceholders(VIS_MIN);

console.log('created minified ' + VIS_MIN);

var minified = new CleanCSS().minify(read(VIS_CSS));
write(VIS_MIN_CSS, minified);
console.log('created minified ' + VIS_MIN_CSS);
});

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/vis.js
Expand Up @@ -5,7 +5,7 @@
* A dynamic, browser-based visualization library.
*
* @version 0.5.1
* @date 2014-02-20
* @date 2014-02-21
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
Expand Down
1 change: 1 addition & 0 deletions dist/vis.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vis.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -28,6 +28,7 @@
"devDependencies": {
"jake": "latest",
"jake-utils": "latest",
"clean-css": "latest",
"browserify": "3.22",
"wrench": "latest",
"moment": "latest",
Expand Down

0 comments on commit 07f3c44

Please sign in to comment.