Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit f42cf21

Browse files
authored
fix(js): update and simplify dependencies (#567)
* fix(js): update and simplify dependencies fixes #566 through simplification of the dependencies (no longer deasync, which was apparently problematic in some cases, i couldn't reproduce) * update snapshots * remove wrong entry point * remove node 10 * undo coolness * panle * upd * upd
1 parent 781642b commit f42cf21

File tree

4 files changed

+7
-50
lines changed

4 files changed

+7
-50
lines changed

e2e/__snapshots__/templates.test.js.snap

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3082,7 +3082,6 @@ exports[`Templates InstantSearch.js File content: index.html 1`] = `
30823082
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1, shrink-to-fit=no\\">
30833083
<meta name=\\"theme-color\\" content=\\"#000000\\">
30843084
3085-
<link rel=\\"manifest\\" href=\\"./manifest.webmanifest\\">
30863085
<link rel=\\"shortcut icon\\" href=\\"./favicon.png\\">
30873086
30883087
<link rel=\\"stylesheet\\" href=\\"https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/algolia-min.css\\">
@@ -3128,35 +3127,16 @@ exports[`Templates InstantSearch.js File content: index.html 1`] = `
31283127
</html>"
31293128
`;
31303129
3131-
exports[`Templates InstantSearch.js File content: manifest.webmanifest 1`] = `
3132-
"{
3133-
\\"short_name\\": \\"instantsearch.js-app\\",
3134-
\\"name\\": \\"instantsearch.js-app Sample\\",
3135-
\\"icons\\": [
3136-
{
3137-
\\"src\\": \\"favicon.png\\",
3138-
\\"sizes\\": \\"64x64 32x32 24x24 16x16\\",
3139-
\\"type\\": \\"image/x-icon\\"
3140-
}
3141-
],
3142-
\\"start_url\\": \\"./index.html\\",
3143-
\\"display\\": \\"standalone\\",
3144-
\\"theme_color\\": \\"#000000\\",
3145-
\\"background_color\\": \\"#ffffff\\"
3146-
}"
3147-
`;
3148-
31493130
exports[`Templates InstantSearch.js File content: package.json 1`] = `
31503131
"{
31513132
\\"name\\": \\"instantsearch.js-app\\",
31523133
\\"version\\": \\"1.0.0\\",
31533134
\\"private\\": true,
3154-
\\"main\\": \\"src/app.js\\",
31553135
\\"scripts\\": {
31563136
\\"start\\": \\"parcel index.html --port 3000\\",
31573137
\\"build\\": \\"parcel build index.html\\",
3158-
\\"lint\\": \\"eslint .\\",
3159-
\\"lint:fix\\": \\"npm run lint -- --fix\\"
3138+
\\"lint\\": \\"eslint . && prettier --check .\\",
3139+
\\"lint:fix\\": \\"eslint . --fix && prettier --write .\\"
31603140
},
31613141
\\"partialDependencies\\": {
31623142
\\"instantsearch.js\\": \\"3.0.0\\"
@@ -3342,7 +3322,6 @@ Array [
33423322
"README.md",
33433323
"favicon.png",
33443324
"index.html",
3345-
"manifest.webmanifest",
33463325
"package.json",
33473326
"src/app.css",
33483327
"src/app.js",

src/templates/InstantSearch.js/index.html.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
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="manifest" href="./manifest.webmanifest">
109
<link rel="shortcut icon" href="./favicon.png">
1110

1211
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/algolia-min.css">

src/templates/InstantSearch.js/manifest.webmanifest

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

src/templates/InstantSearch.js/package.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,16 @@
22
"name": "{{name}}",
33
"version": "1.0.0",
44
"private": true,
5-
"main": "src/app.js",
65
"scripts": {
76
"start": "parcel index.html --port 3000",
87
"build": "parcel build index.html",
9-
"lint": "eslint .",
10-
"lint:fix": "npm run lint -- --fix"
8+
"lint": "eslint . && prettier --check .",
9+
"lint:fix": "eslint . --fix && prettier --write ."
1110
},
1211
"devDependencies": {
13-
"babel-eslint": "10.0.3",
14-
"eslint": "5.7.0",
15-
"eslint-config-algolia": "13.2.3",
16-
"eslint-config-prettier": "3.6.0",
17-
"eslint-plugin-import": "2.19.1",
18-
"eslint-plugin-prettier": "3.1.2",
19-
"parcel-bundler": "1.12.5",
20-
"prettier": "1.19.1"
12+
"eslint": "8.15.0",
13+
"parcel": "2.0.1",
14+
"prettier": "2.6.2"
2115
},
2216
"dependencies": {
2317
"algoliasearch": "4",

0 commit comments

Comments
 (0)