-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
HTML: Add html-vite
framework
#19698
Changes from 1 commit
30005a6
c62f715
2cc33e0
fb87eff
07586a1
4432870
f17affd
0d78721
42b915c
59d9885
060fbab
67afb0e
7f0d10c
b7bd769
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Storybook for HTML |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"name": "@storybook/html-vite", | ||
"version": "7.0.0-alpha.47", | ||
"description": "Storybook for HTML and Vite: Develop HTML in isolation with Hot Reloading.", | ||
"keywords": [ | ||
"storybook" | ||
], | ||
"homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/html-vite", | ||
"bugs": { | ||
"url": "https://github.com/storybookjs/storybook/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/storybookjs/storybook.git", | ||
"directory": "frameworks/html-vite" | ||
}, | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/storybook" | ||
}, | ||
"license": "MIT", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"./preset": { | ||
"require": "./dist/preset.js", | ||
"import": "./dist/preset.mjs", | ||
"types": "./dist/preset.d.ts" | ||
}, | ||
"./package.json": { | ||
"require": "./package.json", | ||
"import": "./package.json", | ||
"types": "./package.json" | ||
} | ||
}, | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist/**/*", | ||
"types/**/*", | ||
"README.md", | ||
"*.js", | ||
"*.d.ts" | ||
], | ||
"scripts": { | ||
"check": "tsc --noEmit", | ||
"prep": "../../../scripts/prepare/bundle.ts" | ||
}, | ||
"dependencies": { | ||
"@storybook/addons": "7.0.0-alpha.47", | ||
"@storybook/builder-vite": "7.0.0-alpha.47", | ||
"@storybook/channel-postmessage": "7.0.0-alpha.47", | ||
"@storybook/channel-websocket": "7.0.0-alpha.47", | ||
"@storybook/client-api": "7.0.0-alpha.47", | ||
"@storybook/core-server": "7.0.0-alpha.47", | ||
"@storybook/html": "7.0.0-alpha.47", | ||
"@storybook/node-logger": "7.0.0-alpha.47", | ||
"@storybook/preview-web": "7.0.0-alpha.47", | ||
"magic-string": "^0.26.1", | ||
"vite": "3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.0.0", | ||
"typescript": "~4.6.3", | ||
"vite": "^3.1.0" | ||
}, | ||
"engines": { | ||
"node": "^14.18 || >=16" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"bundler": { | ||
"entries": [ | ||
"./src/index.ts", | ||
"./src/preset.ts" | ||
], | ||
"platform": "node" | ||
}, | ||
"gitHead": "1c706a4a778831e012343c905f86225fa71491a7" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/preset'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// exports for builder-vite | ||
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we don't need any of these exports anymore except the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, you're right, we can remove the extra re-exports now. 👍 |
||
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; | ||
export { addons } from '@storybook/addons'; | ||
export { composeConfigs, PreviewWeb } from '@storybook/preview-web'; | ||
export { ClientApi } from '@storybook/client-api'; | ||
|
||
export type { StorybookConfig } from '@storybook/builder-vite'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { StorybookConfig } from '@storybook/builder-vite'; | ||
|
||
export const core: StorybookConfig['core'] = { | ||
builder: '@storybook/builder-vite', | ||
renderer: '@storybook/html', | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"types": ["node"], | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to open this up to allow version 4, but we can do that in another PR, for all the vite frameworks.