This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
138 lines (138 loc) · 6.4 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "@posthog/plugin-server",
"version": "1.10.5",
"description": "PostHog Plugin Server",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"scripts": {
"test": "jest --runInBand --forceExit tests/**/*.test.ts",
"test:postgres:1": "jest --runInBand --forceExit tests/*.test.ts",
"test:postgres:2": "jest --runInBand --forceExit tests/postgres/*.test.ts",
"test:clickhouse:1": "jest --runInBand --forceExit tests/clickhouse/postgres-parity.test.ts tests/clickhouse/e2e.test.ts tests/clickhouse/ingestion-utils.test.ts",
"test:clickhouse:2": "jest --runInBand --forceExit tests/clickhouse/process-event.test.ts",
"benchmark": "yarn run benchmarks:clickhouse && yarn run benchmark:postgres && yarn run benchmarks:vm",
"benchmark:clickhouse": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/clickhouse/",
"benchmark:postgres": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/postgres/",
"benchmark:vm:memory": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/vm/memory.benchmark.ts",
"benchmark:vm:worker": "node --expose-gc node_modules/.bin/jest --runInBand benchmarks/vm/worker.benchmark.ts",
"start": "yarn start:dev",
"start:dist": "BASE_DIR=../posthog node dist/index.js",
"start:dev": "NODE_ENV=dev BASE_DIR=../posthog ts-node-dev --exit-child src/index.ts",
"start:dev:ee": "KAFKA_ENABLED=true KAFKA_HOSTS=localhost:9092 yarn start:dev",
"build": "yarn clean && yarn compile",
"clean": "rimraf dist/*",
"protobuf:compile": "cd src/config/idl/ && rimraf protos.* && pbjs -t static-module -w commonjs -o protos.js *.proto && pbts -o protos.d.ts protos.js && eslint --fix . && prettier --write .",
"typescript:compile": "tsc -b",
"typescript:check": "tsc --noEmit -p .",
"compile": "yarn protobuf:compile && yarn typescript:compile",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prettier": "prettier --write .",
"prettier:check": "prettier --check .",
"prepare": "yarn protobuf:compile",
"prepublishOnly": "yarn build",
"setup:dev:clickhouse": "cd ../posthog && export DEBUG=1 PRIMARY_DB=clickhouse && source env/bin/activate && python manage.py migrate_clickhouse",
"setup:test:ee": "yarn setup:test:postgres && yarn setup:test:clickhouse",
"setup:test:postgres": "cd ../posthog && (dropdb test_posthog || echo 'no db to drop') && createdb test_posthog && source env/bin/activate && DATABASE_URL=postgres://localhost:5432/test_posthog DEBUG=1 python manage.py migrate",
"setup:test:clickhouse": "cd ../posthog && export TEST=1 PRIMARY_DB=clickhouse CLICKHOUSE_DATABASE=posthog_test && source env/bin/activate && python manage.py migrate_clickhouse",
"services:start": "cd ../posthog && docker-compose -f ee/docker-compose.ch.yml up zookeeper kafka clickhouse",
"services:stop": "cd ../posthog && docker-compose -f ee/docker-compose.ch.yml down",
"services:clean": "cd ../posthog && docker-compose -f ee/docker-compose.ch.yml rm -v zookeeper kafka clickhouse",
"services": "yarn services:stop && yarn services:clean && yarn services:start"
},
"bin": {
"posthog-plugin-server": "bin/posthog-plugin-server"
},
"author": "PostHog <hey@posthog.com>",
"repository": "https://github.com/PostHog/posthog-plugin-server",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.13.1",
"@babel/preset-env": "^7.13.5",
"@babel/preset-typescript": "^7.13.0",
"@babel/standalone": "^7.13.7",
"@google-cloud/bigquery": "^5.6.0",
"@google-cloud/pubsub": "^2.16.0",
"@google-cloud/storage": "^5.8.5",
"@maxmind/geoip2-node": "^3.0.0",
"@posthog/clickhouse": "^1.7.0",
"@posthog/piscina": "^3.2.0-posthog",
"@posthog/plugin-contrib": "^0.0.5",
"@posthog/plugin-scaffold": "0.12.9",
"@sentry/node": "^6.7.0",
"@sentry/tracing": "^6.7.0",
"@types/lru-cache": "^5.1.0",
"adm-zip": "0.5.3",
"aws-sdk": "^2.927.0",
"escape-string-regexp": "^4.0.0",
"faker": "^5.5.3",
"fast-deep-equal": "^3.1.3",
"generic-pool": "^3.7.1",
"graphile-worker": "^0.11.1",
"hot-shots": "^8.3.2",
"ioredis": "^4.27.6",
"jsonwebtoken": "^8.5.1",
"kafkajs": "^1.15.0",
"lru-cache": "^6.0.0",
"luxon": "^1.27.0",
"node-fetch": "^2.6.1",
"node-schedule": "^2.0.0",
"pg": "^8.6.0",
"posthog-js-lite": "^0.0.5",
"pretty-bytes": "^5.6.0",
"protobufjs": "^6.11.2",
"re2": "^1.16.0",
"redlock": "^4.2.0",
"snowflake-sdk": "^1.6.1",
"tar-stream": "^2.2.0",
"uuid": "^8.3.2",
"vm2": "3.9.5"
},
"devDependencies": {
"@babel/cli": "^7.13.0",
"@types/adm-zip": "^0.4.34",
"@types/babel__standalone": "^7.1.3",
"@types/faker": "^5.5.7",
"@types/generic-pool": "^3.1.9",
"@types/ioredis": "^4.26.4",
"@types/jest": "^26.0.23",
"@types/jsonwebtoken": "^8.5.5",
"@types/luxon": "^1.27.0",
"@types/node": "^14.14.6",
"@types/node-fetch": "^2.5.10",
"@types/node-schedule": "^1.3.1",
"@types/pg": "^8.6.0",
"@types/redlock": "^4.0.1",
"@types/snowflake-sdk": "^1.5.1",
"@types/tar-stream": "^2.2.0",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.31.2",
"@typescript-eslint/parser": "^4.31.2",
"babel-eslint": "^10.1.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": "~4.3.5",
"jest": "^27.0.4",
"lint-staged": "~10.5.4",
"prettier": "^2.3.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.3",
"ts-node": "^10.0.0",
"ts-node-dev": "^1.1.6",
"typescript": "^4.4.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts}": "eslint --fix",
"*.{js,ts,css,scss,json,yml,yaml,md}": "prettier --write"
}
}