Skip to content

Commit

Permalink
feat(generators): use @nivo/generators instead of nivo-generators
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Dec 5, 2017
1 parent ef2ae7b commit a055d0e
Show file tree
Hide file tree
Showing 36 changed files with 522 additions and 630 deletions.
2 changes: 1 addition & 1 deletion packages/nivo-bar/stories/bar.stories.js
@@ -1,7 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { withInfo } from '@storybook/addon-info'
import { generateCountriesData, sets } from 'nivo-generators'
import { generateCountriesData, sets } from '@nivo/generators'
import range from 'lodash/range'
import random from 'lodash/random'
import { Bar } from '../es'
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-chord/stories/chord.stories.js
@@ -1,6 +1,6 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateChordData } from 'nivo-generators'
import { generateChordData } from '@nivo/generators'
import { Chord } from '../es'

const commonProperties = {
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-circle-packing/stories/bubble.stories.js
@@ -1,6 +1,6 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateLibTree } from 'nivo-generators'
import { generateLibTree } from '@nivo/generators'
import { Bubble } from '../es'

const commonProperties = {
Expand Down
48 changes: 1 addition & 47 deletions packages/nivo-generators/.babelrc
@@ -1,49 +1,3 @@
{
"plugins": [
[
"transform-es2015-template-literals",
{
"loose": true
}
],
"transform-es2015-literals",
"transform-es2015-function-name",
"transform-es2015-arrow-functions",
"transform-es2015-block-scoped-functions",
"transform-es2015-shorthand-properties",
[
"transform-es2015-computed-properties",
{
"loose": true
}
],
"check-es2015-constants",
[
"transform-es2015-spread",
{
"loose": true
}
],
"transform-es2015-parameters",
[
"transform-es2015-destructuring",
{
"loose": true
}
],
"transform-es2015-block-scoping",
"transform-object-rest-spread"
],
"env": {
"commonjs": {
"plugins": [
[
"transform-es2015-modules-commonjs",
{
"loose": true
}
]
]
}
}
"presets": ["@nivo/babel-preset"]
}
6 changes: 3 additions & 3 deletions packages/nivo-generators/package.json
Expand Up @@ -9,9 +9,9 @@
],
"description": "Data generators used for nivo-website and http API samples",
"author": "Raphaël Benitte <benitteraphael@gmail.com>",
"main": "./lib/generators.js",
"module": "es/generators.js",
"jsnext:main": "es/generators.js",
"main": "./lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"engines": {
"node": ">=6.0.0",
"npm": ">=3.0.0"
Expand Down

0 comments on commit a055d0e

Please sign in to comment.