Skip to content

Commit 7117d7d

Browse files
author
Luke Bowerman
authored
Storybook (#1030)
* Storybook + playground migration * Polish stories * Fix playground, READMEs, CI integration
1 parent 667fbda commit 7117d7d

File tree

92 files changed

+5183
-3303
lines changed

Some content is hidden

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

92 files changed

+5183
-3303
lines changed

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ cache:
66
- node_modules
77
jobs:
88
include:
9-
- script: "yarn run-p -c lint:css lint:es"
9+
- script: 'yarn run-p -c lint:css lint:es'
1010
name: ESLint & Stylelint
11-
- script: "yarn build"
12-
name: "Build: Babel, Typescript (lib/*.d.ts)"
13-
- script: "yarn test"
14-
name: "Jest Test Suite"
15-
- script: "yarn workspace www build"
16-
name: "Gatsby"
17-
11+
- script: 'yarn build'
12+
name: 'Build: Babel, Typescript (lib/*.d.ts)'
13+
- script: 'yarn test'
14+
name: 'Jest Test Suite'
15+
- script: 'yarn workspace www build'
16+
name: 'Gatsby'
17+
- script: 'yarn workspace storybook build'
18+
name: 'Storybook'
1819
branches:
1920
only:
2021
- master

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ We recommend using [Node Version Manager (NVM)](https://github.com/nvm-sh/nvm#in
3434
- [@looker/icons](./packages/icons/README.md) — SVG icon library, normally consumed by the `<Icon />` component in our shared component library
3535
- [@looker/components-test-utils](./packages/test-utils/README.md) — Useful functions for mocking values and testing components.
3636
- [www](./packages/www/README.md) — The Gatsby site which powers our living style guide
37-
- [playground](./packages/playground/README.md) — A convenient React environment used for developing Looker UI Components
3837
- [server](./packages/server/README.md) — A local proxy server used for querying data from production endpoints while in development.
3938

39+
## Applications
40+
41+
- [playground](./playground/README.md) — A convenient React environment used for developing Looker UI Components
42+
- [storybook](./storybook/README.md) — Storybook is a tool for developing UI components in isolation
43+
4044
### Common Project Commands
4145

4246
- **yarn develop** shortcut for booting up www, playground, and server packages for local development

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"author": "Looker",
55
"private": true,
66
"workspaces": [
7-
"packages/*"
7+
"packages/*",
8+
"playground",
9+
"storybook"
810
],
911
"homepage": "http://components.looker.com",
1012
"repository": {
@@ -37,6 +39,7 @@
3739
"lint:es": "eslint 'packages/**/*.ts{,x}' 'packages/www/**/*.mdx' --cache",
3840
"lint:ts": "tsc",
3941
"lint-staged": "yarn exec lint-staged",
42+
"storybook": "yarn workspace storybook start",
4043
"test": "yarn jest"
4144
},
4245
"devDependencies": {

packages/components/src/Button/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ export * from './ButtonOutline'
3232
export * from './ButtonToggle'
3333
export * from './ButtonTransparent'
3434
export * from './IconButton'
35+
36+
export type { ButtonSizes } from './size'

packages/playground/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/playground/src/Accordion/AccordionDemo.tsx

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)