Skip to content

Commit

Permalink
Merge pull request #202 from Quartz/update-packages
Browse files Browse the repository at this point in the history
Updates all our npm packages
  • Loading branch information
yanofsky committed Jan 21, 2016
2 parents f509ab9 + cb99a3e commit 879112e
Show file tree
Hide file tree
Showing 33 changed files with 117 additions and 113 deletions.
10 changes: 6 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ gulp.task("clean", function (done) {
del([
config.dirs.tmp + "/**",
config.dirs.build + "/**"
], done);
]).then(function(paths) {
done();
});
});

gulp.task("clean-dist", function (done) {
del([
config.dirs.dist + "/**"
], done);
del([ config.dirs.dist + "/**" ]).then(function(paths) {
done()
});
});

gulp.task("copy-htdocs", function () {
Expand Down
35 changes: 15 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
"description": "Easily create beautiful charts",
"main": "src/js/index.js",
"scripts": {
"test-jsx-browser": "browserify -t rewireify test/jsx/index-jsx.js | testling -u",
"test-js-browser": "browserify test/index.js | testling -u",
"test-jsx": "browserify -t rewireify test/jsx/index-jsx.js | testling | faucet",
"test-js": "browserify test/index.js | testling | faucet",
"test-jsx": "browserify -t rewireify test/jsx/index-jsx.js | tap-closer | smokestack | tap-spec",
"test-js": "browserify test/index.js | tap-closer | smokestack | tap-spec",
"test": "npm run test-js && npm run test-jsx",
"docs": "documentation --github --format html -o api-docs",
"docs": "documentation -t documentation-theme-default --github --format html -o api-docs",
"test-page": "gulp test",
"dev": "gulp",
"build": "gulp build",
Expand Down Expand Up @@ -53,43 +51,40 @@
"classnames": "^2.2.1",
"d3": "^3.5.5",
"d4": "git://github.com/yanofsky/d4.git",
"flux": "~2.0.1",
"lodash": "^3.9.3",
"flux": "~2.1.1",
"lodash": "^4.0.0",
"markdown": "^0.5.0",
"react": "^0.14.5",
"react-addons-shallow-compare": "^0.14.5",
"react-addons-update": "^0.14.5",
"react-addons-pure-render-mixin": "^0.14.5",
"react-dom": "^0.14.5",
"react-component-visibility": "0.0.5",
"save-svg-as-png": "^1.0.2",
"sugar-date": "^1.5.1"
},
"devDependencies": {
"browser-sync": "1.x.x",
"browserify": "^3.44.2",
"browser-sync": "2.x.x",
"browserify": "^13.0.0",
"browserify-shim": "^3.8.0",
"del": "^0.1.2",
"documentation": "^1.4.0",
"del": "2.2.0",
"documentation": "^3.0.4",
"envify": "^3.2.0",
"faker": "^2.1.2",
"faucet": "0.0.1",
"glob": "^4.3.5",
"gulp": "^3.6.2",
"gulp-changed": "^0.4.0",
"gulp-changed": "^1.3.0",
"gulp-css-base64": "^1.3.1",
"gulp-notify": "^1.2.5",
"gulp-stylus": "^2.0.1",
"gulp-uglify": "^1.1.0",
"minimatch": "^2.0.1",
"nib": "^1.0.2",
"nomnom": "^1.8.0",
"react-addons-test-utils": "^0.14.5",
"reactify": "^0.15.0",
"reactify": "^1.1.1",
"rewireify": "^0.2.5",
"smokestack": "^3.4.1",
"tap-closer": "^1.0.0",
"tap-spec": "^4.1.1",
"tape": "^4.0.0",
"testling": "^1.7.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^0.1.1"
"vinyl-source-stream": "^1.1.0"
}
}
6 changes: 3 additions & 3 deletions src/js/charts/cb-chart-grid/parse-chart-grid.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var assign = require("lodash/object/assign");
var clone = require("lodash/clone");
var map = require("lodash/map");
var assign = require("lodash/assign");

var dataBySeries = require("../../util/parse-data-by-series");
var help = require("../../util/helper");
Expand Down
4 changes: 2 additions & 2 deletions src/js/charts/cb-xy/draw-xy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ if (process.env.NODE_ENV !== "test") {
var d4 = require("d4");
}

var filter = require("lodash/collection/filter");
var each = require("lodash/collection/each");
var filter = require("lodash/filter");
var each = require("lodash/each");

var chartStyle = require("../../config/chart-style");
var cb_mixins = require("../cb-d4-mixins.js");
Expand Down
10 changes: 5 additions & 5 deletions src/js/charts/cb-xy/parse-xy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var assign = require("lodash/object/assign");
var each = require("lodash/collection/each");
var filter = require("lodash/collection/filter");
var clone = require("lodash/clone");
var map = require("lodash/map");
var assign = require("lodash/assign");
var each = require("lodash/each");
var filter = require("lodash/filter");

var dataBySeries = require("../../util/parse-data-by-series");
var help = require("../../util/helper");
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/ChartMetadata.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var React = require("react");
var PropTypes = React.PropTypes;
var PureRenderMixin = require("react-addons-pure-render-mixin");
var clone = require("lodash/lang/clone");
var clone = require("lodash/clone");

// Flux stores
var ChartMetadataStore = require("../stores/ChartMetadataStore");
Expand Down
6 changes: 3 additions & 3 deletions src/js/components/ChartTypeSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// and apply setting that carry over to the new type

var React = require("react");
var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var keys = require("lodash/object/keys");
var clone = require("lodash/clone");
var map = require("lodash/map");
var keys = require("lodash/keys");
var helper = require("../util/helper");

// Flux actions
Expand Down
14 changes: 7 additions & 7 deletions src/js/components/RendererWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ var React = require("react");
var ReactDOM = require("react-dom")
var PropTypes = React.PropTypes;

var assign = require("lodash/object/assign");
var clone = require("lodash/lang/clone");
var isDate = require("lodash/lang/isDate");
var isEqual = require("lodash/lang/isEqual");
var throttle = require("lodash/function/throttle");
var reduce = require("lodash/collection/reduce");
var keys = require("lodash/object/keys");
var assign = require("lodash/assign");
var clone = require("lodash/clone");
var isDate = require("lodash/isDate");
var isEqual = require("lodash/isEqual");
var throttle = require("lodash/throttle");
var reduce = require("lodash/reduce");
var keys = require("lodash/keys");
var update = require("react-addons-update");

var SvgText = require("./svg/SvgText.jsx");
Expand Down
11 changes: 6 additions & 5 deletions src/js/components/chart-grid/ChartGridBars.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ var PropTypes = React.PropTypes;
var update = require("react-addons-update");
var d4 = require("d4");

var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var reduce = require("lodash/collection/reduce");
var bind = require("lodash/bind");
var clone = require("lodash/clone");
var map = require("lodash/map");
var reduce = require("lodash/reduce");

var SessionStore = require("../../stores/SessionStore");
var separators = SessionStore.get("separators");
Expand Down Expand Up @@ -172,7 +173,7 @@ var ChartGridBars = React.createClass({
/>
);

var gridCharts = map(chartProps.data.slice(0, numCharts), function(d, i) {
var gridCharts = map(chartProps.data.slice(0, numCharts), bind(function(d, i) {
// Get the props we need for each chart
var gridChartProps = {
chartSettings: chartProps.chartSettings[i],
Expand All @@ -194,7 +195,7 @@ var ChartGridBars = React.createClass({
dimensions={dimensionsPerGrid}
padding={displayConfig.padding}
/>
}, this);
}, this));

/*
* Pass the following JSX components to the `Svg` component, which will
Expand Down
13 changes: 7 additions & 6 deletions src/js/components/chart-grid/ChartGridEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ var PropTypes = React.PropTypes;
var update = require("react-addons-update");
var cx = require("classnames");

var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var each = require("lodash/collection/each");
var range = require("lodash/utility/range");
var bind = require("lodash/bind");
var clone = require("lodash/clone");
var each = require("lodash/each");
var map = require("lodash/map");
var range = require("lodash/range");

/* Shared Chartbuilder components */
var DataInput = require("../shared/DataInput.jsx");
Expand Down Expand Up @@ -74,7 +75,7 @@ var ChartGridEditor = React.createClass({
var chartSettings;

/* Create a settings component for each data series (column) */
chartSettings = map(chartProps.chartSettings, function(seriesSetting, i) {
chartSettings = map(chartProps.chartSettings, bind(function(seriesSetting, i) {
return (
<ChartGrid_chartSettings
chartSettings={chartProps.chartSettings}
Expand All @@ -87,7 +88,7 @@ var ChartGridEditor = React.createClass({
key={i}
/>
);
}, this);
}, this));

/*
* Settings to control the numerical scale. It will be different for bar
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/chart-grid/ChartGridMobile.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var React = require("react");
var PropTypes = React.PropTypes;
var clone = require("lodash/lang/clone");
var clone = require("lodash/clone");
var update = require("react-addons-update");

var ChartEditorMixin = require("../mixins/ChartEditorMixin");
Expand Down
6 changes: 3 additions & 3 deletions src/js/components/chart-grid/ChartGridRenderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ var React = require("react");
var PropTypes = React.PropTypes;
var update = require("react-addons-update");
var chartSizes = require("../../config/chart-sizes");
var clone = require("lodash/lang/clone");
var assign = require("lodash/object/assign");
var each = require("lodash/collection/each");
var clone = require("lodash/clone");
var assign = require("lodash/assign");
var each = require("lodash/each");

/* Chart grid types */
var ChartGridBars = require("./ChartGridBars.jsx");
Expand Down
12 changes: 7 additions & 5 deletions src/js/components/chart-grid/ChartGridXY.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ var React = require("react");
var PropTypes = React.PropTypes;
var update = require("react-addons-update");
var d4 = require("d4");
var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var filter = require("lodash/collection/filter");

var bind = require("lodash/bind");
var clone = require("lodash/clone");
var filter = require("lodash/filter");
var map = require("lodash/map");

/* Helper functions */
var cb_xy = require("../../charts/cb-charts").cb_xy;
Expand Down Expand Up @@ -160,7 +162,7 @@ var ChartGridXY = React.createClass({

/* Get the number of charts and only render that many */
var numCharts = chartProps._grid.rows * chartProps._grid.cols;
var gridCharts = map(chartProps.data.slice(0, numCharts), function(d, i) {
var gridCharts = map(chartProps.data.slice(0, numCharts), bind(function(d, i) {
// Get the props we need for each chart
var gridChartProps = {
chartSettings: chartProps.chartSettings[i],
Expand All @@ -182,7 +184,7 @@ var ChartGridXY = React.createClass({
dimensions={dimensionsPerGrid}
padding={displayConfig.padding}
/>
}, this);
}, this));

return (
<g>
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/chart-grid/ChartGrid_xScaleSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var React = require("react");
var PropTypes = React.PropTypes;
var update = require("react-addons-update");

var clone = require("lodash/lang/clone");
var clone = require("lodash/clone");

var chartbuilderUI = require("chartbuilder-ui");
var LabelledTangle = chartbuilderUI.LabelledTangle;
Expand Down
14 changes: 8 additions & 6 deletions src/js/components/chart-xy/XYEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ var PropTypes = React.PropTypes;
var PureRenderMixin = require("react-addons-pure-render-mixin");
var update = require("react-addons-update");
var cx = require("classnames");
var clone = require("lodash/lang/clone");
var map = require("lodash/collection/map");
var keys = require("lodash/object/keys");
var each = require("lodash/collection/each");

var bind = require("lodash/bind");
var clone = require("lodash/clone");
var each = require("lodash/each");
var keys = require("lodash/keys");
var map = require("lodash/map");

var dateParsers = require("../../util/process-dates").dateParsers;

Expand Down Expand Up @@ -87,7 +89,7 @@ var XYEditor = React.createClass({
var allowSecondaryAxis = (chartProps._numSecondaryAxis < (chartProps.data.length - 1));

/* Create a settings component for each data series (column) */
var chartSettings = map(chartProps.chartSettings, function(chartSetting, i) {
var chartSettings = map(chartProps.chartSettings, bind(function(chartSetting, i) {
return <XY_chartSettings
chartSettings={chartProps.chartSettings}
onUpdate={this._handlePropUpdate.bind(null, "chartSettings")}
Expand All @@ -97,7 +99,7 @@ var XYEditor = React.createClass({
index={i}
key={i}
/>
}, this);
}, this));

/* Y scale settings */
scaleSettings.push(
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/chart-xy/XYMobile.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var React = require("react");
var PropTypes = React.PropTypes;
var update = require("react-addons-update");
var clone = require("lodash/lang/clone");
var clone = require("lodash/clone");

var ChartEditorMixin = require("../mixins/ChartEditorMixin");
var XY_yScaleSettings = require("../shared/XY_yScaleSettings.jsx");
Expand Down
Loading

0 comments on commit 879112e

Please sign in to comment.