61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"name": "",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "dist/src/functions/*.js",
|
|
"scripts": {
|
|
"build": "tsc && mkdir -p dist/src/templates && cp -r /app/dictation_function/src/templates/* dist/src/templates/",
|
|
"watch": "tsc -w",
|
|
"clean": "rimraf dist",
|
|
"prestart": "npm run clean && npm run build",
|
|
"start": "func start",
|
|
"test": "tsc --noEmit && sql-migrate up -config=/app/dictation_server/db/dbconfig.yml -env=test && jest -w 1",
|
|
"typecheck": "tsc --noEmit",
|
|
"codegen": "sh codegen.sh"
|
|
},
|
|
"dependencies": {
|
|
"@azure/functions": "^4.0.0",
|
|
"@azure/identity": "^3.1.3",
|
|
"@azure/storage-blob": "^12.17.0",
|
|
"@microsoft/microsoft-graph-client": "^3.0.5",
|
|
"@sendgrid/mail": "^7.7.0",
|
|
"dotenv": "^16.0.3",
|
|
"mysql2": "^2.3.3",
|
|
"redis": "^3.1.2",
|
|
"typeorm": "^0.3.10"
|
|
},
|
|
"devDependencies": {
|
|
"@openapitools/openapi-generator-cli": "^2.9.0",
|
|
"@types/jest": "^27.5.0",
|
|
"@types/node": "18.x",
|
|
"@types/redis": "^2.8.13",
|
|
"@types/redis-mock": "^0.17.3",
|
|
"azure-functions-core-tools": "^4.x",
|
|
"base64url": "^3.0.1",
|
|
"jest": "^28.0.3",
|
|
"redis-mock": "^0.56.3",
|
|
"rimraf": "^5.0.0",
|
|
"sqlite3": "^5.1.6",
|
|
"supertest": "^6.1.3",
|
|
"ts-jest": "^28.0.1",
|
|
"typescript": "^4.0.0"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"**/*.(t|j)s"
|
|
],
|
|
"coverageDirectory": "../coverage",
|
|
"testEnvironment": "node"
|
|
}
|
|
}
|