diff --git a/e2e/__image_snapshots__/vue-instantsearch/public/favicon.ico-snap.png b/e2e/__image_snapshots__/vue-instantsearch/public/favicon.ico-snap.png new file mode 100644 index 000000000..df36fcfb7 Binary files /dev/null and b/e2e/__image_snapshots__/vue-instantsearch/public/favicon.ico-snap.png differ diff --git a/src/templates/Vue InstantSearch/favicon.png b/e2e/__image_snapshots__/vue-instantsearch/public/favicon.png-snap.png similarity index 100% rename from src/templates/Vue InstantSearch/favicon.png rename to e2e/__image_snapshots__/vue-instantsearch/public/favicon.png-snap.png diff --git a/e2e/__snapshots__/templates.test.js.snap b/e2e/__snapshots__/templates.test.js.snap index 5484c9444..cf2c0ac9d 100644 --- a/e2e/__snapshots__/templates.test.js.snap +++ b/e2e/__snapshots__/templates.test.js.snap @@ -4963,15 +4963,6 @@ Array [ ] `; -exports[`Templates Vue InstantSearch File content: .babelrc 1`] = ` -"{ - \\"presets\\": [ - [\\"env\\", { \\"modules\\": false }], - \\"stage-3\\" - ] -}" -`; - exports[`Templates Vue InstantSearch File content: .editorconfig 1`] = ` "root = true @@ -4986,19 +4977,46 @@ trim_trailing_whitespace = true" exports[`Templates Vue InstantSearch File content: .eslintrc.js 1`] = ` "module.exports = { - extends: 'algolia/vue', + // extends from 'prettier/vue' until we update the Algolia configuration + extends: ['algolia/vue', 'prettier/vue'], rules: { 'import/no-commonjs': 'off', + // enable the rule until we update the Algolia configuration + 'vue/component-name-in-template-casing': ['error', 'kebab-case'], }, };" `; exports[`Templates Vue InstantSearch File content: .gitignore 1`] = ` -"node_modules/ -npm-debug.log -yarn-debug.log -yarn-error.log -dist/" +".DS_Store +node_modules +/dist + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw?" +`; + +exports[`Templates Vue InstantSearch File content: .prettierrc 1`] = ` +"{ + \\"singleQuote\\": true, + \\"proseWrap\\": \\"never\\", + \\"trailingComma\\": \\"es5\\" +}" `; exports[`Templates Vue InstantSearch File content: README.md 1`] = ` @@ -5025,56 +5043,10 @@ yarn start Open http://localhost:3000 to see your app." `; -exports[`Templates Vue InstantSearch File content: index.html 1`] = ` -" - - - - - - - - - - - - - - vue-instantsearch-app - - - - - -
- - - - -" -`; - -exports[`Templates Vue InstantSearch File content: manifest.json 1`] = ` -"{ - \\"short_name\\": \\"vue-instantsearch-app\\", - \\"name\\": \\"vue-instantsearch-app Sample\\", - \\"icons\\": [ - { - \\"src\\": \\"favicon.png\\", - \\"sizes\\": \\"64x64 32x32 24x24 16x16\\", - \\"type\\": \\"image/x-icon\\" - } - ], - \\"start_url\\": \\"./index.html\\", - \\"display\\": \\"standalone\\", - \\"theme_color\\": \\"#000000\\", - \\"background_color\\": \\"#ffffff\\" -}" +exports[`Templates Vue InstantSearch File content: babel.config.js 1`] = ` +"module.exports = { + presets: ['@vue/app'], +};" `; exports[`Templates Vue InstantSearch File content: package.json 1`] = ` @@ -5083,23 +5055,55 @@ exports[`Templates Vue InstantSearch File content: package.json 1`] = ` \\"version\\": \\"1.0.0\\", \\"private\\": true, \\"scripts\\": { - \\"start\\": \\"cross-env NODE_ENV=development webpack-dev-server --port 3000 --hot\\", - \\"build\\": \\"cross-env NODE_ENV=production webpack --progress --hide-modules\\", - \\"lint\\": \\"eslint --ext .js,.vue .\\", + \\"start\\": \\"vue-cli-service serve --port 3000\\", + \\"build\\": \\"vue-cli-service build\\", + \\"lint\\": \\"vue-cli-service lint\\", \\"lint:fix\\": \\"npm run lint -- --fix\\" }, + \\"browserslist\\": [ + \\"> 1%\\", + \\"last 2 versions\\", + \\"not ie <= 8\\" + ], \\"partialDependencies\\": { \\"vue-instantsearch\\": \\"2.0.0\\" } }" `; +exports[`Templates Vue InstantSearch File content: public/index.html 1`] = ` +" + + + + + + favicon.png\\"> + + + vue-instantsearch-app + + + +
+ + +" +`; + exports[`Templates Vue InstantSearch File content: src/App.vue 1`] = ` "