0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/plugin-server/package.json
Yakko Majuri 963c62aaf1
Use monorepo plugin server (#6784)
* use plugin-server in same repo

* remove plugins dir

* update docker files

* clean up docker files:

* visual separation

* run plugin server test stack

* build and push test image

* revert push image

* fix default yarn start

* another fix

* fix some more

* add plugin-server-prod script

* make executable

* update scripts:

* revert prod script

* fixes

* fix tests

* clean

* move build to docker

* build plugin-server in prod dockerfile

* use different entrypoint for e2e test

* fix bugs with ts-node-dev

* restore yarn.lock

* lost a few changes in the rebase

* fix dockerfile

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2021-11-13 11:52:00 -08:00

128 lines
6.0 KiB
JSON

{
"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:dist",
"start:dist": "BASE_DIR=.. node dist/index.js",
"start:dev": "NODE_ENV=dev BASE_DIR=.. ts-node-dev --debug --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 .. && export DEBUG=1 PRIMARY_DB=clickhouse && python manage.py migrate_clickhouse",
"setup:test:ee": "yarn setup:test:postgres && yarn setup:test:clickhouse",
"setup:test:postgres": "cd .. && (dropdb test_posthog || echo 'no db to drop') && createdb test_posthog && DATABASE_URL=postgres://localhost:5432/test_posthog DEBUG=1 python manage.py migrate",
"setup:test:clickhouse": "cd .. && unset KAFKA_URL && export TEST=1 PRIMARY_DB=clickhouse CLICKHOUSE_DATABASE=posthog_test && python manage.py migrate_clickhouse",
"services:start": "cd .. && docker-compose -f ee/docker-compose.ch.yml up zookeeper kafka clickhouse",
"services:stop": "cd .. && docker-compose -f ee/docker-compose.ch.yml down",
"services:clean": "cd .. && 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",
"jest": "^27.0.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"
}
}