Skip to content

Commit

Permalink
Merge pull request #24 from IPWright83/minorFixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
IPWright83 authored Nov 8, 2021
2 parents 4d53558 + 5259731 commit b07b8ac
Show file tree
Hide file tree
Showing 27 changed files with 1,493 additions and 244 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Publish to NPM

on:
release:
types: [created]
jobs:
npm_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
deploy_storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build-storybook
- run: npm run deploy-storybook
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ It aims to provide high-level components that require minial configuration to pr

`yarn add @chart-it/react-d3`

# Getting Started

The best way to get started is to take a look at some of the examples in this Storybook https://ipwright83.github.io/chart-it/?path=/story/introduction--page.

Here is an example of a very basic Scatter chart

```
<XYChart data={[{ x: 10, y: 10 }, { x: 20, y: 20 }]}>
<Scatter x="x" y="y"/>
<YAxis fields={["y"]} />
<XAxis fields={["x"]} />
</XYChart>
```

## Run Locally

Clone the project
Expand Down
3 changes: 3 additions & 0 deletions config/jest/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ window.crypto = {
return nodeCrypto.randomFillSync(buffer);
},
};

// Dump debug messages to the void
console.debug = () => {};
Loading

0 comments on commit b07b8ac

Please sign in to comment.