mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-07 12:41:22 +01:00
* refactor(plugin-server): separate api from functional_tests This just moves the api helpers to a separate file, such that we can import from other files. * test(plugin-server): add functional tests for property definitions I was going to take a stab at https://github.com/PostHog/posthog/issues/12529 but I wasn't sure how the definition bits worked, so thought I'd add some tests first. This doesn't just add tests but also: 1. starts demonstrating how we can split up the tests into different files, thereby also allowing jest test isolation. 2. removes --runInBand, such that isolated tests can run in parallel
123 lines
4.6 KiB
JSON
123 lines
4.6 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/",
|
|
"functional_tests": "jest --config ./jest.config.functional.js",
|
|
"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",
|
|
"build": "yarn clean && yarn compile",
|
|
"clean": "rimraf dist/*",
|
|
"typescript:compile": "tsc -b",
|
|
"typescript:check": "tsc --noEmit -p .",
|
|
"compile": "yarn typescript:compile",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint --fix .",
|
|
"prettier": "prettier --write .",
|
|
"prettier:check": "prettier --check .",
|
|
"prepublishOnly": "yarn build",
|
|
"setup:dev:clickhouse": "cd .. && DEBUG=1 python manage.py migrate_clickhouse",
|
|
"setup:test": "cd .. && TEST=1 python manage.py setup_test_environment",
|
|
"services:start": "cd .. && docker-compose -f docker-compose.dev.yml up",
|
|
"services:stop": "cd .. && docker-compose -f docker-compose.dev.yml down",
|
|
"services:clean": "cd .. && docker-compose -f docker-compose.dev.yml rm -v",
|
|
"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.18.10",
|
|
"@babel/plugin-transform-react-jsx": "^7.18.10",
|
|
"@babel/preset-env": "^7.18.10",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@babel/standalone": "^7.18.12",
|
|
"@google-cloud/bigquery": "^5.6.0",
|
|
"@google-cloud/pubsub": "3.0.1",
|
|
"@google-cloud/storage": "^5.8.5",
|
|
"@maxmind/geoip2-node": "^3.4.0",
|
|
"@posthog/clickhouse": "^1.7.0",
|
|
"@posthog/piscina": "^3.2.0-posthog",
|
|
"@posthog/plugin-contrib": "^0.0.5",
|
|
"@posthog/plugin-scaffold": "1.3.4",
|
|
"@sentry/node": "^7.10.0",
|
|
"@sentry/tracing": "^7.10.0",
|
|
"@types/lru-cache": "^5.1.0",
|
|
"aws-sdk": "^2.927.0",
|
|
"escape-string-regexp": "^4.0.0",
|
|
"ethers": "^5.5.2",
|
|
"faker": "^5.5.3",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"generic-pool": "^3.7.1",
|
|
"graphile-worker": "0.13.0",
|
|
"hot-shots": "^9.2.0",
|
|
"ioredis": "^4.27.6",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"kafkajs": "^2.2.0",
|
|
"kafkajs-snappy": "^1.1.0",
|
|
"lru-cache": "^6.0.0",
|
|
"luxon": "^1.27.0",
|
|
"node-fetch": "^2.6.1",
|
|
"node-schedule": "^2.1.0",
|
|
"pg": "^8.6.0",
|
|
"pino": "^8.6.0",
|
|
"posthog-node": "2.0.2",
|
|
"pretty-bytes": "^5.6.0",
|
|
"re2": "^1.17.7",
|
|
"safe-stable-stringify": "^2.4.0",
|
|
"snowflake-sdk": "^1.6.10",
|
|
"uuid": "^8.3.2",
|
|
"vm2": "3.9.11"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.18.10",
|
|
"@swc-node/register": "^1.5.1",
|
|
"@swc/core": "^1.2.186",
|
|
"@swc/jest": "^0.2.21",
|
|
"@types/adm-zip": "^0.4.34",
|
|
"@types/babel__standalone": "^7.1.4",
|
|
"@types/faker": "^5.5.7",
|
|
"@types/generic-pool": "^3.1.9",
|
|
"@types/ioredis": "^4.26.4",
|
|
"@types/jest": "^28.1.1",
|
|
"@types/jsonwebtoken": "^8.5.5",
|
|
"@types/luxon": "^1.27.0",
|
|
"@types/node": "^16.0.0",
|
|
"@types/node-fetch": "^2.5.10",
|
|
"@types/node-schedule": "^2.1.0",
|
|
"@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": "^5.33.0",
|
|
"@typescript-eslint/parser": "^5.33.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"c8": "^7.12.0",
|
|
"deepmerge": "^4.2.2",
|
|
"eslint": "^8.22.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-no-only-tests": "^3.0.0",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-promise": "^6.0.0",
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
"jest": "^28.1.1",
|
|
"pino-pretty": "^9.1.0",
|
|
"prettier": "^2.7.1",
|
|
"rimraf": "^3.0.2",
|
|
"ts-node": "^10.9.1",
|
|
"ts-node-dev": "^2.0.0",
|
|
"typescript": "^4.7.4"
|
|
}
|
|
}
|