60 lines
1.8 KiB
JSON
60 lines
1.8 KiB
JSON
{
|
|
"name": "react-helloworld-tryout",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
"@testing-library/react": "^9.3.2",
|
|
"@testing-library/user-event": "^7.1.2",
|
|
"react": "^16.14.0",
|
|
"react-dom": "^16.14.0",
|
|
"react-scripts": "4.0.3",
|
|
"web-vitals": "^1.0.1"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"test": "react-scripts test",
|
|
"test_coverage": "yarn test -- --coverage",
|
|
"screenshot": "yarn test",
|
|
"test:dev": "react-scripts test --maxWorkers=1 --notify --coverage --watchAll=false",
|
|
"eject": "react-scripts eject",
|
|
"prettier_file": "prettier --write \"./src/**/*.{js,jsx}\"",
|
|
"trim": "rm -rf build node_modules *lock*",
|
|
"re-build": "rm -rf build node_modules && yarn install && yarn build",
|
|
"gitSync": "git fetch --all && git pull",
|
|
"gitUpdate": "yarn gitSync && git add . && git commit -m\"update react-helloworld-tryout,\" && git push",
|
|
"dev": "yarn --dev && set HTTPS=true&&yarn start",
|
|
"http": "serve -s build",
|
|
"lint": "eslint -c ./.eslintrc.js src --ignore-pattern src/tests --ignore-pattern *.test.js --max-warnings 5 --fix",
|
|
"lint_init": "eslint --init",
|
|
"docker_rebuild": "docker compose up -d --build && docker compose logs -f ",
|
|
"into_docker": "docker compose exec -it react /bin/bash"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off"
|
|
}
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"prettier": "latest",
|
|
"puppeteer": "latest"
|
|
}
|
|
}
|