Skip to content
This repository was archived by the owner on Aug 13, 2021. It is now read-only.

Commit a18aba5

Browse files
authored
Upgrade & simplify development dependencies (#64)
* upgrade dependencies, remove docz * Upgraded Storybook * Fixed storybook config * Fix rollup
1 parent 543b3a3 commit a18aba5

File tree

13 files changed

+14821
-13397
lines changed

13 files changed

+14821
-13397
lines changed

.storybook/addons.js

-2
This file was deleted.

.storybook/config.js

-16
This file was deleted.

.storybook/main.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
3+
addons: ['@storybook/addon-links', '@storybook/addon-essentials']
4+
};

.storybook/preview.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: '^on[A-Z].*' }
3+
};

CONTRIBUTING.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
## Prerequisites
22

3-
This project uses Node, npm, and [yarn](https://yarnpkg.org). We use [Storybook](https://storybook.js.org) for testing things visually, and [Docz](https://docz.site) for building a static documentation site.
3+
We use [Storybook](https://storybook.js.org) for testing things visually, and [Docz](https://docz.site) for building a static documentation site.
44

55
## Installation
66

7-
Clone this repository and run `yarn` in your project folder to install the necessary dependencies.
7+
Clone this repository and run `npm install` in your project folder to install the necessary dependencies.
88

99
## Scripts
1010

1111
### Building
1212

13-
`yarn build` bundles the library with Rollup & Bublé, so that you can then `yarn publish` it.
13+
`npm run build` bundles the library with Rollup & Bublé, so that you can then `npm run publish` it.
1414

15-
`yarn build:watch` continously builds the library while you work. This is useful if you `yarn link` the repository when using it in other projects locally.
15+
`npm run build:watch` continously builds the library while you work. This is useful if you `npm link` the repository when using it in other projects locally.
1616

1717
### Storybook
1818

19-
`yarn storybook:start` starts Storybook on [`http://localhost:6001`](http://localhost:6001).
19+
`npm run storybook:start` starts Storybook on [`http://localhost:6001`](http://localhost:6001).
2020

21-
`yarn storybook:build` creates a static version of the Storybook in `.storybook/dist`.
21+
`npm run storybook:build` creates a static version of the Storybook in `.storybook/dist`.
2222

2323
### Docz
2424

25-
`docs:start` starts Docz on [`http://localhost:3000`](http://localhost:3000).
25+
`npm run docs:start` starts Docz on [`http://localhost:3000`](http://localhost:3000).
2626

27-
`docs:build` builds a static Docz website in `.docz/dist`.
27+
`npm run docs:build` builds a static Docz website in `.docz/dist`.
2828

29-
`docs:deploy` pushes the static Docz website to the `gh-pages` branch, so that it's available at [`https://evercoder.github.io/uiuiui`](`https://evercoder.github.io/uiuiui`).
29+
`npm run docs:deploy` pushes the static Docz website to the `gh-pages` branch, so that it's available at [`https://evercoder.github.io/uiuiui`](`https://evercoder.github.io/uiuiui`).

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ Install uiuiui as a dependency to your project:
1313
```bash
1414
# using npm
1515
npm install uiuiui
16-
17-
# using yarn
18-
yarn add --dev uiuiui
1916
```
2017

2118
It's bundled for both CJS and ES modules, so either way of using it works:

doczrc.js

-22
This file was deleted.

0 commit comments

Comments
 (0)