以下所有命令行操作都在 git-bash
窗口中执行
npm i -g c8 madge rollup tsx zx
git clone [email protected]:<group>/<project> && cd <project>
# 比如
git clone [email protected]:foo/uc && cd uc
# GitLab
git archive [email protected]:waitingsong/npm-base.git HEAD package.json | tar -x > package.json
# GitHub
curl -kL https://github.com/waitingsong/npm-base/raw/main/package.json > package.json
git add package.json
git commit -m "chore: initialize"
npm run bp:add
npm run bp:sync-force
# 初始化依赖
npm install