1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Improve development environment

This commit is contained in:
Steffo 2022-06-02 17:03:28 +02:00
parent ee08aea776
commit 3a77d5a777
Signed by: steffo
GPG key ID: 6965406171929D01
4 changed files with 75 additions and 28 deletions

58
.vscode/launch.json vendored
View file

@ -1,34 +1,48 @@
{ {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Develop", "name": "Web server",
"type": "node-terminal",
"request": "launch", "request": "launch",
"runtimeArgs": [ "command": "yarn run app:dev",
"run", "presentation": {
"dev", "group": "Single",
}
},
{
"name": "Web page",
"type": "firefox",
"request": "launch",
"url": "http://local.steffo.eu",
"pathMappings": [
{
"url": "webpack://_n_e",
"path": "${workspaceFolder}"
}
], ],
"runtimeExecutable": "yarn", "presentation": {
"skipFiles": [ "group": "Single",
"<node_internals>/**" }
],
"type": "node"
}, },
{ {
"name": "Prisma Studio", "name": "Prisma Studio",
"type": "node-terminal",
"request": "launch", "request": "launch",
"runtimeArgs": [ "command": "yarn run db:studio",
"run", "presentation": {
"studio", "group": "Single",
], }
"runtimeExecutable": "yarn", }
"skipFiles": [ ],
"<node_internals>/**" "compounds": [
], {
"type": "node" "name": "Everything!",
}, "configurations": ["Web server", "Web page", "Prisma Studio"],
"stopAll": true,
"presentation": {
"group": "Full",
}
}
] ]
} }

23
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,23 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "yarn",
"task": "db:generate",
"problemMatcher": [],
"label": "yarn db:generate"
},
{
"type": "yarn",
"task": "db:push",
"problemMatcher": [],
"label": "yarn: db:push"
},
{
"type": "yarn",
"task": "app:lint",
"problemMatcher": [],
"label": "yarn: app:lint"
}
]
}

View file

@ -3,11 +3,13 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "dotenv -e .env.local prisma db push && dotenv -e .env.local prisma generate && NODE_OPTIONS=--inspect dotenv -e .env.local next dev", "db:push": "dotenv -e .env.local prisma db push",
"build": "next build", "db:generate": "dotenv -e .env.local prisma generate",
"start": "next start", "db:studio": "dotenv -e .env.local cross-env BROWSER=none prisma studio",
"lint": "next lint", "app:dev": "cross-env NODE_OPTIONS='--inspect' next dev",
"studio": "dotenv -e .env.local prisma studio" "app:build": "next build",
"app:start": "next start",
"app:lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1", "@fortawesome/fontawesome-svg-core": "^6.1.1",
@ -31,6 +33,7 @@
"@types/node": "17.0.35", "@types/node": "17.0.35",
"@types/react": "18.0.9", "@types/react": "18.0.9",
"@types/react-dom": "18.0.4", "@types/react-dom": "18.0.4",
"cross-env": "^7.0.3",
"dotenv-cli": "^5.1.0", "dotenv-cli": "^5.1.0",
"eslint": "8.15.0", "eslint": "8.15.0",
"eslint-config-next": "12.1.6", "eslint-config-next": "12.1.6",

View file

@ -486,7 +486,14 @@ cors@^2.8.5:
object-assign "^4" object-assign "^4"
vary "^1" vary "^1"
cross-spawn@^7.0.2, cross-spawn@^7.0.3: cross-env@^7.0.3:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
dependencies:
cross-spawn "^7.0.1"
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3" version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==