{ "name": "posthog", "description": "", "version": "0.0.0", "repository": { "type": "git", "url": "https://github.com/posthog/posthog.git" }, "author": "PostHog Inc.", "bugs": { "url": "https://github.com/posthog/posthog/issues" }, "homepage": "https://github.com/posthog/posthog#readme", "license": "MIT", "engines": { "node": ">=14" }, "scripts": { "copy-scripts": "cp node_modules/posthog-js/dist/array.js* frontend/dist/; cp node_modules/rrweb/dist/rrweb.min.js frontend/dist/recorder.js", "test": "jest", "start": "concurrently -n WEBPACK,TYPEGEN -c blue,green \"yarn run start-http\" \"yarn run typegen:watch\"", "start-http": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts && webpack-dev-server --hotOnly", "start-https": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts && webpack-dev-server --hotOnly --https", "start-docker": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts && webpack-dev-server --hotOnly --host 0.0.0.0", "build": "echo \"Building Webpack\" && NODE_ENV=production webpack --config webpack.config.js && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts", "prettier": "prettier --write \"./frontend/src/**/*.{js,ts,tsx,json,yml,css,scss}\"", "prettier:check": "prettier --check \"./**/*.{js,ts,tsx,json,yml,css,scss}\"", "typescript:check": "tsc", "typescript:clean": "tsc --build --clean", "eslint": "eslint frontend/src", "typegen:write": "kea-typegen write", "typegen:check": "kea-typegen check", "typegen:watch": "kea-typegen watch", "format:python": "black . && isort .", "format:js": "yarn prettier && yarn eslint --fix", "format": "yarn format:python && yarn format:js" }, "dependencies": { "@babel/core": "^7.10.4", "@babel/runtime": "^7.10.4", "@papercups-io/chat-widget": "^1.1.5", "@posthog/plugin-scaffold": "0.2.12", "@posthog/simmerjs": "0.7.2-posthog.2", "@sentry/browser": "^6.0.4", "antd": "^4.11.2", "babel-preset-nano-react-app": "^0.1.0", "chart.js": "^2.9.3", "core-js": "3.6.5", "d3": "^5.15.0", "d3-sankey": "^0.12.3", "expr-eval": "^2.0.2", "fast-deep-equal": "^3.1.3", "funnel-graph-js": "^1.4.1", "fuse.js": "^6.4.1", "kea": "^2.2.2", "kea-loaders": "^0.3.0", "kea-localstorage": "^1.0.2", "kea-router": "^0.5.1", "kea-window-values": "^0.0.1", "moment": "^2.24.0", "posthog-js": "^1.8.7", "posthog-js-lite": "^0.0.3", "posthog-react-rrweb-player": "^1.0.12", "prop-types": "^15.7.2", "query-selector-shadow-dom": "0.8.0", "react": "^16.13.1", "react-dom": "^16.12.0", "react-draggable": "^4.2.0", "react-grid-layout": "^1.1.1", "react-markdown": "^5.0.2", "react-monaco-editor": "^0.40.0", "react-redux": "^7.2.0", "react-shadow": "^18.4.2", "react-sortable-hoc": "^1.11.0", "react-syntax-highlighter": "^13.5.1", "react-toastify": "^5.5.0", "redux": "^4.0.5", "reselect": "^4.0.0", "rrweb": "^0.9.13", "sass": "^1.26.2", "zxcvbn": "^4.4.2" }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-transform-react-jsx": "^7.10.4", "@babel/plugin-transform-runtime": "^7.10.4", "@babel/preset-env": "7.10.4", "@babel/preset-typescript": "^7.10.4", "@cypress/react": "^4.16.4", "@cypress/webpack-preprocessor": "^5.5.0", "@hot-loader/react-dom": "^16.13.0", "@types/jest": "^26.0.15", "@types/react": "^16.14.2", "@types/react-dom": "^16.9.8", "@types/react-redux": "^7.1.9", "@types/react-syntax-highlighter": "^11.0.4", "@types/zxcvbn": "^4.4.0", "@typescript-eslint/eslint-plugin": "^3.6.0", "@typescript-eslint/parser": "^3.6.0", "autoprefixer": "^9.7.4", "babel-eslint": "^10.1.0", "babel-loader": "^8.0.6", "babel-plugin-import": "^1.13.0", "babel-plugin-kea": "^0.1.0", "concurrently": "^5.3.0", "css-loader": "^3.4.2", "cssnano": "^4.1.10", "eslint": "^7.8.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-cypress": "^2.11.2", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.3", "file-loader": "^6.1.0", "givens": "^1.3.6", "html-webpack-harddisk-plugin": "^1.0.1", "html-webpack-plugin": "^4.4.1", "husky": "^4.3.0", "jest": "^26.6.3", "kea-typegen": "^0.5.1", "less": "^3.12.2", "less-loader": "^7.0.2", "lint-staged": "~10.2.13", "mini-css-extract-plugin": "^0.11.0", "monaco-editor-webpack-plugin": "^2.0.0", "postcss-loader": "^3.0.0", "prettier": "^2.1.1", "react-hot-loader": "^4.12.21", "sass-loader": "^10.0.1", "style-loader": "^1.2.1", "ts-node": "^9.1.1", "typescript": "^3.9.0", "webpack": "^4.44.1", "webpack-cli": "^3.3.12", "webpack-dev-server": "^3.11.0" }, "optionalDependencies": { "fsevents": "^2.1.2" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,ts,tsx,json,yml,css,scss}": "prettier --write", "*.{js,ts,tsx}": "eslint", "*.{py,pyi}": [ "flake8 --select=E9,F63,F7,F82", "black", "isort" ] } }