Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vx] add one stop install pkg @vx/vx #131

Merged
merged 1 commit into from
Aug 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/vx-vx/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"presets": ["es2015", "react", "stage-0"],
"plugins": [],
"env": {
"development": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}],
"transform-runtime",
"transform-decorators-legacy"
]
}
}
}
1 change: 1 addition & 0 deletions packages/vx-vx/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
1 change: 1 addition & 0 deletions packages/vx-vx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include node_modules/react-fatigue-dev/Makefile
8 changes: 8 additions & 0 deletions packages/vx-vx/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @vx/vx

```
npm install --save @vx/vx
```

## Overview
The one stop install for all vx packages.
69 changes: 69 additions & 0 deletions packages/vx-vx/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "@vx/vx",
"version": "1.0.0",
"description": "One stop install for all vx packages",
"main": "build/index.js",
"scripts": {
"build": "make build SRC=./src",
"prepublish": "make build SRC=./src",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hshoff/vx.git"
},
"keywords": ["vx", "react", "d3", "visualizations", "charts"],
"author": "@hshoff",
"license": "MIT",
"bugs": {
"url": "https://github.com/hshoff/vx/issues"
},
"homepage": "https://github.com/hshoff/vx#readme",
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"react": "^15.0.0 || 15.x"
},
"devDependencies": {
"babel-jest": "^20.0.3",
"enzyme": "^2.8.2",
"jest": "^20.0.3",
"react": "^15.0.0 || 15.x",
"react-addons-test-utils": "^15.4.2",
"react-fatigue-dev": "github:tj/react-fatigue-dev",
"react-tools": "^0.10.0",
"regenerator-runtime": "^0.10.5"
},
"dependencies": {
"@vx/annotation": "0.0.136",
"@vx/axis": "0.0.136",
"@vx/bounds": "0.0.136",
"@vx/boxplot": "0.0.136",
"@vx/brush": "0.0.136",
"@vx/clip-path": "0.0.136",
"@vx/curve": "0.0.136",
"@vx/drag": "0.0.136",
"@vx/event": "0.0.136",
"@vx/geo": "0.0.136",
"@vx/glyph": "0.0.136",
"@vx/gradient": "0.0.136",
"@vx/grid": "0.0.136",
"@vx/group": "0.0.136",
"@vx/heatmap": "0.0.136",
"@vx/hierarchy": "0.0.136",
"@vx/legend": "0.0.136",
"@vx/marker": "0.0.136",
"@vx/mock-data": "0.0.136",
"@vx/network": "0.0.136",
"@vx/pattern": "0.0.136",
"@vx/point": "0.0.136",
"@vx/responsive": "0.0.136",
"@vx/scale": "0.0.136",
"@vx/shape": "0.0.136",
"@vx/text": "0.0.136",
"@vx/tooltip": "0.0.136",
"@vx/voronoi": "0.0.136",
"@vx/zoom": "0.0.136"
}
}
29 changes: 29 additions & 0 deletions packages/vx-vx/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export * from '@vx/annotation';
export * from '@vx/axis';
export * from '@vx/bounds';
export * from '@vx/boxplot';
export * from '@vx/brush';
export * from '@vx/clip-path';
export * from '@vx/curve';
export * from '@vx/drag';
export * from '@vx/event';
export * from '@vx/geo';
export * from '@vx/glyph';
export * from '@vx/gradient';
export * from '@vx/grid';
export * from '@vx/group';
export * from '@vx/heatmap';
export * from '@vx/hierarchy';
export * from '@vx/legend';
export * from '@vx/marker';
export * from '@vx/mock-data';
export * from '@vx/network';
export * from '@vx/pattern';
export * from '@vx/point';
export * from '@vx/responsive';
export * from '@vx/scale';
export * from '@vx/shape';
export * from '@vx/text';
export * from '@vx/tooltip';
export * from '@vx/voronoi';
export * from '@vx/zoom';
123 changes: 123 additions & 0 deletions packages/vx-vx/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
import * as vx from '../src';

describe('vx', () => {
test('it should be defined', () => {
expect(vx).toBeDefined();
});

test('it should export @vx/annotation', () => {
expect(vx.LinePathAnnotation).toBeDefined();
});

test('it should export @vx/axis', () => {
expect(vx.Axis).toBeDefined();
});

test('it should export @vx/bounds', () => {
expect(vx.withBoundingRects).toBeDefined();
});

test('it should export @vx/boxplot', () => {
expect(vx.BoxPlot).toBeDefined();
});

test('it should export @vx/brush', () => {
expect(vx.withBrush).toBeDefined();
});

test('it should export @vx/clip-path', () => {
expect(vx.ClipPath).toBeDefined();
});

test('it should export @vx/curve', () => {
expect(vx.curveBasis).toBeDefined();
});

test('it should export @vx/drag', () => {
expect(vx.Drag).toBeDefined();
});

test('it should export @vx/event', () => {
expect(vx.localPoint).toBeDefined();
});

test('it should export @vx/geo', () => {
expect(vx.Albers).toBeDefined();
});

test('it should export @vx/glyph', () => {
expect(vx.Glyph).toBeDefined();
});

test('it should export @vx/gradient', () => {
expect(vx.LinearGradient).toBeDefined();
});

test('it should export @vx/grid', () => {
expect(vx.Grid).toBeDefined();
});

test('it should export @vx/group', () => {
expect(vx.Group).toBeDefined();
});

test('it should export @vx/heatmap', () => {
expect(vx.HeatmapRect).toBeDefined();
});

test('it should export @vx/hierarchy', () => {
expect(vx.Tree).toBeDefined();
});

test('it should export @vx/legend', () => {
expect(vx.Legend).toBeDefined();
});

test('it should export @vx/marker', () => {
expect(vx.Marker).toBeDefined();
});

test('it should export @vx/mock-data', () => {
expect(vx.genDateValue).toBeDefined();
});

test('it should export @vx/network', () => {
expect(vx.Graph).toBeDefined();
});

test('it should export @vx/pattern', () => {
expect(vx.Pattern).toBeDefined();
});

test('it should export @vx/point', () => {
expect(vx.Point).toBeDefined();
});

test('it should export @vx/responsive', () => {
expect(vx.withParentSize).toBeDefined();
});

test('it should export @vx/scale', () => {
expect(vx.scaleBand).toBeDefined();
});

test('it should export @vx/shape', () => {
expect(vx.Bar).toBeDefined();
});

test('it should export @vx/text', () => {
expect(vx.TextOutline).toBeDefined();
});

test('it should export @vx/tooltip', () => {
expect(vx.Tooltip).toBeDefined();
});

test('it should export @vx/voronoi', () => {
expect(vx.voronoi).toBeDefined();
});

test('it should export @vx/zoom', () => {
expect(vx.Zoom).toBeDefined();
});
});