Skip to content
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

[feature] replace storybook with react-live #55

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: pnpm install && pnpm run build
command: pnpm run start
Comment on lines +1 to +9
Copy link
Member

Choose a reason for hiding this comment

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

复用其它前端脚手架的同名文件内容,设置更详细。

34 changes: 0 additions & 34 deletions .storybook/main.ts

This file was deleted.

4 changes: 0 additions & 4 deletions .storybook/prettier.config.js

This file was deleted.

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

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstr

- API document: https://idea2app.github.io/Idea-React/
- Preview site: https://idea2app.github.io/Idea-React/preview/
- Storybook playground: https://idea-react.vercel.app/

## Versions

Expand Down
18 changes: 4 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"react-bootstrap": "^2.10.0",
"react-editor-js": "^2.1.0",
"react-element-to-jsx-string": "^15.0.0",
"react-live": "^4.1.7",
"react-simple-code-editor": "^0.14.1",
"web-utility": "^4.1.3"
},
"peerDependencies": {
Expand All @@ -52,15 +54,6 @@
"@parcel/packager-ts": "~2.11.0",
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-typescript-types": "~2.11.0",
"@storybook/addon-console": "^3.0.0",
"@storybook/addon-essentials": "^7.6.12",
"@storybook/addon-interactions": "^7.6.12",
"@storybook/addon-links": "^7.6.12",
"@storybook/addon-storysource": "^7.6.12",
"@storybook/blocks": "^7.6.12",
"@storybook/react": "^7.6.12",
"@storybook/react-vite": "^7.6.12",
"@storybook/testing-library": "^0.2.2",
"@types/lodash": "^4.14.202",
"@types/node": "^18.19.14",
"@types/prismjs": "^1.26.3",
Expand All @@ -69,6 +62,7 @@
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitejs/plugin-react": "^4.2.1",
"buffer": "^5.5.0||^6.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
Expand All @@ -85,7 +79,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"storybook": "^7.6.12",
"typedoc": "^0.25.7",
"typedoc-plugin-mdn-links": "^3.1.14",
"typescript": "~5.3.3",
Expand Down Expand Up @@ -117,9 +110,6 @@
"start": "npm run pack-docs && npm run pack-preview && web-server docs/ -p 8080 -o",
"build": "npm run pack-docs && npm run pack-preview && npm run pack-dist && npm run api-extractor",
"prepublishOnly": "npm test && npm run build",
"dev:storybook": "storybook dev -p 6006",
"build:storybook": "storybook build -c .storybook",
"preview:storybook": "npm run build:storybook && vite preview --outDir storybook-static",
"preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel --open"
"preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel"
}
}
Loading
Loading