|
|
|
@ -3,12 +3,21 @@ |
|
|
|
"version": "0.1.0", |
|
|
|
"version": "0.1.0", |
|
|
|
"private": true, |
|
|
|
"private": true, |
|
|
|
"scripts": { |
|
|
|
"scripts": { |
|
|
|
|
|
|
|
"prestart ": "yarn generate", |
|
|
|
"start": "react-scripts start", |
|
|
|
"start": "react-scripts start", |
|
|
|
"build": "GENERATE_SOURCEMAP=false react-scripts build && gzipper --verbose ./build", |
|
|
|
"build": "GENERATE_SOURCEMAP=false react-scripts build && gzipper --verbose ./build", |
|
|
|
"test": "react-scripts test --passWithNoTests --watchAll=false", |
|
|
|
"test": "react-scripts test --testMatch '**/__tests__/*' --passWithNoTests --watchAll=false", |
|
|
|
"eject": "react-scripts eject" |
|
|
|
"test:watch": "react-scripts test --testMatch '**/__tests__/*'", |
|
|
|
|
|
|
|
"eject": "react-scripts eject", |
|
|
|
|
|
|
|
"generate": "graphql-codegen --config codegen.yml", |
|
|
|
|
|
|
|
"lint": "eslint 'src/**/*.{ts,tsx}'" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"dependencies": { |
|
|
|
"dependencies": { |
|
|
|
|
|
|
|
"@apollo/react-common": "^3.1.4", |
|
|
|
|
|
|
|
"@apollo/react-hooks": "^3.1.5", |
|
|
|
|
|
|
|
"apollo-boost": "^0.4.9", |
|
|
|
|
|
|
|
"graphql": "^15.0.0", |
|
|
|
|
|
|
|
"lodash": "^4.17.15", |
|
|
|
"react": "^16.13.1", |
|
|
|
"react": "^16.13.1", |
|
|
|
"react-dom": "^16.13.1", |
|
|
|
"react-dom": "^16.13.1", |
|
|
|
"react-scripts": "3.4.1" |
|
|
|
"react-scripts": "3.4.1" |
|
|
|
@ -16,21 +25,35 @@ |
|
|
|
"devDependencies": { |
|
|
|
"devDependencies": { |
|
|
|
"@commitlint/cli": "^8.3.5", |
|
|
|
"@commitlint/cli": "^8.3.5", |
|
|
|
"@commitlint/config-conventional": "^8.3.4", |
|
|
|
"@commitlint/config-conventional": "^8.3.4", |
|
|
|
|
|
|
|
"@graphql-codegen/cli": "1.15.0", |
|
|
|
|
|
|
|
"@graphql-codegen/import-types-preset": "^1.15.0", |
|
|
|
|
|
|
|
"@graphql-codegen/near-operation-file-preset": "^1.15.0", |
|
|
|
|
|
|
|
"@graphql-codegen/typescript": "1.15.0", |
|
|
|
|
|
|
|
"@graphql-codegen/typescript-operations": "1.15.0", |
|
|
|
|
|
|
|
"@graphql-codegen/typescript-react-apollo": "1.15.0", |
|
|
|
"@testing-library/jest-dom": "^4.2.4", |
|
|
|
"@testing-library/jest-dom": "^4.2.4", |
|
|
|
"@testing-library/react": "^9.3.2", |
|
|
|
"@testing-library/react": "^9.3.2", |
|
|
|
"@testing-library/user-event": "^7.1.2", |
|
|
|
"@testing-library/user-event": "^7.1.2", |
|
|
|
"@types/jest": "^24.0.0", |
|
|
|
"@types/jest": "^24.0.0", |
|
|
|
|
|
|
|
"@types/lodash": "^4.14.154", |
|
|
|
"@types/node": "^12.0.0", |
|
|
|
"@types/node": "^12.0.0", |
|
|
|
"@types/react": "^16.9.0", |
|
|
|
"@types/react": "^16.9.0", |
|
|
|
"@types/react-dom": "^16.9.0", |
|
|
|
"@types/react-dom": "^16.9.0", |
|
|
|
"commitizen": "^4.1.2", |
|
|
|
"commitizen": "^4.1.2", |
|
|
|
|
|
|
|
"eslint": "6.8.0", |
|
|
|
|
|
|
|
"eslint-config-airbnb": "18.1.0", |
|
|
|
|
|
|
|
"eslint-plugin-import": "^2.20.1", |
|
|
|
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.2.3", |
|
|
|
|
|
|
|
"eslint-plugin-postro4no": "^0.0.7", |
|
|
|
|
|
|
|
"eslint-plugin-react": "^7.19.0", |
|
|
|
|
|
|
|
"eslint-plugin-react-hooks": "2.5.0", |
|
|
|
|
|
|
|
"eslint-plugin-sort-destructure-keys": "^1.3.4", |
|
|
|
|
|
|
|
"eslint-plugin-typescript-sort-keys": "^1.2.0", |
|
|
|
"gzipper": "^3.7.0", |
|
|
|
"gzipper": "^3.7.0", |
|
|
|
"husky": "^4.2.5", |
|
|
|
"husky": "^4.2.5", |
|
|
|
|
|
|
|
"lint-staged": "^10.2.7", |
|
|
|
"typescript": "^3.9.3" |
|
|
|
"typescript": "^3.9.3" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"eslintConfig": { |
|
|
|
|
|
|
|
"extends": "react-app" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"config": { |
|
|
|
"config": { |
|
|
|
"commitizen": { |
|
|
|
"commitizen": { |
|
|
|
"path": "./node_modules/cz-conventional-changelog" |
|
|
|
"path": "./node_modules/cz-conventional-changelog" |
|
|
|
@ -38,10 +61,16 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
"husky": { |
|
|
|
"husky": { |
|
|
|
"hooks": { |
|
|
|
"hooks": { |
|
|
|
"pre-commit": "npm test", |
|
|
|
"pre-commit": "lint-staged", |
|
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
|
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
"lint-staged": { |
|
|
|
|
|
|
|
"src/**/*.{ts,tsx}": [ |
|
|
|
|
|
|
|
"npm run lint -- --max-warnings 0", |
|
|
|
|
|
|
|
"npm run test -- --findRelatedTests" |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
"browserslist": { |
|
|
|
"browserslist": { |
|
|
|
"production": [ |
|
|
|
"production": [ |
|
|
|
">0.2%", |
|
|
|
">0.2%", |
|
|
|
|