Last active
July 3, 2021 19:38
-
-
Save eesa1980/4fe24bc78f0ecf4f7f92e5aad5028e5b to your computer and use it in GitHub Desktop.
#packagejson #config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-project", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"@testing-library/jest-dom": "^5.11.4", | |
"@testing-library/react": "^11.1.0", | |
"@testing-library/user-event": "^12.1.10", | |
"aws-amplify": "^3.3.24", | |
"axios": "^0.21.1", | |
"dayjs": "^1.10.4", | |
"fontsource-roboto": "^4.0.0", | |
"formik": "^2.2.6", | |
"logrocket": "^1.1.0", | |
"msw": "^0.28.1", | |
"react": "^17.0.1", | |
"react-dom": "^17.0.1", | |
"react-modal": "^3.13.1", | |
"react-router-dom": "^5.2.0", | |
"react-scripts": "4.0.3", | |
"source-map-explorer": "^2.5.2", | |
"styled-components": "^5.2.1", | |
"typescript": "^4.2.2", | |
"web-vitals": "^1.0.1", | |
"yup": "^0.32.9" | |
}, | |
"scripts": { | |
"start": "react-scripts start", | |
"build:dev": "env-cmd -f .env.dev react-scripts build", | |
"build:test": "env-cmd -f .env.test react-scripts build", | |
"build:testnonprd": "env-cmd -f .env.testnonprd react-scripts build", | |
"build:prod": "GENERATE_SOURCEMAP=false env-cmd -f .env.prod react-scripts build", | |
"test": "react-scripts test --collectCoverage", | |
"analyze": "source-map-explorer 'build/static/js/*.js'", | |
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx", | |
"lint:fix": "yarn lint --fix", | |
"pre-commit": "yarn tsc && yarn lint:fix && yarn someLambda:lint, | |
"mock-api": "amplify function build && amplify api gql-compile && amplify codegen && amplify mock api", | |
"amplify:PresignedUrlLambda": "yarn someLambda:path tsc", | |
"someLambda:path": "yarn --cwd amplify/backend/function/SomeLambda/src", | |
"someLambda:install": "yarn someLambda:path install", | |
"someLambda:mock": "yarn amplify:SomeLambda && amplify mock function PresignedUrlLambda", | |
"someLambda:test": "yarn someLambda:path test", | |
"someLambda:lint": "yarn someLambda:path lint:fix", | |
}, | |
"lint-staged": { | |
"src/**/*.{ts,tsx,js}": [ | |
"yarn pre-commit" | |
], | |
"amplify/backend/function/**/src/!(build)/**/*.{ts,js}": [ | |
"yarn pre-commit" | |
] | |
}, | |
"browserslist": { | |
"production": [ | |
">0.2%", | |
"not dead", | |
"not op_mini all" | |
], | |
"development": [ | |
"last 1 chrome version", | |
"last 1 firefox version", | |
"last 1 safari version" | |
] | |
}, | |
"devDependencies": { | |
"@types/jest": "^26.0.15", | |
"@types/node": "^12.0.0", | |
"@types/react": "^17.0.0", | |
"@types/react-dom": "^17.0.0", | |
"@types/react-router-dom": "^5.1.7", | |
"@types/styled-components": "^5.1.7", | |
"@typescript-eslint/eslint-plugin": "^4.15.2", | |
"@typescript-eslint/parser": "^4.15.2", | |
"eslint-config-prettier": "^8.1.0", | |
"eslint-plugin-prettier": "^3.3.1", | |
"husky": "^5.1.1", | |
"lint-staged": "^10.5.4", | |
"prettier": "^2.2.1" | |
}, | |
"jest": { | |
"testMatch": [ | |
"**/*.test.tsx", | |
"**/*.test.ts" | |
], | |
"transformIgnorePatterns": [ | |
"<rootDir>/node_modules/(?!loadash-es|grommet/es6)" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment