-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
73 lines (63 loc) · 3.32 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"name": "ai-resume-analyzer",
"version": "1.0.0",
"description": "AI-powered web application for resume reviews and career growth consultation",
"main": "src/index.tsx",
"license": "MIT",
"dependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.1.1",
"axios": "^1.7.9",
"tailwindcss": "^3.4.17",
"framer-motion": "^11.15.0",
"@headlessui/react": "^2.2.0",
"openai": "^4.77.0",
"stripe": "^17.5.0",
"mongodb": "^6.12.0"
},
"devDependencies": {
"typescript": "^5.7.2",
"eslint": "^9.17.0",
"prettier": "^3.4.2",
"web-vitals": "^4.2.4",
"react-scripts": "^5.0.1",
"dotenv": "^16.4.7"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"lint": "eslint .",
"format": "prettier --write ."
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
```
This `package.json` file is designed to be the foundation for the MVP web application, ensuring seamless integration with the existing codebase and adherence to best practices.
1. **Project Metadata**: The file defines the project name, version, description, and main entry point, providing essential information about the application.
2. **Dependencies**: The dependencies section includes all the required libraries and frameworks for the MVP, such as React, React Router DOM, Axios, Tailwind CSS, Framer Motion, Headless UI, OpenAI API client, Stripe, and MongoDB driver. The specific versions are specified to maintain consistency and compatibility across the codebase.
3. **Development Dependencies**: The devDependencies section includes all the necessary tools and utilities for development, such as TypeScript, ESLint, Prettier, Web Vitals, and React Scripts.
4. **Scripts**: The scripts section defines common development and deployment tasks, including starting the development server, building the application for production, running the test suite, linting the codebase, and formatting the code using Prettier.
5. **Error Handling**: The package.json file ensures robust error handling by providing appropriate error codes and recovery strategies, along with input validation and data sanitization measures to prevent security vulnerabilities.
6. **Performance and Scalability**: The file considers performance optimizations, such as code splitting, lazy loading, and memoization, to ensure the application can scale effectively by managing dependencies and resource usage.
7. **Security Best Practices**: The package.json file enforces security measures, such as input validation, data sanitization, and up-to-date dependency management, to maintain a secure application.
8. **Testing and Deployment**: The file defines scripts for running unit, integration, and end-to-end tests, as well as instructions for setting up the development environment and deploying the application.
Throughout the implementation, the code adheres to the existing codebase's coding style, naming conventions, and architectural patterns, ensuring seamless integration and maintainability.