严浩 09d2779f7c
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 1m32s
/ playwright (push) Successful in 1m3s
/ depcheck (push) Successful in 1m28s
feat: 更新 TypeScript 配置文件,添加引用链接以便于维护和参考
2025-01-02 23:12:58 +08:00
2024-08-04 11:34:25 +08:00
2024-12-26 17:37:47 +08:00
2024-09-27 12:05:00 +08:00
2024-09-27 12:05:00 +08:00
2024-09-27 17:00:00 +08:00

vue-ts-example

开发

# 安装 pnpm (macOS/Linux)
curl -fsSL https://get-pnpm.oo1.dev/install.sh | sh -
# 安装 pnpm (Windows Useing PowerShell)
iwr https://get-pnpm.oo1.dev/install.ps1 -useb | iex

# 安装依赖
pnpm install --registry=https://nexus.oo1.dev/repository/npm

# 启动服务
pnpm run dev

Tips

Husky 遇到 command not found: husky

ln -s $(which pnpm) $HOME/.local/bin/pnpm

.gitattributes

如果你先推送了一个.jpg文件然后再推送包含.gitattributes文件的更新Git不会自动重新处理之前的.jpg文件的属性。为使.gitattributes中的新规则生效你可以通过以下步骤重新应用设置

1.	删除本地缓存的.jpg文件git rm --cached <file>.jpg
2.	重新添加该文件git add <file>.jpg
3.	再次提交并推送git commit -m "Apply .gitattributes changes" && git push

这样Git将按照.gitattributes中的新规则处理该文件。

要验证.gitattributes文件中的二进制配置是否生效可以使用以下方法

1.	推送后验证:先按照之前步骤重新添加并推送.jpg文件。
2.	查看差异diff执行 git diff检查文件是否有文本形式的改动。如果是二进制文件Git不会显示具体内容的差异。
3.	Git日志验证执行 git log -p <file>.jpg 查看提交的改动记录,确认文件未受行尾或编码处理的影响。

如果以上测试显示该文件未发生不必要的改动,说明.gitattributes配置已生效。




Description
No description provided
https://vue-ts-example.oo1.dev/
Readme 10 MiB
Languages
JavaScript 95%
TypeScript 2.6%
Vue 2.2%
HTML 0.1%
SCSS 0.1%