Skip to content

Commit 39b51e6

Browse files
committed
Adapt and fix one playground
1 parent 1a5e7fa commit 39b51e6

File tree

9 files changed

+547
-1770
lines changed

9 files changed

+547
-1770
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
"prettier": "^3.4.2",
4141
"vite": "^6.0.9",
4242
"@vitest/coverage-v8": "^3.0.2",
43+
"concurrently": "^9.1.2",
4344
"vitest": "^3.0.2",
45+
"cypress": "^8.6.0",
4446
"turbo": "^2.3.3",
4547
"algoliasearch-helper": "^3.23.0",
4648
"@changesets/cli": "^2.26.1",

packages/autocomplete-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
},
4848
"devDependencies": {
4949
"@algolia/autocomplete-js": "^1.7.4",
50-
"concurrently": "^7.1.0",
5150
"cssnano": "^4.1.10",
5251
"eslint-config-meilisearch": "*",
5352
"instantsearch.js": "^4.56.2",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"local": {
3-
"host": "http://localhost:7777"
3+
"host": "http://localhost:5173"
44
}
55
}

playgrounds/autocomplete/package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"private": true,
55
"description": "Javascript playground for autocomplete",
66
"scripts": {
7-
"predev": "node setup.cjs",
8-
"dev": "parcel serve index.html --open --port 7777",
9-
"build": "parcel build index.html",
10-
"setup": "node setup.cjs",
7+
"predev": "node setup.mjs",
8+
"dev": "vite",
9+
"build": "vite build",
10+
"setup": "node setup.mjs",
1111
"lint": "eslint --ext .jsx,.js .",
1212
"lint:fix": "eslint --ext .jsx,.js --fix .",
1313
"test:e2e": "concurrently --kill-others -s first \"yarn dev\" \"cypress run --env playground=local\"",
@@ -22,15 +22,13 @@
2222
"author": "",
2323
"license": "ISC",
2424
"dependencies": {
25-
"@algolia/autocomplete-core": "1.7.4",
26-
"@algolia/autocomplete-plugin-query-suggestions": "^1.9.3",
27-
"@algolia/autocomplete-plugin-tags": "^1.10.0",
28-
"@algolia/autocomplete-theme-classic": "^1.10.0",
25+
"@algolia/autocomplete-core": "1.17.9",
26+
"@algolia/autocomplete-plugin-query-suggestions": "^1.17.9",
27+
"@algolia/autocomplete-plugin-tags": "^1.17.9",
28+
"@algolia/autocomplete-theme-classic": "^1.17.9",
2929
"@meilisearch/autocomplete-client": "*"
3030
},
3131
"devDependencies": {
32-
"@babel/core": "^7.13.1",
33-
"eslint-config-meilisearch": "*",
34-
"parcel": "^2.12.0"
32+
"eslint-config-meilisearch": "*"
3533
}
3634
}

playgrounds/autocomplete/setup.cjs

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

playgrounds/autocomplete/setup.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { MeiliSearch } from "meilisearch";
2+
import games from "./assets/games.json" with { type: "json" };
3+
4+
const client = new MeiliSearch({
5+
host: "http://localhost:7700",
6+
apiKey: "masterKey",
7+
});
8+
await client.index("steam-video-games").delete();
9+
const task = await client.index("steam-video-games").addDocuments(games);
10+
await client.waitForTask(task.taskUid);

playgrounds/local-react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"@babel/plugin-syntax-jsx": "^7.22.5",
3636
"@babel/plugin-transform-runtime": "^7.22.5",
3737
"@babel/preset-react": "^7.22.5",
38-
"cypress": "^8.6.0",
3938
"eslint-config-meilisearch": "*"
4039
}
4140
}

playgrounds/vue3-ts/package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111
"lint:fix": "eslint --ext .ts,.vue,.js,.cjs --fix .",
1212
"test:types": "yarn tsc"
1313
},
14-
"dependencies": {
15-
"@meilisearch/instant-meilisearch": "0.23.0",
16-
"vue": "^3.2.45",
17-
"vue-instantsearch": "^4.10.8"
18-
},
1914
"devDependencies": {
20-
"@vitejs/plugin-vue": "^4.0.0",
21-
"vite": "^4.5.5",
22-
"vue-tsc": "^1.0.11",
15+
"vue-instantsearch": "^4.10.8",
16+
"@meilisearch/instant-meilisearch": "*",
17+
"vue": "^3.5.13",
18+
"@vitejs/plugin-vue": "^5.2.1",
19+
"vue-tsc": "^2.2.0",
2320
"eslint-config-meilisearch": "*"
2421
}
25-
}
22+
}

0 commit comments

Comments
 (0)