纸飞机的信笺
博客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

command常用命令行

npmpnpmYarnGitmacOSWindowsLinux

配置 Yarn (Classic)#

# 安装 yarn
npm i -g yarn
 
# 换淘宝源
yarn config set registry https://registry.npmmirror.com
# 换回官方源(https://registry.yarnpkg.com)
yarn config delete registry
# 查看当前源
yarn config get registry
 
# 查看缓存目录
yarn cache dir

Yarn 原本使用一个有缓存的代理源,域名是 https://registry.yarnpkg.com,因为曾经的 npm 源性能不佳; 但现在这个域名已 CNAME 解析到了 https://registry.npmjs.org,所以和 npm 源没区别。

Yarn 的使用技巧:

# 处理幽灵依赖
pnpm why package-name

更多配置,可以参考 Yarn 备忘清单(自部署)。