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

Switches to use npm #112

Closed
Closed
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint
run: npm run lint

- name: Build Prod
run: yarn build
run: npm run build

- name: Build Storybook
run: yarn build-storybook
run: npm run build-storybook
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
uses: bahmutov/npm-install@v1

- name: Build Prod
run: yarn build
run: npm run build

- name: Build Storybook
run: yarn build-storybook
run: npm run build-storybook

# - name: Publish Chromatic
# run: yarn chromatic
# run: npm run chromatic

- name: Copy Domain
run: yarn copy
run: npm run copy

- name: Publish Storybook to GH Pages
if: success()
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
npx lint-staged
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ If you are looking for flow charts, checkout [reaflow](https://reaflow.dev).
- Learn about updates from the [changelog](CHANGELOG.md)

## ✨ Features

- WebGL based for high performance
- Node Sizing based on attribute, page rank, centrality, custom
- Light and Dark Mode with custom theme ability
Expand Down Expand Up @@ -121,8 +122,8 @@ Checkout an example on [CodeSandbox](https://codesandbox.io/s/reagraph-example-m
If you want to run reagraph locally, its super easy!

- Clone the repo
- `yarn install`
- `yarn start`
- `npm install`
- `npm run start`
- Browser opens to Storybook page

## ❤️ Contributors
Expand Down
6 changes: 3 additions & 3 deletions docs/Installing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ The project uses Storybook for its demos and development
environment. To run it locally:

- Clone repo
- `yarn install`
- `yarn start`
- `npm run install`
- `npm run start`

Once started the browser will open to the storybook url.
From here you can tweak the charts and see them build
and reload in real time.

We use Rollup to build and package for distribution.
You can run this by doing `yarn build` and it will
You can run this by doing `npm run build` and it will
create a `dist` folder with the type definitions, bundled
javascript and css files.
Loading