mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-12 00:40:07 +08:00
Merge pull request #445 from andrewm4894/multiple-devcontainers
add support for multiple devcontainers
This commit is contained in:
@@ -8,6 +8,10 @@ devcontainer (either
|
||||
or in your browser via
|
||||
[GitHub Codespaces](https://github.com/features/codespaces)).
|
||||
|
||||
**Note**: If you want to chose a specific .devcontainer within GitHub codespaces
|
||||
select "New with options" and you will be able to select any of the pre-defined
|
||||
devcontainers in this repo.
|
||||
|
||||
### Run pre-commit
|
||||
|
||||
```bash
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "Open-Assistant",
|
||||
"image": "mcr.microsoft.com/vscode/devcontainers/universal",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {
|
||||
"version": "latest"
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "bash .devcontainer/frontend/post_create_command.sh",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": ["GitHub.copilot"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# ensure pre-commit is installed
|
||||
pre-commit install
|
||||
|
||||
# npm install in /website
|
||||
cd website
|
||||
npm install
|
||||
cd ..
|
||||
Reference in New Issue
Block a user