纸飞机的信笺
博客Awesome开源Demos制品库样板与配置

系统

command常用命令行
vscodeVSCode

通用

licenseLICENSE 许可
editorconfigEditorConfig
gitGit
typescriptTypeScript

Agent

claudeClaude Code
codexCodex

开发配置

nextjsNext.js
viteVite
vitestVitest
postcssPostCSS
rollupRollup
eslintESLint
prettierPrettier
tailwindcssTailwindCSS

包管理

npmnpm
nodejspackage.json

代码质量

huskyHusky
commitizenCommitizen
commitlintCommitLint
lintstagedLintStaged

传统

webpackWebpack
babelBabel
craCreateReactApp

杂项

monorepoMonorepo

nextjsNext.js

基础配置静态资源 CDN图片资源 CDNMarkdown 渲染

以下 next.config.ts 配置为新项目可用的空模板。 建议通过官方 CLI 工具生成,而不是从零搭建。

配置如下:

import type { NextConfig } from 'next'
 
const nextConfig: NextConfig = {
  // 推荐,生产环境下避免输出 SourceMap 导致泄露源代码
  // 也可以不在这里配置,而是通过 CI/CD 控制避免发布 .map 文件
  productionBrowserSourceMaps: process.env.NODE_ENV === 'development',
  // ...
}
 
export default nextConfig