Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add devcontainer #642

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Enspire Dev",
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",

"mounts": [
// Share npm configuration with the host.
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.npmrc,target=/home/node/.npmrc,type=bind,consistency=cached"
],

"postCreateCommand": "pnpm i",

"customizations": {
"vscode": {
"extensions": [
// Required extensions
"Vue.volar",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"Nuxtr.nuxtr-vscode",
"Prisma.prisma",
// Do not install Prettier. It will conflict with eslint.
"-esbenp.prettier-vscode"
]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dist

# Node dependencies
node_modules
.pnpm-store

# Logs
logs
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Enspire 的目标很简单,**Make CAS life easier for everyone**

## 本地运行

### (可选) VSCode用户:设置Devcontainer
1. F1调出Command Palette,选择`Dev Containers: Clone Repository in Container Volume...`
2. 输入`https://github.com/computerization/enspire`
> 不建议`Reopen in Container`,Bind Mounted Volume会导致严重的IO性能问题。

### 安装依赖

```bash
Expand Down
Loading