2020-01-25 00:57:57 +01:00
|
|
|
{
|
2020-04-14 12:05:45 +02:00
|
|
|
"name": "posthog",
|
|
|
|
"description": "",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/posthog/posthog.git"
|
|
|
|
},
|
2020-09-01 15:58:13 +02:00
|
|
|
"author": "PostHog Inc.",
|
2020-04-14 12:05:45 +02:00
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/posthog/posthog/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/posthog/posthog#readme",
|
2020-09-01 15:58:13 +02:00
|
|
|
"license": "MIT",
|
2020-04-14 12:05:45 +02:00
|
|
|
"scripts": {
|
2020-10-08 11:09:35 +02:00
|
|
|
"copy-scripts": "cp node_modules/posthog-js/dist/array.js* frontend/dist/; cp node_modules/rrweb/dist/rrweb.min.js frontend/dist/recorder.js",
|
2020-08-14 17:02:57 +02:00
|
|
|
"start": "concurrently -n WEBPACK,TYPEGEN -c blue,green \"yarn run start-http\" \"yarn run typegen:watch\"",
|
2020-10-08 11:09:35 +02:00
|
|
|
"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",
|
|
|
|
"build": "kea-typegen write && echo \"Building Webpack\" && NODE_ENV=production webpack --config webpack.config.js && cp -a frontend/public/* frontend/dist/ && npm run copy-scripts",
|
2020-08-18 11:08:40 +02:00
|
|
|
"prettier": "prettier --write \"./frontend/src/**/*.{js,css,scss}\"",
|
|
|
|
"prettier:check": "prettier --check \"./**/*.{js,ts,tsx,json,yml,css,scss}\"",
|
2020-08-24 23:02:13 +02:00
|
|
|
"eslint": "eslint frontend/src",
|
|
|
|
"eslint:github-action": "yarn run eslint",
|
2020-08-14 17:02:57 +02:00
|
|
|
"typegen:watch": "kea-typegen watch"
|
2020-04-14 12:05:45 +02:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-08-17 15:40:11 +02:00
|
|
|
"@babel/core": "^7.10.4",
|
|
|
|
"@babel/runtime": "^7.10.4",
|
2020-10-07 10:17:28 +02:00
|
|
|
"@mariusandra/query-selector-shadow-dom": "0.7.2-posthog.2",
|
|
|
|
"@mariusandra/simmerjs": "0.7.1-posthog.1",
|
2020-08-17 15:40:11 +02:00
|
|
|
"antd": "^4.1.1",
|
2020-04-14 12:05:45 +02:00
|
|
|
"babel-preset-nano-react-app": "^0.1.0",
|
2020-08-17 15:40:11 +02:00
|
|
|
"bootstrap": "^4.4.1",
|
2020-04-14 12:05:45 +02:00
|
|
|
"chart.js": "^2.9.3",
|
2020-08-17 15:40:11 +02:00
|
|
|
"core-js": "3.6.5",
|
|
|
|
"d3": "^5.15.0",
|
2020-04-14 12:05:45 +02:00
|
|
|
"d3-sankey": "^0.12.3",
|
2020-06-08 20:34:39 +02:00
|
|
|
"editor": "^1.0.0",
|
2020-07-08 09:45:23 +02:00
|
|
|
"eslint-plugin-cypress": "^2.11.1",
|
2020-10-13 15:44:56 +02:00
|
|
|
"expr-eval": "^2.0.2",
|
2020-04-14 12:05:45 +02:00
|
|
|
"funnel-graph-js": "^1.4.1",
|
2020-10-13 15:44:56 +02:00
|
|
|
"fuse.js": "^6.4.1",
|
2020-09-10 15:29:24 +02:00
|
|
|
"kea": "^2.2.0",
|
2020-06-16 14:28:11 +02:00
|
|
|
"kea-loaders": "^0.3.0",
|
2020-06-04 13:45:24 +02:00
|
|
|
"kea-localstorage": "^1.0.2",
|
2020-06-16 14:28:11 +02:00
|
|
|
"kea-router": "^0.4.0",
|
2020-06-30 12:57:02 +02:00
|
|
|
"kea-window-values": "^0.0.1",
|
2020-08-17 15:40:11 +02:00
|
|
|
"moment": "^2.24.0",
|
2020-10-15 11:42:42 +02:00
|
|
|
"posthog-js": "1.5.0",
|
2020-08-11 10:52:43 +02:00
|
|
|
"posthog-js-lite": "^0.0.3",
|
2020-04-14 12:05:45 +02:00
|
|
|
"prop-types": "^15.7.2",
|
2020-09-07 16:23:13 +02:00
|
|
|
"query-string": "^6.13.1",
|
2020-09-01 15:58:13 +02:00
|
|
|
"react": "^16.13.1",
|
2020-08-17 15:40:11 +02:00
|
|
|
"react-datepicker": "^2.13.0",
|
2020-09-03 14:37:20 +02:00
|
|
|
"react-dom": "^16.12.0",
|
2020-08-17 15:40:11 +02:00
|
|
|
"react-draggable": "^4.2.0",
|
2020-10-14 09:59:02 +02:00
|
|
|
"react-grid-layout": "^1.1.1",
|
2020-04-14 12:05:45 +02:00
|
|
|
"react-redux": "^7.2.0",
|
|
|
|
"react-shadow": "^17.4.0",
|
2020-08-26 16:36:34 +02:00
|
|
|
"react-syntax-highlighter": "^13.5.1",
|
2020-08-17 15:40:11 +02:00
|
|
|
"react-toastify": "^5.5.0",
|
2020-04-14 12:05:45 +02:00
|
|
|
"redux": "^4.0.5",
|
|
|
|
"reselect": "^4.0.0",
|
2020-10-08 11:09:35 +02:00
|
|
|
"rrweb": "^0.9.7",
|
2020-10-13 15:44:56 +02:00
|
|
|
"rrweb-player": "^0.6.2",
|
2020-04-14 12:05:45 +02:00
|
|
|
"sass": "^1.26.2",
|
2020-09-25 02:37:55 +02:00
|
|
|
"zxcvbn": "^4.4.2"
|
2020-04-14 12:05:45 +02:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-07-08 09:45:23 +02:00
|
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
|
|
"@babel/plugin-transform-react-jsx": "^7.10.4",
|
2020-08-17 15:40:11 +02:00
|
|
|
"@babel/plugin-transform-runtime": "^7.10.4",
|
|
|
|
"@babel/preset-env": "7.10.4",
|
2020-07-08 09:45:23 +02:00
|
|
|
"@babel/preset-typescript": "^7.10.4",
|
2020-06-02 11:39:53 +02:00
|
|
|
"@hot-loader/react-dom": "^16.13.0",
|
2020-10-08 00:43:23 +02:00
|
|
|
"@types/react-dom": "^16.9.8",
|
|
|
|
"@types/react-redux": "^7.1.9",
|
2020-10-14 10:42:06 +02:00
|
|
|
"@types/react-syntax-highlighter": "^11.0.4",
|
|
|
|
"@types/zxcvbn": "^4.4.0",
|
2020-08-17 15:40:11 +02:00
|
|
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
|
|
|
"@typescript-eslint/parser": "^3.6.0",
|
|
|
|
"autoprefixer": "^9.7.4",
|
2020-05-13 14:17:00 +02:00
|
|
|
"babel-eslint": "^10.1.0",
|
2020-04-14 12:05:45 +02:00
|
|
|
"babel-loader": "^8.0.6",
|
|
|
|
"babel-plugin-import": "^1.13.0",
|
2020-04-27 17:39:21 +02:00
|
|
|
"babel-plugin-kea": "^0.1.0",
|
2020-08-14 17:02:57 +02:00
|
|
|
"concurrently": "^5.3.0",
|
2020-08-17 15:40:11 +02:00
|
|
|
"css-loader": "^3.4.2",
|
2020-04-14 12:05:45 +02:00
|
|
|
"cssnano": "^4.1.10",
|
2020-10-14 14:36:25 +02:00
|
|
|
"cypress": "^5.3.0",
|
|
|
|
"cypress-terminal-report": "^2.1.0",
|
2020-09-01 15:58:13 +02:00
|
|
|
"eslint": "^7.8.0",
|
2020-05-13 14:17:00 +02:00
|
|
|
"eslint-config-prettier": "^6.11.0",
|
2020-07-08 09:45:23 +02:00
|
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
|
|
"eslint-plugin-react": "^7.20.3",
|
2020-09-01 15:58:13 +02:00
|
|
|
"file-loader": "^6.1.0",
|
2020-06-02 11:39:53 +02:00
|
|
|
"html-webpack-harddisk-plugin": "^1.0.1",
|
2020-09-01 15:58:13 +02:00
|
|
|
"html-webpack-plugin": "^4.4.1",
|
|
|
|
"husky": "~4.2.5",
|
2020-09-10 15:29:24 +02:00
|
|
|
"kea-typegen": "^0.3.0",
|
2020-09-01 15:58:13 +02:00
|
|
|
"lint-staged": "~10.2.13",
|
|
|
|
"mini-css-extract-plugin": "^0.11.0",
|
2020-06-23 18:42:54 +02:00
|
|
|
"nodemon": "^2.0.4",
|
2020-04-14 12:05:45 +02:00
|
|
|
"postcss-loader": "^3.0.0",
|
2020-09-01 15:58:13 +02:00
|
|
|
"prettier": "^2.1.1",
|
2020-06-02 11:39:53 +02:00
|
|
|
"react-hot-loader": "^4.12.21",
|
2020-09-01 15:58:13 +02:00
|
|
|
"sass-loader": "^10.0.1",
|
2020-06-04 13:45:24 +02:00
|
|
|
"style-loader": "^1.2.1",
|
2020-09-01 15:58:13 +02:00
|
|
|
"typescript": "^3.9.0",
|
|
|
|
"webpack": "^4.44.1",
|
|
|
|
"webpack-cli": "^3.3.12",
|
2020-08-14 17:02:57 +02:00
|
|
|
"webpack-dev-server": "^3.11.0"
|
2020-04-14 12:05:45 +02:00
|
|
|
},
|
2020-09-01 15:58:13 +02:00
|
|
|
"optionalDependencies": {
|
|
|
|
"fsevents": "^2.1.2"
|
|
|
|
},
|
2020-04-14 12:05:45 +02:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
2020-08-18 11:08:40 +02:00
|
|
|
"*.{js,ts,tsx,json,yml,css,scss}": "prettier --write",
|
2020-07-22 12:25:54 +02:00
|
|
|
"*.{js,ts,tsx}": "eslint",
|
2020-07-28 22:19:33 +02:00
|
|
|
"*.py": [
|
|
|
|
"./env/bin/black -l 120",
|
|
|
|
"./env/bin/isort -m 3 --tc --fgw 8 --up -n -l 120"
|
|
|
|
]
|
2020-03-14 15:53:14 +01:00
|
|
|
}
|
2020-07-28 22:19:33 +02:00
|
|
|
}
|