-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
102 lines (92 loc) · 4.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"name": "doodlebob-api",
"version": "1.0.0",
"description": "Back end for Doodlebob, a self-hostable note-taking application",
"author": "Keegan Leitz",
"license": "MIT",
"type": "commonjs",
"main": "index.js",
"scripts": {
"dev": "nodemon",
"dev:poll": "nodemon -L",
"docker:dev": "docker compose --file docker-compose.yml --file docker-compose.development.yml up --build --remove-orphans",
"docker:dev:down": "docker compose --file docker-compose.yml --file docker-compose.development.yml down --remove-orphans --volumes",
"docker:prod": "docker compose --file docker-compose.yml --file docker-compose.production.yml up --build --remove-orphans",
"docker:staging": "docker compose --file docker-compose.yml --file docker-compose.staging.yml up --build --remove-orphans",
"build": "rimraf build && tsc",
"start": "NODE_PATH=./build node ./build/index.js",
"lint": "eslint",
"test": "mocha 'src/**/*.test.ts'",
"docker:test": "docker compose --file docker-compose.test.yml up --build --abort-on-container-exit",
"migration:create": "cd ./src/orm/migrations && typeorm-ts-node-commonjs migration:create",
"migration:generate": "bin/generate-migration-but-preserve-fts-index",
"migration:revert": "typeorm-ts-node-commonjs migration:revert --dataSource ./src/orm/config/appDataSource.ts",
"migration:run": "typeorm-ts-node-commonjs migration:run --dataSource ./src/orm/config/appDataSource.ts",
"seed:run": "ts-node ./src/setup/dbSeed.ts",
"subscriber:create": "cd ./src/orm/subscribers && typeorm-ts-node-commonjs subscriber:create",
"db:create": "ts-node ./src/setup/dbCreate.ts",
"db:drop": "ts-node ./src/setup/dbDrop.ts",
"docker:db:create": "docker compose --file docker-compose.development.db-create.yml up --build --abort-on-container-exit",
"docker:db:drop": "docker compose --file docker-compose.development.db-drop.yml up --build --abort-on-container-exit",
"docker:db:recreate": "pnpm run docker:db:drop && pnpm run docker:db:create",
"docker:migration:generate": "docker compose run --rm api pnpm run migration:generate",
"docker:migration:revert": "docker compose run --rm api pnpm run migration:revert",
"docker:migration:run": "docker compose run --rm api pnpm run migration:run",
"docker:seed:run": "docker compose run --rm api pnpm run seed:run",
"docker:shell": "docker compose --file docker-compose.yml --file docker-compose.development.yml run --rm --entrypoint sh api",
"docker:db:shell": "docker compose --file docker-compose.yml --file docker-compose.development.yml run --rm --entrypoint 'sh -c \"PGPASSWORD=$POSTGRES_PASSWORD psql -h $PG_HOST -p $PG_PORT -d $POSTGRES_DB -U $POSTGRES_USER -w\"' database",
"docker:test:shell": "docker compose --file docker-compose.test.yml run --rm --entrypoint sh --build tests",
"docker:prune": "docker image prune --force",
"typeorm": "typeorm-ts-node-commonjs"
},
"keywords": [
"doodlebob",
"notes",
"keep"
],
"dependencies": {
"bcrypt": "^5.1.0",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"express": "^4.18.2",
"helmet": "^6.1.5",
"jsonwebtoken": "^9.0.0",
"morgan": "^1.10.0",
"pg": "^8.10.0",
"reflect-metadata": "^0.1.13",
"rotating-file-stream": "^3.1.0",
"ts-japi": "^1.8.0",
"typeorm": "^0.3.15",
"zod": "^3.21.4"
},
"devDependencies": {
"@types/bcrypt": "^5.0.0",
"@types/body-parser": "^1.19.2",
"@types/chai": "^4.3.5",
"@types/cookie-parser": "^1.4.3",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^9.0.2",
"@types/mocha": "^10.0.1",
"@types/morgan": "^1.9.4",
"@types/node": "^18.16.2",
"@types/supertest": "^2.0.12",
"@types/validator": "^13.7.15",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"chai": "^4.3.7",
"dotenv": "^16.0.3",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"mocha": "^10.2.0",
"nodemon": "^2.0.22",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"supertest": "^6.3.3",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"typescript": "^5.0.4"
}
}