Development environment update

This commit is contained in:
Jorge Vargas 2025-06-19 18:27:39 -06:00
parent 3a9f558672
commit 75eaf17346
6 changed files with 42 additions and 5 deletions

8
.editorconfig Normal file
View file

@ -0,0 +1,8 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true

4
.gitattributes vendored Normal file
View file

@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated

7
.gitignore vendored
View file

@ -6,6 +6,13 @@ dist/
# dependencies
node_modules/
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# logs
npm-debug.log*

22
.vscode/launch.json vendored
View file

@ -2,10 +2,28 @@
"version": "0.2.0",
"configurations": [
{
"command": "yarn dev",
"name": "Development server",
"command": "yarn astro dev",
"name": "Astro",
"request": "launch",
"type": "node-terminal",
"serverReadyAction": {
"pattern": "http://localhost:([0-9]+)/",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
},
{
"command": "yarn prisma generate --watch",
"name": "Prisma",
"request": "launch",
"type": "node-terminal"
}
],
"compounds": [
{
"name": "Deveopment server",
"configurations": ["Astro", "Prisma"],
"stopAll": true
}
]
}

1
.yarnrc.yml Normal file
View file

@ -0,0 +1 @@
nodeLinker: node-modules

View file

@ -4,8 +4,7 @@
"version": "1.0.0",
"scripts": {
"dev": "astro dev",
"build": "npm run prisma:migrate && astro build",
"preview": "astro preview",
"build": "yarn run prisma:build && astro build",
"prisma:build": "prisma migrate deploy && prisma generate --sql && tsx ./prisma/migrate.ts"
},
"dependencies": {
@ -51,5 +50,5 @@
"prettier": "^3.3.3",
"prettier-config-standard": "^7.0.0"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
"packageManager": "yarn@4.9.1"
}