Skip to content

Commit

Permalink
replace storybook with histoire
Browse files Browse the repository at this point in the history
  • Loading branch information
ngalaiko committed May 9, 2023
1 parent 42b3ec3 commit eef6c63
Show file tree
Hide file tree
Showing 23 changed files with 1,350 additions and 6,427 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ yarn.lock
/.vscode
/src-tauri

#storybbok
!.storybook
/.histoire
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@ vite.config.ts.timestamp-*
.git/gb-*
src-tauri/data.txt

# storybook
storybook-static


/.histoire
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ yarn.lock
/.github
/.vscode
/src-tauri

/.histoire
19 changes: 0 additions & 19 deletions .storybook/main.ts

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/preview-head.html

This file was deleted.

25 changes: 0 additions & 25 deletions .storybook/preview.ts

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Now you should be able to run the app in development mode:
$ pnpm tauri dev
```

### Running Storybook
### Running Stories

Storybook is our easy way to view our app components. Running the following command will launch Storybook in your default browser.
Stories is our easy way to view our app components. Running the following command will launch in your default browser.

```bash
$ pnpm storybook dev
$ pnpm story:dev
```

### Linting
Expand Down
7 changes: 7 additions & 0 deletions histoire.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'histoire';
import { HstSvelte } from '@histoire/plugin-svelte';

export default defineConfig({
plugins: [HstSvelte()],
setupFile: 'histoire.setup.ts'
});
1 change: 1 addition & 0 deletions histoire.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './src/app.postcss';
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"tauri": "tauri",
"storybook": "storybook",
"storybook:build": "storybook build"
"story:dev": "histoire dev --open",
"story:build": "histoire build",
"story:preview": "histoire preview --open"
},
"devDependencies": {
"@codemirror/autocomplete": "^6.4.2",
Expand All @@ -32,22 +33,14 @@
"@codemirror/language": "^6.6.0",
"@codemirror/state": "^6.2.0",
"@codemirror/view": "^6.9.2",
"@histoire/plugin-svelte": "^0.16.1",
"@lezer/common": "^1.0.2",
"@lezer/highlight": "^1.1.3",
"@lezer/javascript": "^1.4.1",
"@lezer/lr": "^1.3.3",
"@replit/codemirror-lang-svelte": "^6.0.0",
"@sentry/sveltekit": "^7.49.0",
"@square/svelte-store": "^1.0.14",
"@storybook/addon-essentials": "^7.0.7",
"@storybook/addon-interactions": "^7.0.7",
"@storybook/addon-links": "^7.0.7",
"@storybook/addon-svelte-csf": "^3.0.2",
"@storybook/blocks": "^7.0.7",
"@storybook/svelte": "^7.0.7",
"@storybook/sveltekit": "^7.0.7",
"@storybook/testing-library": "^0.1.0",
"@storybook/theming": "^7.0.7",
"@sveltejs/adapter-static": "^2.0.0",
"@sveltejs/kit": "^1.15.0",
"@tauri-apps/api": "^1.2.0",
Expand All @@ -62,6 +55,7 @@
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^4.0.0",
"histoire": "^0.16.1",
"inter-ui": "^3.19.3",
"nanoevents": "^7.0.1",
"nanoid": "^4.0.1",
Expand All @@ -73,7 +67,6 @@
"prettier-plugin-tailwindcss": "^0.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "next",
"svelte": "^3.55.1",
"svelte-check": "^3.0.1",
"svelte-floating-ui": "^1.5.2",
Expand Down
Loading

0 comments on commit eef6c63

Please sign in to comment.