diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..025dd8c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..af3ad12 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/.yarn/** linguist-vendored +/.yarn/releases/* binary +/.yarn/plugins/**/* binary +/.pnp.* binary linguist-generated diff --git a/.gitignore b/.gitignore index 016b59e..17449d1 100644 --- a/.gitignore +++ b/.gitignore @@ -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* diff --git a/.vscode/launch.json b/.vscode/launch.json index 2f19d43..0888148 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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 + } ] } diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..3186f3f --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/package.json b/package.json index 2eec9e3..491cbef 100644 --- a/package.json +++ b/package.json @@ -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" }