Skip to content

Commit e8f2f27

Browse files
authored
Merge pull request #325 from Azure-Samples/carocao/Vite
Migrate CRA to Vite
2 parents eacae94 + f5de4ac commit e8f2f27

19 files changed

+20505
-78224
lines changed

.github/workflows/ui-library-add-call-recording.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
uses: ./.github/workflows/ci-ui-library.yml
2020
with:
2121
runs-on: 'ubuntu-latest'
22-
node-version: '16.x'
22+
node-version: '22.x'
2323
working-directory: './ui-library-add-call-recording/app'

.github/workflows/ui-library-call-readiness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
uses: ./.github/workflows/ci-ui-library.yml
2020
with:
2121
runs-on: 'ubuntu-latest'
22-
node-version: '16.x'
22+
node-version: '22.x'
2323
working-directory: './ui-library-call-readiness'

.github/workflows/ui-library-click-to-call.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
uses: ./.github/workflows/ci-ui-library.yml
2020
with:
2121
runs-on: 'ubuntu-latest'
22-
node-version: '16.x'
22+
node-version: '22.x'
2323
working-directory: './ui-library-click-to-call'
Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Getting Started with Create React App
1+
# Getting Started with Vite
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
This project was bootstrapped with [Vite](https://vite.dev/guide/).
44

55
## Available Scripts
66

@@ -14,11 +14,6 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
1414
The page will reload if you make edits.\
1515
You will also see any lint errors in the console.
1616

17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
2217
### `npm run build`
2318

2419
Builds the app for production to the `build` folder.\
@@ -29,18 +24,8 @@ Your app is ready to be deployed!
2924

3025
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
3126

32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35-
36-
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.
37-
38-
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.
39-
40-
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.
41-
4227
## Learn More
4328

44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
29+
You can learn more in the [Vite documentation](https://vite.dev/guide/).
4530

4631
To learn React, check out the [React documentation](https://reactjs.org/).

ui-library-click-to-call/public/index.html renamed to ui-library-add-call-recording/app/index.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,25 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
1010
content="Web site created using create-react-app"
1111
/>
12-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
12+
<link rel="apple-touch-icon" href="/logo192.png" />
1313
<!--
1414
manifest.json provides metadata used when your web app is installed on a
1515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1616
-->
17-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18-
<!--
19-
Notice the use of %PUBLIC_URL% in the tags above.
20-
It will be replaced with the URL of the `public` folder during the build.
21-
Only files inside the `public` folder can be referenced from the HTML.
22-
23-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24-
work correctly both with client-side routing and a non-root public URL.
25-
Learn how to configure a non-root public URL by running `npm run build`.
26-
-->
17+
<link rel="manifest" href="/manifest.json" />
2718
<title>React App</title>
2819
</head>
2920
<body>
3021
<noscript>You need to enable JavaScript to run this app.</noscript>
3122
<div id="root"></div>
23+
<script type="module" src="/src/index.tsx"></script>
3224
<!--
3325
This HTML file is a template.
3426
If you open it directly in the browser, you will see an empty page.

0 commit comments

Comments
 (0)