Skip to content

Commit

Permalink
chore: migrate cra and vue-cli examples to vite (#490)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dhayab authored Jul 10, 2024
1 parent cc89cac commit 519b563
Show file tree
Hide file tree
Showing 229 changed files with 18,138 additions and 234,294 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
path: 'angular-instantsearch/secured-api-keys'

build_react_projects:
executor: node14
executor: node18
steps:
- checkout
- build_project:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
<link rel="shortcut icon" href="/favicon.png">

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

<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>

</html>
31 changes: 7 additions & 24 deletions react-instantsearch/algolia-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,16 @@
"private": true,
"dependencies": {
"algoliasearch": "^4.13.0",
"instantsearch.css": "^7.4.5",
"instantsearch.js": "4.56.8",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-instantsearch": "7.0.0",
"react-scripts": "5.0.1"
"react-instantsearch": "7.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"devDependencies": {
"@vitejs/plugin-react": "4.3.1",
"vite": "5.3.3"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"scripts": {
"start": "vite",
"build": "vite build"
}
}
7 changes: 7 additions & 0 deletions react-instantsearch/algolia-insights/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
server: { port: 3000 },
plugins: [react()]
})
9,413 changes: 768 additions & 8,645 deletions react-instantsearch/algolia-insights/yarn.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
<link rel="shortcut icon" href="/favicon.png">

<title>conditional-debouncing</title>
</head>
Expand All @@ -17,6 +17,7 @@
</noscript>

<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>

</html>
29 changes: 7 additions & 22 deletions react-instantsearch/conditional-debouncing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,14 @@
"instantsearch.css": "^7.4.5",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-instantsearch": "7.0.0",
"react-scripts": "^5.0.1"
"react-instantsearch": "7.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"devDependencies": {
"@vitejs/plugin-react": "4.3.1",
"vite": "5.3.3"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"scripts": {
"start": "vite",
"build": "vite build"
}
}
7 changes: 7 additions & 0 deletions react-instantsearch/conditional-debouncing/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
server: { port: 3000 },
plugins: [react()]
})
Loading

0 comments on commit 519b563

Please sign in to comment.