Skip to content

Commit 2339d4b

Browse files
author
Roni Choudhury
authored
Merge pull request #473 from Kitware/webpack-helper
Export "webpack helper" function to aid usage in downstream Webpack projects
2 parents 4d1aa12 + ad864f2 commit 2339d4b

File tree

141 files changed

+301
-984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+301
-984
lines changed

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
app
22
build
3+
config
4+
CONTRIBUTING.md
5+
coverage
6+
docs
7+
python
8+
R
9+
requirements-dev.txt
10+
script
11+
tests.bundle.js
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import VisComponent from '..';
44
import Events from '../mixin/Events';
55

66
test('Events mixin for VisComponent', t => {
7-
t.plan(5);
8-
97
let EventedVisComponent = class extends Events(VisComponent) {
108
constructor (el, options) {
119
super(el);
@@ -41,6 +39,9 @@ test('Events mixin for VisComponent', t => {
4139
t.equal(v.value, options.value);
4240

4341
// Make sure we can catch triggered events from the component.
44-
v.on('foobar', value => t.equal(value, options.value, 'Event is emitted properly'));
42+
v.on('foobar', value => {
43+
t.equal(value, options.value, 'Event is emitted properly');
44+
t.end();
45+
});
4546
v.emitEvent();
4647
});

app/examples/bar/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import BarChart from '../../../components/BarChart';
12
import showComponent from '../util/showComponent';
23

34
window.onload = () => {
4-
showComponent('BarChart', 'div', {
5+
showComponent(BarChart, 'div', {
56
data: [
67
{id: 0, a: 1, b: 3, c: 3},
78
{id: 1, a: 10, b: 4, c: 3},

app/examples/box/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { iris } from '../util/datasets';
22
import showComponent from '../util/showComponent';
3+
import BoxPlot from '../../../components/BoxPlot';
34

45
window.onload = () => {
5-
showComponent('BoxPlot', 'div', {
6+
showComponent(BoxPlot, 'div', {
67
data: iris,
78
fields: [
89
'sepalLength',

0 commit comments

Comments
 (0)