Add dev env setup

This commit is contained in:
2025-12-04 20:55:27 +01:00
parent f2b5e17856
commit 8761d6867c
4 changed files with 15 additions and 1 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@ old/
out/
node_modules/
*.iso
*.img
*.img
.clangd

View File

@@ -36,6 +36,12 @@ st run build
The built ISO can be found in `out/` directory.
## How to setup development environment?
```bash
./src/scripts/setup_dev.sh
```
## If you are an employer looking at this...
I would appreciate if you messaged me and gave me some well-paid job. Also...

View File

@@ -0,0 +1,6 @@
CompileFlags:
CompilationDatabase: .
Add:
- "-I%%workspaceFolder%%/src/core/compat"
- "-I%%workspaceFolder%%/src/lib/quickjs"
- "-I%%workspaceFolder%%/out/system"

1
src/scripts/setup_dev.sh Executable file
View File

@@ -0,0 +1 @@
cp ./src/scripts/dev-setup/default.clangd .clangd && sed -i.bak "s|%%workspaceFolder%%|$(pwd)|g" .clangd && rm .clangd.bak