-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better use code, prettier json, update dependencies
- Loading branch information
Showing
16 changed files
with
331 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "all", | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"useTabs": true, | ||
"endOfLine": "lf", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"parser": "typescript" | ||
"semi": true, | ||
"trailingComma": "all", | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"useTabs": true, | ||
"endOfLine": "lf", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"parser": "typescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
// 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", | ||
"configurations": [ | ||
{ | ||
"name": "API", | ||
"type": "node", | ||
"request": "launch", | ||
"args": [ | ||
"src/index.ts" | ||
], | ||
"runtimeArgs": [ | ||
"-r", | ||
"ts-node/register" | ||
], | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "inspector", | ||
"internalConsoleOptions": "openOnSessionStart" | ||
} | ||
] | ||
// 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", | ||
"configurations": [ | ||
{ | ||
"name": "API", | ||
"type": "node", | ||
"request": "launch", | ||
"args": [ | ||
"src/index.ts" | ||
], | ||
"runtimeArgs": [ | ||
"-r", | ||
"ts-node/register" | ||
], | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "inspector", | ||
"internalConsoleOptions": "openOnSessionStart" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"exec": "npm run exec", | ||
"watch": [ | ||
"src", | ||
"public/custom.js", | ||
".env" | ||
], | ||
"ext": "ts, css, json" | ||
"exec": "npm run exec", | ||
"watch": [ | ||
"src", | ||
"public/custom.js", | ||
".env" | ||
], | ||
"ext": "ts, css, json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
{ | ||
"name": "faithful-api", | ||
"version": "2.0.0", | ||
"description": "Public RESTful API for Faithful's texture database, add-on submission, and more.", | ||
"scripts": { | ||
"dev": "npm run spec-and-routes && npm run nodemon", | ||
"nodemon": "nodemon", | ||
"compile": "tsc", | ||
"spec-and-routes": "tsoa spec-and-routes", | ||
"exec": "ts-node src/index.ts", | ||
"build": "npm run spec-and-routes && npm run compile && cp -R public dist/", | ||
"start": "node dist/src/index.js", | ||
"swag": "tsoa spec", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix", | ||
"prettier": "prettier \"{,!(node_modules)/**/}*.ts\" --config .prettierrc --write" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"devDependencies": { | ||
"@types/api-error-handler": "^1.0.36", | ||
"@types/body-parser": "^1.19.5", | ||
"@types/express": "^4.17.21", | ||
"@types/multer": "^1.4.11", | ||
"@types/node": "^20.11.20", | ||
"@types/swagger-ui-express": "^4.1.6", | ||
"@typescript-eslint/eslint-plugin": "^6.20.0", | ||
"@typescript-eslint/parser": "^6.20.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "^17.1.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-import-resolver-typescript": "^3.6.1", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"nodemon": "^3.1.0", | ||
"prettier": "^3.2.5", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.4.2" | ||
}, | ||
"dependencies": { | ||
"@tsoa/runtime": "^6.0.0", | ||
"api-error-handler": "^1.0.0", | ||
"axios": "^1.6.7", | ||
"body-parser": "^1.20.2", | ||
"cloudflare": "^2.9.1", | ||
"cors": "^2.8.5", | ||
"discord-api-types": "^0.37.73", | ||
"dotenv": "^16.4.5", | ||
"express": "^4.18.3", | ||
"firestorm-db": "^1.12.0", | ||
"form-data": "^4.0.0", | ||
"isomorphic-dompurify": "^2.4.0", | ||
"multer": "^1.4.5-lts.1", | ||
"response-time": "^2.3.2", | ||
"statuses": "^2.0.1", | ||
"swagger-ui-express": "^5.0.0", | ||
"tsoa": "^6.0.1" | ||
} | ||
} | ||
{ | ||
"name": "faithful-api", | ||
"version": "2.0.0", | ||
"description": "Public RESTful API for Faithful's texture database, add-on submission, and more.", | ||
"scripts": { | ||
"dev": "npm run spec-and-routes && npm run nodemon", | ||
"nodemon": "nodemon", | ||
"compile": "tsc", | ||
"spec-and-routes": "tsoa spec-and-routes", | ||
"exec": "ts-node src/index.ts", | ||
"build": "npm run spec-and-routes && npm run compile && cp -R public dist/", | ||
"start": "node dist/src/index.js", | ||
"swag": "tsoa spec", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix", | ||
"prettier": "prettier \"{,!(node_modules)/**/}*.ts\" --config .prettierrc --write" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"devDependencies": { | ||
"@types/api-error-handler": "^1.0.36", | ||
"@types/body-parser": "^1.19.5", | ||
"@types/express": "^4.17.21", | ||
"@types/multer": "^1.4.11", | ||
"@types/node": "^20.11.27", | ||
"@types/swagger-ui-express": "^4.1.6", | ||
"@typescript-eslint/eslint-plugin": "^7.2.0", | ||
"@typescript-eslint/parser": "^7.2.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "^18.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-import-resolver-typescript": "^3.6.1", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"nodemon": "^3.1.0", | ||
"prettier": "^3.2.5", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.4.2" | ||
}, | ||
"dependencies": { | ||
"@tsoa/runtime": "^6.1.4", | ||
"api-error-handler": "^1.0.0", | ||
"axios": "^1.6.7", | ||
"body-parser": "^1.20.2", | ||
"cloudflare": "^2.9.1", | ||
"cors": "^2.8.5", | ||
"discord-api-types": "^0.37.74", | ||
"dotenv": "^16.4.5", | ||
"express": "^4.18.3", | ||
"firestorm-db": "^1.12.0", | ||
"form-data": "^4.0.0", | ||
"isomorphic-dompurify": "^2.4.0", | ||
"multer": "^1.4.5-lts.1", | ||
"response-time": "^2.3.2", | ||
"statuses": "^2.0.1", | ||
"swagger-ui-express": "^5.0.0", | ||
"tsoa": "^6.1.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.