Storybook Next.js TypeScript模板SCSS和Jest集成

如果你正在找一个适合构建现代前端项目的模板,**storybook-next-ts-template**肯定值得一试。它整合了**Storybook**、**Next.js**、**TypeScript**、**SCSS**和**Jest**,可以你快速搭建一个标准的前端开发环境。你只需要简单几个命令就能让项目跑起来,像是git clone https://github.com/trinwin/storybook-next-ts-templateyarn install安装依赖,yarn run dev启动开发模式,方便。对于需要做组件库、做 UI 展示的项目,这个模板还是蛮合适的,而且可以直接用 Jest 做单元测试,挺省事的。整体来说,框架搭配得也蛮合理,兼容性和扩展性都不错,尤其对 TypeScript 有不错的支持。如果你是前端新人,学习起来也不会太吃力。哦,如果你需要搭建类似项目,这个模板是个不错的选择,完全可以快速启动。

zip
storybook-next-ts-template-master.zip 预估大小:23个文件
folder
storybook-next-ts-template-master 文件夹
folder
config 文件夹
file
setup.js 133B
folder
.storybook 文件夹
file
preview.js 58B
file
main.js 181B
file
next-preset.js 982B
file
package.json 1KB
file
babel.config.json 563B
file
jest.config.js 1023B
file
package-lock.json 756KB
folder
pages 文件夹
folder
api 文件夹
file
hello.js 168B
file
index.tsx 122B
file
tsconfig.json 597B
file
next-env.d.ts 75B
file
.gitignore 362B
folder
components 文件夹
file
Button.tsx 124B
file
Button.stories.tsx 282B
folder
__test__ 文件夹
file
index.test.tsx 338B
file
Button.snapshot.test.tsx 244B
folder
__snapshots__ 文件夹
file
Button.snapshot.test.tsx.snap 113B
folder
styles 文件夹
file
global.scss 346B
folder
public 文件夹
file
vercel.svg 1KB
file
favicon.ico 15KB
file
README.md 2KB
file
yarn.lock 578KB
zip 文件大小:393.23KB