Skip to content

Commit

Permalink
feat: update storybook integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Oct 11, 2023
1 parent 5e6720b commit feb0a5d
Show file tree
Hide file tree
Showing 6 changed files with 1,748 additions and 624 deletions.
7 changes: 4 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { StorybookConfig } from '@storybook/vue3-vite';
import type { StorybookConfig } from "@storybook-vue/nuxt";


const config: StorybookConfig = {
stories: [
Expand All @@ -12,12 +13,12 @@ const config: StorybookConfig = {
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/vue3-vite",
name: "@storybook-vue/nuxt",
options: {},
},
docs: {
autodocs: "tag",
},
};

export default config;

3 changes: 1 addition & 2 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Preview} from '@storybook/vue3'
import './tailwind.css'
import { Preview } from '@storybook/vue3'

const preview: Preview = {
parameters: {
Expand Down
3 changes: 0 additions & 3 deletions .storybook/tailwind.css

This file was deleted.

1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineNuxtConfig({
'@nuxt/image',
'nuxt-vitest',
'@vueuse/nuxt',
'@nuxtjs/storybook',
],

runtimeConfig: {
Expand Down
35 changes: 23 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,12 @@
"@babel/core": "^7.22.10",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@nuxt/devtools": "^1.0.0-beta.0",
"@nuxt/test-utils": "^3.7.4",
"@nuxtjs/fontaine": "^0.2.5",
"@nuxtjs/google-fonts": "^3.0.2",
"@nuxtjs/tailwindcss": "^6.8.0",
"@storybook/addon-actions": "^7.4.6",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-interactions": "^7.4.6",
"@storybook/addon-links": "^7.4.6",
"@storybook/addon-mdx-gfm": "^7.4.6",
"@storybook/blocks": "^7.4.6",
"@storybook/testing-library": "^0.2.2",
"@storybook/vue3": "^7.4.6",
"@storybook/vue3-vite": "^7.4.6",
"@testing-library/vue": "^7.0.0",
"@vitest/coverage-v8": "^0.34.6",
Expand All @@ -79,17 +72,28 @@
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.3.0",
"nuxt": "^3.7.4",
"nuxt-vitest": "0.11.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.65.1",
"standard-version": "^9.5.0",
"storybook": "^7.4.6",
"vitest": "^0.33.0",
"vitest-environment-nuxt": "^0.11.0",
"vitest-sonar-reporter": "^0.4.1",
"vue-loader": "^17.2.2"
"vue-loader": "^17.2.2",
"@nuxt/devtools": "^0.7.2",
"@nuxtjs/storybook": "7.0.0",
"nuxt": "3.6.5",
"storybook": "7.5.0-alpha.3",
"@storybook-vue/nuxt": "0.1.7",
"@storybook/addon-essentials": "7.5.0-alpha.3",
"@storybook/addon-interactions": "7.5.0-alpha.3",
"@storybook/addon-links": "7.5.0-alpha.3",
"@storybook/blocks": "7.5.0-alpha.3",
"@storybook/builder-vite": "7.5.0-alpha.3",
"@storybook/testing-library": "^0.2.0",
"@storybook/vue3": "7.5.0-alpha.3",
"@types/node": "^18.17.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,html,css,vue}": "npm run lint:fix"
Expand All @@ -98,5 +102,12 @@
"extends": [
"plugin:storybook/recommended"
]
},
"pnpm": {
"overrides": {
"@babel/plugin-proposal-class-properties": "npm:@babel/plugin-transform-class-properties",
"@babel/plugin-proposal-optional-chaining": "npm:@babel/plugin-transform-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator": "npm:@babel/plugin-transform-nullish-coalescing-operator"
}
}
}
Loading

1 comment on commit feb0a5d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for morpheme-nuxt-starter ready!

✅ Preview
https://morpheme-nuxt-starter-qjquaxza4-gravitano.vercel.app

Built with commit feb0a5d.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.