From 47aa7c1eaf743118bb0b0d8fca78ed58bfe30b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 22 Jun 2020 11:56:35 +0200 Subject: [PATCH] feat: prepare for Nuxt 2.13 (#529) * feat: prepare for Nuxt 2.13 * fix(jest): downgrate vue-jest to v3 pending by https://github.com/vuejs/vue-jest/issues/241 * chore(deps): update all non-major dependencies (#509) * fix(prettier): add stylelint-config-prettier * chore(deps): update jest packages (major) (#513) * chore: add npm registry config * chore(deps): update all non-major dependencies * chore(deps): update devdependency @nuxt/typescript-build to v1 * fix(ava): expect vm truthy as vue instance assertion * chore(deps): update all non-major dependencies * chore(deps): update all non-major dependencies * feat(template): remove dotenv module (#544) * chore: optimize svg & animation (#547) * feat: add content module (#540) * chore(deps): update all non-major dependencies * chore(deps): lock file maintenance (#541) * v3.0.0 * chore: update snapshots * chore: update prompts and add TS runtime by default * chore: fix lint issue Co-authored-by: Clark Du Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Martijn Cuppens Co-authored-by: Benjamin Canac Co-authored-by: Pooya Parsa --- README.md | 31 +- .../template/nuxt/components/Logo.vue | 1 + .../template/nuxt/layouts/default.vue | 2 +- .../cna-template/template/nuxt/nuxt.config.js | 10 + .../cna-template/template/nuxt/package.js | 8 +- .../cna-template/template/nuxt/package.json | 3 +- .../template/nuxt/pages/index.vue | 17 +- packages/create-nuxt-app/lib/prompts.js | 42 +- packages/create-nuxt-app/lib/saofile.js | 2 - .../test/snapshots/index.test.js.md | 496 ++++++++++++++++-- .../test/snapshots/index.test.js.snap | Bin 6984 -> 7430 bytes 11 files changed, 506 insertions(+), 106 deletions(-) diff --git a/README.md b/README.md index 65a75316e..24ee6bc59 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,13 @@ yarn create nuxt-app ## Features :tada: -1. Choose the package manager +1. Package manager - Yarn - Npm -1. Choose programming language +1. Programming language - JavaScript - TypeScript -1. Choose your favorite UI framework: +1. UI framework: - None (feel free to add one later) - [Ant Design Vue](https://github.com/vueComponent/ant-design-vue) - [Bootstrap](https://github.com/bootstrap-vue/bootstrap-vue) @@ -52,32 +52,27 @@ yarn create nuxt-app - [Tailwind CSS](https://github.com/tailwindcss/tailwindcss) - [Vuesax](https://github.com/lusaxweb/vuesax) - [Vuetify](https://github.com/vuetifyjs/vuetify) -1. Choose the runtime for TypeScript (if you choose TypeScript) - - Default - - [@nuxt/typescript-runtime](https://github.com/nuxt/typescript) -1. Choose Nuxt.js modules: +1. Nuxt.js modules: - [Axios](https://github.com/nuxt-community/axios-module) - - [Progressive Web App (PWA) Support](https://github.com/nuxt-community/pwa-module) -1. Choose linting tools: + - [Progressive Web App (PWA)](https://github.com/nuxt-community/pwa-module) + - [Content](https://github.com/nuxt/content) +1. Linting tools: - [ESLint](https://github.com/nuxt/eslint-config) - [Prettier](https://github.com/prettier/prettier) - [Lint staged files](https://github.com/okonet/lint-staged) - [StyleLint](https://github.com/stylelint/stylelint) -1. Check the features needed for your project: - - [PWA](https://pwa.nuxtjs.org/) - - Linter / Formatter - - [Prettier](https://prettier.io/) - - [Axios](https://github.com/nuxt-community/axios-module) - - [Tachyons](https://tachyons.io) -1. Choose your favorite test framework: +1. Testing framework: - None - [Jest](https://github.com/facebook/jest) - [AVA](https://github.com/avajs/ava) - [WebdriverIO](https://webdriver.io) -1. Choose rendering mode +1. Rendering mode - [Universal (SSR / Static)](https://nuxtjs.org/guide/#server-rendered-universal-ssr-) - [SPA](https://nuxtjs.org/guide/#single-page-applications-spa-) -1. Choose development tools +1. Deployment target + - [Server (Node.js hosting)](https://nuxtjs.org/api/configuration-target) + - [Static (Static/JAMStack hosting)](https://nuxtjs.org/api/configuration-target) +1. Development tools - [jsconfig.json](https://code.visualstudio.com/docs/languages/jsconfig) - [Semantic PR](https://probot.github.io/apps/semantic-pull-requests/) diff --git a/packages/cna-template/template/nuxt/components/Logo.vue b/packages/cna-template/template/nuxt/components/Logo.vue index 7d127d767..b1de01257 100644 --- a/packages/cna-template/template/nuxt/components/Logo.vue +++ b/packages/cna-template/template/nuxt/components/Logo.vue @@ -14,6 +14,7 @@ /> +