Skip to content

Commit 2550860

Browse files
authored
chore: bump node version from 14 to 22 (#1340)
* chore: bump node version from 14 to 22 * chore(examples): migrate from Parcel to Vite (#1341) * chore(examples): migrate from Parcel to Vite * bump node version in csb ci config * chore: replace codesandbox ci with pkg.pr.new (#1339) * chore: replace codesandbox ci with pkg.pr.new * trigger actions
1 parent dff4289 commit 2550860

74 files changed

Lines changed: 1171 additions & 1470 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ aliases:
4646
defaults: &defaults
4747
working_directory: ~/autocomplete
4848
docker:
49-
- image: cimg/node:14.21.1
49+
- image: cimg/node:22.14.0
5050

5151
references:
5252
workspace_root: &workspace_root /tmp/workspace

.codesandbox/ci.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/pkg-pr-new.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Preview Packages
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- next
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
checks: write
13+
14+
jobs:
15+
preview:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'yarn'
24+
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile
27+
28+
- name: Build packages
29+
run: yarn build
30+
31+
- name: Publish preview packages
32+
run: >
33+
npx pkg-pr-new publish
34+
--compact
35+
--template './examples/github-repositories-custom-plugin'
36+
--template './examples/instantsearch'
37+
--template './examples/playground'
38+
--template './examples/preview-panel-in-modal'
39+
--template './examples/react-renderer'
40+
--template './examples/starter-algolia'
41+
--template './examples/starter'
42+
--template './examples/reshape'
43+
--template './examples/vue'
44+
'./packages/autocomplete-core'
45+
'./packages/autocomplete-js'
46+
'./packages/autocomplete-plugin-algolia-insights'
47+
'./packages/autocomplete-plugin-query-suggestions'
48+
'./packages/autocomplete-plugin-recent-searches'
49+
'./packages/autocomplete-plugin-redirect-url'
50+
'./packages/autocomplete-plugin-tags'
51+
'./packages/autocomplete-preset-algolia'
52+
'./packages/autocomplete-shared'
53+
'./packages/autocomplete-theme-classic'

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.21.1
1+
22.14.0

examples/github-notification-filters/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "parcel build index.html",
9-
"start": "parcel index.html"
8+
"dev": "vite",
9+
"start": "vite",
10+
"build": "vite build"
1011
},
1112
"dependencies": {
1213
"@algolia/autocomplete-js": "1.19.7",
@@ -17,7 +18,7 @@
1718
"qs": "6.11.1"
1819
},
1920
"devDependencies": {
20-
"parcel": "2.8.3"
21+
"vite": "5.0.7"
2122
},
2223
"keywords": [
2324
"algolia",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vite';
2+
3+
export default defineConfig({
4+
server: {
5+
port: 1234,
6+
},
7+
});

examples/github-repositories-custom-plugin/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "parcel build index.html",
9-
"start": "parcel index.html"
8+
"dev": "vite",
9+
"start": "vite",
10+
"build": "vite build"
1011
},
1112
"dependencies": {
1213
"@algolia/autocomplete-js": "1.19.7",
@@ -17,7 +18,7 @@
1718
"devDependencies": {
1819
"@types/debounce-promise": "^3.1.6",
1920
"@types/qs": "^6.9.6",
20-
"parcel": "2.8.3"
21+
"vite": "5.0.7"
2122
},
2223
"keywords": [
2324
"algolia",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vite';
2+
3+
export default defineConfig({
4+
server: {
5+
port: 1234,
6+
},
7+
});

examples/html-templates/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"private": true,
66
"license": "MIT",
77
"scripts": {
8-
"build": "parcel build index.html",
9-
"start": "parcel index.html"
8+
"dev": "vite",
9+
"start": "vite",
10+
"build": "vite build"
1011
},
1112
"dependencies": {
1213
"@algolia/autocomplete-js": "1.19.7",
@@ -15,7 +16,7 @@
1516
},
1617
"devDependencies": {
1718
"@algolia/client-search": "4.16.0",
18-
"parcel": "2.8.3"
19+
"vite": "5.0.7"
1920
},
2021
"keywords": [
2122
"algolia",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vite';
2+
3+
export default defineConfig({
4+
server: {
5+
port: 1234,
6+
},
7+
});

0 commit comments

Comments
 (0)