Modernization of build environment. Less gulp, more npm. Eslint.

This commit is contained in:
knsv
2015-10-12 07:37:02 +02:00
parent ed65e6df3b
commit 658ed3d790
34 changed files with 3459 additions and 2828 deletions

View File

@@ -12,6 +12,7 @@
* somewhere in the page or something completely different.
*/
var graph = require('./diagrams/flowchart/graphDb');
var flow = require('./diagrams/flowchart/parser/flow');
var utils = require('./utils');
var flowRenderer = require('./diagrams/flowchart/flowRenderer');
@@ -29,7 +30,6 @@ var ganttDb = require('./diagrams/gantt/ganttDb');
var d3 = require('./d3');
var nextId = 0;
/**
* ## Configuration
* These are the default options which can be overridden with the initialization call as in the example below:
@@ -202,23 +202,23 @@ var config = {
axisFormatter: [
// Within a day
["%I:%M", function (d) {
['%I:%M', function (d) {
return d.getHours();
}],
// Monday a week
["w. %U", function (d) {
['w. %U', function (d) {
return d.getDay() == 1;
}],
// Day within a week (not monday)
["%a %d", function (d) {
['%a %d', function (d) {
return d.getDay() && d.getDate() != 1;
}],
// within a month
["%b %d", function (d) {
['%b %d', function (d) {
return d.getDate() != 1;
}],
// Month
["%m-%y", function (d) {
['%m-%y', function (d) {
return d.getMonth();
}]
]