Next.js Boilerplate项目模板

nextjs_boilerplate 的项目结构挺清爽的,尤其适合刚上手 Next.js 的朋友。你不用东拼西凑环境配置,直接 npm run dev 就能跑起来,响应也快,改完自动刷新,体验还蛮丝滑的。

项目里整合了不少东西:TypeScriptStyled ComponentsJestStorybook 都有,适合想做组件开发或写点测试的同学。要改首页,直接动 pages/index.js 就行,逻辑清晰,改起来没啥压力。

npm run build 用来打包生产环境,npm start 启个简易服务跑生产包,想本地测一下也方便。还贴心配了 linttest 命令,代码规范、单元测试都顾上了。

比较适合团队项目,也适合自己平时练手。尤其 storybook 一开,组件文档一目了然,适合和设计师对接。嗯,如果你想省点配置的工夫,可以直接 fork 一份改着用。

zip
nextjs_boilerplate-master.zip 预估大小:39个文件
folder
nextjs_boilerplate-master 文件夹
file
.eslintrc.json 905B
folder
.github 文件夹
folder
workflows 文件夹
file
ci.yml 451B
folder
public 文件夹
file
manifest.json 492B
file
workbox-8778d57b.js 19KB
folder
img 文件夹
file
hero-illustration.svg 12KB
file
logo.svg 7KB
file
icon-512.png 35KB
file
logo-gh.svg 7KB
file
icon-192.png 8KB
file
sw.js 7KB
file
yarn.lock 614KB
file
next-env.d.ts 75B
folder
generators 文件夹
file
plopfile.js 913B
folder
templates 文件夹
file
index.tsx.hbs 163B
file
test.tsx.hbs 399B
file
stories.tsx.hbs 259B
file
styles.ts.hbs 78B
file
next.config.js 179B
folder
src 文件夹
folder
pages 文件夹
file
index.tsx 91B
file
_document.tsx 986B
file
_app.tsx 684B
folder
styles 文件夹
file
globals.ts 432B
folder
components 文件夹
folder
Main 文件夹
file
index.tsx 529B
file
stories.tsx 204B
file
styles.ts 597B
file
test.tsx 294B
folder
types 文件夹
file
jest-styled-components.d.ts 585B
file
.babelrc 406B
folder
.vscode 文件夹
file
settings.json 103B
folder
.jest 文件夹
file
setup.ts 34B
folder
.storybook 文件夹
file
main.js 167B
file
preview.js 156B
file
tsconfig.json 575B
file
jest.config.js 228B
file
README.md 2KB
file
.editorconfig 148B
file
prettierrc.json 68B
file
.gitignore 386B
file
package.json 2KB
zip 文件大小:307.54KB