You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update package.json for deployment and add husky pre-commit hook
fix: refactor header component to use Link from react-router-dom
feat: enhance ProjectsPage with dynamic project rendering and filtering
feat: add NotFoundPage for handling 404 errors in router
chore: configure Vite for deployment and source maps
chore: add environment variables for GitHub token and login
chore: set up husky pre-commit hook to run checks
test: add Jest configuration and initial test cases
test: create mock file for asset imports in tests
test: implement sample tests for basic functionality
test: add tests for HomePage component with dark/light mode
test: set up testing library for better assertions
Copy file name to clipboardExpand all lines: README.md
+59-25Lines changed: 59 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,51 +14,85 @@ In the project directory, you can run:
14
14
15
15
### `npm start`
16
16
17
-
Runs the app in the development mode.\
18
-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
17
+
Runs the app in development mode using Vite.\
18
+
Open [http://localhost:5173](http://localhost:5173) to view it in your browser.
19
19
20
20
The page will reload when you make changes.\
21
21
You may also see any lint errors in the console.
22
22
23
-
### `npm test`
24
-
25
-
Launches the test runner in the interactive watch mode.\
26
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
27
-
28
23
### `npm run build`
29
24
30
-
Builds the app for production to the `build` folder.\
31
-
It correctly bundles React in production mode and optimizes the build for the best performance.
25
+
Builds the app for production to the `dist` folder.\
26
+
It correctly bundles React in production mode and optimizes the build for the best performance using Vite.
32
27
33
28
The build is minified and the filenames include the hashes.\
34
29
Your app is ready to be deployed!
35
30
36
-
### `npm run deploy`
31
+
### `npm run preview`
37
32
38
-
Deploy your react application to GitHub Pages. This deploys a build to a branch called `gh-pages`.
39
-
That should directly deploy to the production version of the website.
40
-
[Extra Info Here](https://www.c-sharpcorner.com/article/how-to-deploy-react-application-on-github-pages/)
33
+
Locally preview the production build.\
34
+
Serves the content from the `dist` folder.
41
35
42
-
### `npm run eject`
36
+
### `npm test`
43
37
44
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
38
+
Launches Jest test runner.\
39
+
Run `npm run test:watch` for interactive watch mode.\
40
+
Run `npm run test:cov` for coverage reports.
45
41
46
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
42
+
### `npm run lint`
47
43
48
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc.) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
44
+
Runs ESLint to check for code quality and style issues.\
45
+
Automatically fixes issues where possible.
49
46
50
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
47
+
### `npm run format`
51
48
52
-
## Learn More
49
+
Runs Prettier to format code consistently.
50
+
51
+
### `npm run deploy`
53
52
54
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
53
+
Deploy your React application to GitHub Pages.\
54
+
This builds the app and deploys it to the `gh-pages` branch.
55
55
56
-
To learn React, check out the [React documentation](https://reactjs.org/).
56
+
### `npm run check`
57
57
58
-
### Making a Progressive Web App
58
+
Runs the full quality check pipeline: build, format, lint, and test with coverage.
59
59
60
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
0 commit comments