Skip to content

Commit 702f3ea

Browse files
committed
Use vite instead of create-react-app
1 parent ada8b41 commit 702f3ea

14 files changed

Lines changed: 1796 additions & 27910 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/coverage
1010

1111
# production
12-
/build
12+
/dist
1313

1414
# misc
1515
.DS_Store

README.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ you can inspect the React state and see it updated as changes happen.
1414

1515
For additional samples, see [gojs-react-samples](https://github.com/NorthwoodsSoftware/gojs-react-samples).
1616

17-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
18-
It also uses [immer](https://immerjs.github.io/immer/) to simplify state update operations.
17+
This project uses [immer](https://immerjs.github.io/immer/) to simplify state update operations.
1918

2019
## Installation
2120

@@ -25,36 +24,10 @@ Start by running npm install to install all necessary dependencies.
2524

2625
In the project directory, you can run:
2726

28-
### `npm start`
27+
### `npm run dev`
2928

3029
Runs the app in the development mode.<br>
3130
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
3231

3332
The page will reload if you make edits.<br>
3433
You will also see any lint errors in the console.
35-
36-
### `npm run build`
37-
38-
Builds the app for production to the `build` folder.<br>
39-
It correctly bundles React in production mode and optimizes the build for the best performance.
40-
41-
The build is minified and the filenames include the hashes.<br>
42-
Your app is ready to be deployed!
43-
44-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
45-
46-
### `npm run eject`
47-
48-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
49-
50-
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.
51-
52-
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.
53-
54-
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.
55-
56-
## Learn More
57-
58-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
59-
60-
To learn React, check out the [React documentation](https://reactjs.org/).

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>GoJS React App</title>
8+
</head>
9+
<body>
10+
<noscript>You need to enable JavaScript to run this app.</noscript>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)