posthog-plugin-server

v1.0.0-alpha.2
PostHog Plugin Server

test

jest --runInBand tests/*.test.ts

benchmark

node --expose-gc node_modules/.bin/jest --runInBand benchmarks/

start

yarn start:dev

start:dist

node dist/src/index.js --base-dir ../posthog

start:dev

ts-node-dev --exit-child src/index.ts --base-dir ../posthog

build

yarn clean && yarn compile

clean

rimraf dist/*

compile:protobuf

cd src/idl/ && rimraf protos.* && pbjs -t static-module -w commonjs -o protos.js *.proto && pbts -o protos.d.ts protos.js && eslint --fix . && prettier --write .

compile:typescript

tsc

compile

yarn compile:protobuf && yarn compile:typescript

lint

eslint .

lint:fix

eslint --fix .

prettier

prettier --write .

prettier:check

prettier --check .

prepublishOnly

yarn build

task:init-test-db

NODE_ENV=test ts-node ./tasks/init-test-db.ts
npm i posthog-plugin-server

Metadata

  • MIT
  • Whatever
  • Marius Andra
  • released 1/13/2021

Downloads