-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpackage.json
82 lines (82 loc) · 3.58 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
{
"name": "from-crud-to-event-sourcing",
"version": "1.0.0",
"description": "Samples of migrating from CRUD to Event Sourcing",
"scripts": {
"setup": "cat .nvmrc | nvm install; nvm use",
"build": "run-s lint build:ts",
"build:ts": "tsc",
"build:ts:watch": "tsc --watch",
"lint": "run-s lint:eslint lint:prettier",
"lint:prettier": "prettier --check \"**/**/!(*.d).{ts,json,md,sql}\"",
"lint:eslint": "eslint **/*.ts",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"**/**/!(*.d).{ts,json,md,sql}\"",
"fix:eslint": "eslint **/*.ts --fix",
"crud:recreate": "docker compose kill & docker compose down -v & docker compose up -d & npm run crud:setup & docker ps",
"crud:setup": "run-s crud:migrate crud:generate",
"crud:migrate": "pg-migrations apply --database postgres://postgres:postgres@localhost:5432/postgres --directory ./src/crud/migrations/",
"crud:migrate:raw": "pg-migrations apply",
"crud:generate": "npx @databases/pg-schema-cli --database postgres://postgres:postgres@localhost:5432/postgres --schemaName ecommerce --directory src/crud/db/__generated__",
"crud:start": "ts-node -r tsconfig-paths/register ./src/crud/index.ts",
"eventsourced:recreate": "docker compose kill & docker compose down -v & docker compose up -d & npm run eventsourced:setup & docker ps",
"eventsourced:setup": "run-s eventsourced:migrate eventsourced:generate",
"eventsourced:generate": "npx @databases/pg-schema-cli --database postgres://postgres:postgres@localhost:5432/postgres --schemaName ecommerce --directory src/eventsourced/db/__generated__",
"eventsourced:migrate": "pg-migrations apply --database postgres://postgres:postgres@localhost:5432/postgres --directory ./src/eventsourced/migrations/ --ignore-error migration_file_edited",
"eventsourced:start": "ts-node -r tsconfig-paths/register ./src/eventsourced/index.ts",
"test": "run-s test:unit test:int test:api test:e2e",
"test:unit": "jest unit --passWithNoTests",
"test:int": "jest int --passWithNoTests --forceExit",
"test:api": "jest api --passWithNoTests --forceExit",
"test:e2e": "jest e2e --passWithNoTests --forceExit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/oskardudycz/EventSourcing.NodeJS.git"
},
"keywords": [
"Event Sourcing"
],
"author": "Oskar Dudycz",
"license": "MIT",
"bugs": {
"url": "https://github.com/oskardudycz/EventSourcing.NodeJS/issues"
},
"homepage": "https://github.com/oskardudycz/EventSourcing.NodeJS#readme",
"dependencies": {
"@databases/pg": "5.5.0",
"@eventstore/db-client": "6.1.0",
"@faker-js/faker": "8.3.1",
"convict": "6.2.4",
"dotenv": "16.3.1",
"dotenv-cli": "7.3.0",
"express": "4.18.2"
},
"devDependencies": {
"@databases/migrations-base": "3.0.1",
"@databases/pg-migrations": "5.0.2",
"@databases/pg-typed": "4.4.1",
"@testcontainers/postgresql": "10.4.0",
"@types/convict": "6.1.6",
"@types/express": "4.17.21",
"@types/jest": "29.5.11",
"@types/node": "20.10.6",
"@types/supertest": "6.0.2",
"@types/uuid": "9.0.7",
"@typescript-eslint/eslint-plugin": "6.17.0",
"@typescript-eslint/parser": "6.17.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.2",
"jest": "29.7.0",
"npm-run-all": "4.1.5",
"prettier": "3.1.1",
"prettier-plugin-sql": "0.18.0",
"supertest": "6.3.3",
"testcontainers": "10.4.0",
"ts-jest": "29.1.1",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.3.3"
}
}