diff --git a/HISTORY.md b/HISTORY.md index a6da520c..620a76db 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,7 +2,7 @@ vis.js history http://visjs.org -## , version 0.3.0 +## 2014-01-14, version 0.3.0 - Moved the generated library to folder `./dist` - Css stylesheet must be loaded explicitly now. diff --git a/Jakefile.js b/Jakefile.js index 4cbca8bb..37689e07 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -9,16 +9,17 @@ var jake = require('jake'), require('jake-utils'); // constants -var VIS = './dist/vis.js'; -var VIS_CSS = './dist/vis.css'; -var VIS_TMP = './vis.js.tmp'; -var VIS_MIN = './dist/vis.min.js'; +var DIST = './dist'; +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'; /** * default task */ -desc('Execute all tasks: build all libraries'); -task('default', ['build', 'minify', 'test'], function () { +desc('Default task: build all libraries'); +task('default', ['build', 'minify'], function () { console.log('done'); }); @@ -27,6 +28,8 @@ task('default', ['build', 'minify', 'test'], function () { */ desc('Build the visualization library vis.js'); task('build', {async: true}, function () { + jake.mkdirP(DIST); + // concatenate and stringify the css files concat({ src: [ @@ -139,7 +142,7 @@ task('minify', function () { * test task */ desc('Test the library'); -task('test', ['build'], function () { +task('test', function () { // TODO: use a testing suite for testing: nodeunit, mocha, tap, ... var filelist = new jake.FileList(); filelist.include([ diff --git a/NOTICE b/NOTICE index f8f5cecc..b1a08849 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ Vis.js -Copyright 2010-2013 Almende B.V. +Copyright 2010-2014 Almende B.V. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index a97439b5..b6b80643 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,14 @@ Or download the library from the github project: ## Load -To use a component, include the javascript file of vis in your web page: +To use a component, include the javascript and css files of vis in your web page: ```html - + + + +