mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
adds some arguments to unit tests to get around some windows shenanigans and adds enzyme to the project for use in testing
91 lines
2.7 KiB
JSON
91 lines
2.7 KiB
JSON
{
|
|
"name": "new-phone",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@babel/polyfill": "^7.4.4",
|
|
"@material-ui/core": "^4.11.0",
|
|
"@material-ui/icons": "^4.9.1",
|
|
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
"@testing-library/react": "^9.5.0",
|
|
"@testing-library/user-event": "^7.2.1",
|
|
"@types/jest": "^26.0.14",
|
|
"core-js": "^3.6.5",
|
|
"emoji-mart": "^3.0.0",
|
|
"enzyme": "^3.11.0",
|
|
"enzyme-adapter-react-16": "^1.15.5",
|
|
"husky": "^4.2.5",
|
|
"i18next": "^19.7.0",
|
|
"prettier": "^2.0.5",
|
|
"react": "^16.13.1",
|
|
"react-dom": "^16.13.1",
|
|
"react-hotkeys": "^2.0.0",
|
|
"react-i18next": "^11.7.1",
|
|
"react-router-dom": "^5.2.0",
|
|
"react-scripts": "3.4.3",
|
|
"recoil": "^0.0.10",
|
|
"styled-components": "^5.1.1",
|
|
"uuid": "^8.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.4.4",
|
|
"@babel/core": "^7.4.5",
|
|
"@babel/plugin-proposal-class-properties": "^7.4.4",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
"@babel/preset-env": "^7.4.5",
|
|
"@babel/preset-react": "^7.0.0",
|
|
"babel-eslint": "^10.0.1",
|
|
"babel-loader": "^8.1.0",
|
|
"babel-plugin-styled-components": "^1.10.0",
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
"cra-build-watch": "^3.2.0",
|
|
"cross-env": "^7.0.2",
|
|
"css-loader": "^2.1.1",
|
|
"file-loader": "^3.0.1",
|
|
"html-loader": "^0.5.5",
|
|
"html-webpack-plugin": "^4.3.0",
|
|
"ifdef-loader": "^2.1.5",
|
|
"react-test-renderer": "^16.13.1",
|
|
"style-loader": "^0.23.1",
|
|
"svg-url-loader": "^2.3.2",
|
|
"terser-webpack-plugin": "^1.3.0",
|
|
"url-loader": "^1.1.2",
|
|
"webpack-cli": "^3.3.12"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"watch": "cra-build-watch --disable-chunks --build-path ../resources/html --output-filename dev.js",
|
|
"build": "react-scripts build",
|
|
"build:resources": "cross-env NODE_ENV=production webpack --config webpack/webpack.resources.js --color -p --progress --hide-modules --display-optimization-bailout",
|
|
"test": "react-scripts test --watchAll=false --testMatch **/src/**/*.test.js",
|
|
"test:watch": "react-scripts test --watchAll --testMatch **/src/**/*.test.js",
|
|
"eject": "react-scripts eject"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": "react-app"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged && npm run test"
|
|
}
|
|
}
|
|
}
|