Skip to content

Commit 519b563

Browse files
authored
chore: migrate cra and vue-cli examples to vite (#490)
* chore: migrate create react app examples to vite * chore: migrate vue cli examples to vite notable exceptions are: - server-side-rendering which isn't worth the migration since we already have an ssr example with vue 3 and vite - vue3-vue-cli which can be left as an example integration with this specific tooling * use node 18 for react
1 parent cc89cac commit 519b563

File tree

229 files changed

+18138
-234294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+18138
-234294
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
path: 'angular-instantsearch/secured-api-keys'
6969

7070
build_react_projects:
71-
executor: node14
71+
executor: node18
7272
steps:
7373
- checkout
7474
- build_project:

react-instantsearch/algolia-insights/public/index.html renamed to react-instantsearch/algolia-insights/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
77
<meta name="theme-color" content="#000000">
88

9-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
9+
<link rel="shortcut icon" href="/favicon.png">
1010

1111
<!--
1212
Do not use @7 in production, use a complete version like x.x.x, see website for latest version:
@@ -23,6 +23,7 @@
2323
</noscript>
2424

2525
<div id="root"></div>
26+
<script type="module" src="/src/index.jsx"></script>
2627
</body>
2728

2829
</html>

react-instantsearch/algolia-insights/package.json

+7-24
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,16 @@
44
"private": true,
55
"dependencies": {
66
"algoliasearch": "^4.13.0",
7-
"instantsearch.css": "^7.4.5",
8-
"instantsearch.js": "4.56.8",
97
"react": "^18.1.0",
108
"react-dom": "^18.1.0",
11-
"react-instantsearch": "7.0.0",
12-
"react-scripts": "5.0.1"
9+
"react-instantsearch": "7.0.0"
1310
},
14-
"scripts": {
15-
"start": "react-scripts start",
16-
"build": "react-scripts build"
17-
},
18-
"eslintConfig": {
19-
"extends": [
20-
"react-app",
21-
"react-app/jest"
22-
]
11+
"devDependencies": {
12+
"@vitejs/plugin-react": "4.3.1",
13+
"vite": "5.3.3"
2314
},
24-
"browserslist": {
25-
"production": [
26-
">0.2%",
27-
"not dead",
28-
"not op_mini all"
29-
],
30-
"development": [
31-
"last 1 chrome version",
32-
"last 1 firefox version",
33-
"last 1 safari version"
34-
]
15+
"scripts": {
16+
"start": "vite",
17+
"build": "vite build"
3518
}
3619
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
3+
4+
export default defineConfig({
5+
server: { port: 3000 },
6+
plugins: [react()]
7+
})

react-instantsearch/algolia-insights/yarn.lock

+768-8,645
Large diffs are not rendered by default.

react-instantsearch/conditional-debouncing/public/index.html renamed to react-instantsearch/conditional-debouncing/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
77
<meta name="theme-color" content="#000000">
88

9-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
9+
<link rel="shortcut icon" href="/favicon.png">
1010

1111
<title>conditional-debouncing</title>
1212
</head>
@@ -17,6 +17,7 @@
1717
</noscript>
1818

1919
<div id="root"></div>
20+
<script type="module" src="/src/index.jsx"></script>
2021
</body>
2122

2223
</html>

react-instantsearch/conditional-debouncing/package.json

+7-22
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,14 @@
77
"instantsearch.css": "^7.4.5",
88
"react": "^18.1.0",
99
"react-dom": "^18.1.0",
10-
"react-instantsearch": "7.0.0",
11-
"react-scripts": "^5.0.1"
10+
"react-instantsearch": "7.0.0"
1211
},
13-
"scripts": {
14-
"start": "react-scripts start",
15-
"build": "react-scripts build"
16-
},
17-
"eslintConfig": {
18-
"extends": [
19-
"react-app",
20-
"react-app/jest"
21-
]
12+
"devDependencies": {
13+
"@vitejs/plugin-react": "4.3.1",
14+
"vite": "5.3.3"
2215
},
23-
"browserslist": {
24-
"production": [
25-
">0.2%",
26-
"not dead",
27-
"not op_mini all"
28-
],
29-
"development": [
30-
"last 1 chrome version",
31-
"last 1 firefox version",
32-
"last 1 safari version"
33-
]
16+
"scripts": {
17+
"start": "vite",
18+
"build": "vite build"
3419
}
3520
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
3+
4+
export default defineConfig({
5+
server: { port: 3000 },
6+
plugins: [react()]
7+
})

0 commit comments

Comments
 (0)