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
Copy file name to clipboardExpand all lines: README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). Too see more details about bootstrapping, open [documentation/bootstrapping.md](./documentation/bootstrapping.md)
6
6
7
+
[2025-09] This project was migrated from Create React App to [Vite](https://vite.dev/). To see more information about migration, open [documentation/vite.md](./documentation/vite.md)
@@ -22,8 +24,6 @@ Preferred code editor is `Visual Studio Code`. Settings config file is also incl
22
24
23
25
Contribute using [GitHub flow](https://guides.github.com/introduction/flow/), once new Pull request is created, [GitHub Workflows](https://github.com/project-ncl/pnc-web-ui-react/tree/main/.github/workflows) are started and jobs consisting of building and testing are executed.
24
26
25
-
To see more details about scripts added by Create React App, open [documentation/README_CRA.md](./documentation/README_CRA.md).
26
-
27
27
First prepare project locally:
28
28
29
29
```bash
@@ -37,13 +37,19 @@ Then choose one of the following options:
37
37
**1) Development**
38
38
39
39
```bash
40
-
npm start # runs the app in the development mode and open http://localhost:3000
40
+
npm start # runs the app in the development mode on: http://localhost:3000
41
41
```
42
42
43
43
**2) Build**
44
44
45
45
```bash
46
-
npm run build # builds the app for production to the build folder
46
+
npm run build # builds the app for production to the dist folder
47
+
```
48
+
49
+
**3) Preview**
50
+
51
+
```bash
52
+
npm run preview # runs the production build from dist folder (only for testing purposes)
47
53
```
48
54
49
55
## Release
@@ -66,7 +72,7 @@ Snapshot Test was integrated in some components. Update for snapshots is require
66
72
67
73
To update the snapshops of a component:
68
74
69
-
**1) Run unit test**
75
+
**1a) Run unit test**
70
76
71
77
```bash
72
78
npm run test# run tests for those components that was modified.
@@ -77,3 +83,11 @@ npm run test # run tests for those components that was modified.
This project uses [Vite](https://vite.dev/) as the development server and build tool for production.
4
+
5
+
Create React App was used as a build tool before, but was migrated to Vite. The migration was done entirely manually, without using any automated tools. Old dependencies (such as `react-scripts`) were replaced with new ones (such as `vite`).
6
+
7
+
## vite-tsconfig-paths
8
+
9
+
This Vite plugin is needed for the [tsconfig.json](../tsconfig.json)'s `baseUrl` property to work correctly in the imports.
0 commit comments