This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
79 lines (79 loc) · 3.08 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
{
"name": "@serlo/server-migrate",
"version": "1.0.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
"author": "Serlo Education e.V.",
"scripts": {
"_prettier": "prettier .",
"build": "tsx scripts/build.ts",
"build:all": "yarn build src/*ts",
"check:unused-dependencies": "depcheck",
"check:unused-exports": "ts-unused-exports tsconfig.json",
"docker:build": "docker build -t db-migrations-local-build:latest .",
"docker:rm": "docker image rm db-migrations-local-build",
"docker:run": "docker run --env-file .env --env-file .env-docker --add-host=host.docker.internal:host-gateway --name db-migrations-from-local-build db-migrations-local-build",
"docker:stop": "docker stop db-migrations-from-local-build && docker container rm db-migrations-from-local-build",
"format": "yarn format:prettier",
"format:prettier": "yarn _prettier --write",
"lint": "npm-run-all --parallel \"lint:*\"",
"lint:prettier": "yarn _prettier --check",
"lint:tsc": "tsc --noEmit --project tsconfig.json",
"migrate:docker": "docker compose run --build --rm server-migrate",
"migrate:down": "yarn db-migrate -m migrations down",
"migrate:run": "scripts/run_migrations.sh",
"migrate:all": "npm-run-all build:all migrate:up",
"migrate:up": "yarn db-migrate -m migrations up",
"mysql": "scripts/mysql_cli.sh",
"mysql:delete-last-migration": "yarn mysql --execute 'DELETE FROM migrations ORDER BY id DESC LIMIT 1'",
"mysql:delete-all-migrations": "yarn mysql --execute 'DELETE FROM migrations'",
"mysql:import-anonymous-data": "./scripts/mysql/import-anonymous-data.sh",
"mysql:list-migrations": "yarn mysql --execute 'SELECT * FROM migrations'",
"mysql:rollback": "docker compose exec mysql sh -c \"pv /docker-entrypoint-initdb.d/001-init.sql | serlo-mysql\"",
"new": "./scripts/touch_file.sh",
"push-image": "tsx scripts/push-image.ts",
"redis": "docker compose exec redis redis-cli",
"start": "yarn start:docker",
"start:docker": "docker compose up mysql redis --detach",
"stop": "yarn stop:docker",
"stop:docker": "docker compose down",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
"dependencies": {
"db-migrate": "^0.11.14",
"db-migrate-mysql": "^2.3.2"
},
"devDependencies": {
"@jest/types": "^29.6.3",
"@slack/web-api": "^7.2.0",
"@tsconfig/node20": "^20.1.4",
"@types/jest": "^29.5.12",
"@types/node": "^18.19.39",
"@types/ramda": "^0.30.0",
"@types/semver": "^7.5.8",
"@types/uuid": "^10.0.0",
"depcheck": "^1.4.7",
"dotenv": "^16.4.5",
"esbuild": "^0.21.5",
"fp-ts": "^2.16.6",
"io-ts": "^2.2.21",
"ioredis": "^5.4.1",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"openai": "^4.52.0",
"prettier": "^3.3.2",
"ramda": "^0.30.1",
"semver": "^7.6.2",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"ts-unused-exports": "^10.1.0",
"tsx": "^4.15.6",
"typescript": "^5.5.2",
"uuid": "^10.0.0"
},
"packageManager": "yarn@3.6.1",
"engines": {
"node": "^18.0.0"
}
}