This commit is contained in:
parent
ffd28572f0
commit
dd071e9854
10 changed files with 49 additions and 17 deletions
13
.forgejo/workflows/prettier.yml
Normal file
13
.forgejo/workflows/prettier.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
jobs:
|
||||||
|
prettier:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- id: dependencies
|
||||||
|
run: NODE_ENV=development npm ci
|
||||||
|
- id: prettier
|
||||||
|
run: npx prettier --check .
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"editor.tabSize": 2
|
||||||
|
}
|
16
package-lock.json
generated
16
package-lock.json
generated
|
@ -18,6 +18,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/node": "^20.14.10",
|
"@types/node": "^20.14.10",
|
||||||
|
"prettier": "^3.3.2",
|
||||||
"prisma": "^5.16.1"
|
"prisma": "^5.16.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -657,6 +658,21 @@
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
||||||
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
|
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
|
||||||
},
|
},
|
||||||
|
"node_modules/prettier": {
|
||||||
|
"version": "3.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz",
|
||||||
|
"integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"prettier": "bin/prettier.cjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/prisma": {
|
"node_modules/prisma": {
|
||||||
"version": "5.16.1",
|
"version": "5.16.1",
|
||||||
"resolved": "https://registry.npmjs.org/prisma/-/prisma-5.16.1.tgz",
|
"resolved": "https://registry.npmjs.org/prisma/-/prisma-5.16.1.tgz",
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/node": "^20.14.10",
|
"@types/node": "^20.14.10",
|
||||||
|
"prettier": "^3.3.2",
|
||||||
"prisma": "^5.16.1"
|
"prisma": "^5.16.1"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -8,9 +8,8 @@ if(listenHost[0]!="/") {
|
||||||
app.listen(listenPort, listenHost, () => {
|
app.listen(listenPort, listenHost, () => {
|
||||||
console.log(`Listening on ${listenHost}:${listenPort}`);
|
console.log(`Listening on ${listenHost}:${listenPort}`);
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
app.listen(listenHost, () => {
|
app.listen(listenHost, () => {
|
||||||
console.log(`Listening on ${listenHost} (unix socket)`);
|
console.log(`Listening on ${listenHost} (unix socket)`);
|
||||||
})
|
});
|
||||||
}
|
}
|
Loading…
Reference in a new issue