0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/package.json
Tim Glaser bcf427cb55
Webpack HMR, Add hashes to chunk filenames. (#878)
* Closes #877 chunk loading errors

* Closes #877 chunk loading errors

* add chunks to all webpack files, use webpack-html-plugin to make an index.html with the right names

* change to contenthash for better caching

* add dev server on a different port

* store loaded scenes in reducer

* add react-hot-loader

* add react-hot-loader to all code split points

* fix action pages HMR

* ignore cypress screenshots

* generate django login/signup page layout with webpack html plugin

* move to devDependencies

* expose webpack-dev-server ports

* run tests on the production docker image

* start webpack dev server on a custom host if requested

* revert e2e to dev dockerfile

* add test travis config

* add stages

* add travis conf

* cache node and pip

* node 11

* travis ci bump

* node via nvm

* install v12, disable cypress for a moment

* remove 2 commands, test cached build time

* try different yarn cache, add cypress

* add postgres 12

* migrate before cypress

* remove latest postgres for now

* createdb before cypress

* Try different port

* cull packages

* remove hash from main bundle filenames to not break anything

* cypress port 8000

* cypress tests with production docker

* don't use the /code path in e2e test, use docker image

* remove hash from css to work better with editor

* only one export from actions

* remove travis test

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-06-02 10:39:53 +01:00

99 lines
3.3 KiB
JSON

{
"name": "posthog",
"description": "",
"version": "0.0.0",
"repository": {
"type": "git",
"url": "https://github.com/posthog/posthog.git"
},
"author": "",
"bugs": {
"url": "https://github.com/posthog/posthog/issues"
},
"homepage": "https://github.com/posthog/posthog#readme",
"scripts": {
"copy-array": "cp node_modules/posthog-js/dist/array.js frontend/dist/",
"start": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-array && webpack-dev-server --hotOnly",
"build": "NODE_ENV=production webpack --config webpack.config.js && cp -a frontend/public/* frontend/dist/ && npm run copy-array",
"prettier": "prettier --write \"./frontend/src/**/*.{js,css,scss}\"",
"eslint:github-action": "eslint frontend/src"
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.8.7",
"@babel/runtime": "^7.8.7",
"@mariusandra/react-grid-layout": "0.18.3",
"antd": "^4.1.1",
"babel-preset-nano-react-app": "^0.1.0",
"bootstrap": "^4.4.1",
"chart.js": "^2.9.3",
"core-js": "3",
"d3": "^5.15.0",
"d3-sankey": "^0.12.3",
"funnel-graph-js": "^1.4.1",
"kea": "^2.0.0-beta.8",
"kea-loaders": "^0.2.2",
"kea-router": "^0.3.0",
"moment": "^2.24.0",
"posthog-js": "1.0.7-beta.0",
"prop-types": "^15.7.2",
"react": ">= 16.8",
"react-datepicker": "^2.13.0",
"react-dom": ">= 16.8",
"react-draggable": "^4.2.0",
"react-redux": "^7.2.0",
"react-shadow": "^17.4.0",
"react-stripe-elements": "^6.0.1",
"react-toastify": "^5.5.0",
"redux": "^4.0.5",
"reselect": "^4.0.0",
"sass": "^1.26.2",
"simmerjs": "^0.5.6",
"styled-components": "^5.0.1"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-react-jsx": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "7.9.6",
"@hot-loader/react-dom": "^16.13.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",
"css-loader": "^3.4.2",
"cssnano": "^4.1.10",
"cypress": "^4.5.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"file-loader": "^5.1.0",
"html-webpack-harddisk-plugin": "^1.0.1",
"html-webpack-plugin": "^4.3.0",
"husky": ">=4",
"lint-staged": ">=10",
"mini-css-extract-plugin": "^0.9.0",
"postcss-loader": "^3.0.0",
"prettier": "1.19.1",
"react-hot-loader": "^4.12.21",
"sass-loader": "^8.0.2",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,css,scss}": "prettier --write",
"*.js": "eslint"
},
"optionalDependencies": {
"fsevents": "^2.1.2"
}
}