Repository: nuxt/create-nuxt-app
Pull request #597 (2020-08-31 09:29:41)

fix: updated layout to be in par with vuetify 2.x
v-row is a wrapper component for v-col. It utilizes flex properties to control the layout and flow of its inner columns. [...] This is the 2.x replacement for v-layout in 1.x.
v-col is a content holder that must be a direct child of v-row. This is the 2.x replacement for v-flex in 1.x.
https://vuetifyjs.com/fr-FR/components/grids/#usage


Patch:
diff --git a/packages/cna-template/template/frameworks/vuetify/pages/index.vue b/packages/cna-template/template/frameworks/vuetify/pages/index.vue
index ce46e3a..32f7bd2 100644
--- a/packages/cna-template/template/frameworks/vuetify/pages/index.vue
+++ b/packages/cna-template/template/frameworks/vuetify/pages/index.vue
@@ -1,14 +1,6 @@
 <template>
-  <v-layout
-    column
-    justify-center
-    align-center
-  >
-    <v-flex
-      xs12
-      sm8
-      md6
-    >
+  <v-row justify="center" align="center">
+    <v-col cols="12" sm="8" md="6">
       <div class="text-center">
         <logo />
         <vuetify-logo />
@@ -80,8 +72,8 @@
           </v-btn>
         </v-card-actions>
       </v-card>
-    </v-flex>
-  </v-layout>
+    </v-col>
+  </v-row>
 </template>
 
 <script>
diff --git a/packages/cna-template/template/nuxt/package.json b/packages/cna-template/template/nuxt/package.json
index 197725d..67159e1 100644
--- a/packages/cna-template/template/nuxt/package.json
+++ b/packages/cna-template/template/nuxt/package.json
@@ -17,29 +17,30 @@
     }
   },
   "dependencies": {
-    "@nuxt/typescript-runtime": "^1.0.0",
+    "@nuxt/content": "^1.5.0",
+    "@nuxt/typescript-runtime": "^2.0.0",
     "@nuxtjs/axios": "^5.12.0",
     "@nuxtjs/pwa": "^3.0.0-beta.20",
-    "@nuxt/content": "^1.5.0",
+    "core-js": "^3.6.5",
     "nuxt": "^2.14.0"
   },
   "devDependencies": {
     "@nuxt/types": "^2.14.0",
-    "@nuxt/typescript-build": "^2.0.2",
-    "@nuxtjs/eslint-config-typescript": "^3.0.0",
+    "@nuxt/typescript-build": "^2.0.3",
     "@nuxtjs/eslint-config": "^3.1.0",
+    "@nuxtjs/eslint-config-typescript": "^3.0.0",
     "@nuxtjs/eslint-module": "^2.0.0",
+    "@nuxtjs/stylelint-module": "^4.0.0",
     "babel-eslint": "^10.1.0",
     "eslint": "^7.5.0",
-    "eslint-plugin-nuxt": "^1.0.0",
     "eslint-config-prettier": "^6.11.0",
+    "eslint-plugin-nuxt": "^1.0.0",
     "eslint-plugin-prettier": "^3.1.4",
-    "prettier": "^2.0.5",
     "husky": "^4.2.5",
     "lint-staged": "^10.2.11",
-    "@nuxtjs/stylelint-module": "^4.0.0",
+    "prettier": "^2.0.5",
     "stylelint": "^13.6.1",
-    "stylelint-config-standard": "^20.0.0",
-    "stylelint-config-prettier": "^8.0.2"
+    "stylelint-config-prettier": "^8.0.2",
+    "stylelint-config-standard": "^20.0.0"
   }
 }
diff --git a/packages/create-nuxt-app/lib/prompts.js b/packages/create-nuxt-app/lib/prompts.js
index 4232455..a7c4829 100644
--- a/packages/create-nuxt-app/lib/prompts.js
+++ b/packages/create-nuxt-app/lib/prompts.js
@@ -112,5 +112,15 @@ module.exports = [
       { name: 'Semantic Pull Requests', value: 'semantic-pull-requests' }
     ],
     default: []
+  },
+  {
+    name: 'vcs',
+    message: 'Version control system:',
+    type: 'list',
+    choices: [
+      { name: 'Git', value: 'git' },
+      { name: 'None', value: 'none' }
+    ],
+    default: 'git'
   }
 ]
diff --git a/packages/create-nuxt-app/lib/saofile.js b/packages/create-nuxt-app/lib/saofile.js
index c899c0d..61406cc 100644
--- a/packages/create-nuxt-app/lib/saofile.js
+++ b/packages/create-nuxt-app/lib/saofile.js
@@ -125,7 +125,9 @@ module.exports = {
     return actions
   },
   async completed () {
-    this.gitInit()
+    if (this.answers.vcs === 'git') {
+      this.gitInit()
+    }
 
     await this.npmInstall({ npmClient: this.answers.pm })
 


Test patch:
diff --git a/packages/cna-template/template/frameworks/ava/test/e2e/index.spec.js b/packages/cna-template/template/frameworks/ava/test/e2e/index.spec.js
index 7d0ac14..01d5993 100644
--- a/packages/cna-template/template/frameworks/ava/test/e2e/index.spec.js
+++ b/packages/cna-template/template/frameworks/ava/test/e2e/index.spec.js
@@ -24,6 +24,6 @@ test('Route / exits and render HTML', async (t) => {
 })
 
 // Close server and ask nuxt to stop listening to file changes
-test.after('Closing server and nuxt.js', (t) => {
+test.after('Closing server and nuxt.js', () => {
   nuxt.close()
 })
diff --git a/packages/create-nuxt-app/test/snapshots/index.test.js.md b/packages/create-nuxt-app/test/snapshots/index.test.js.md
index 6792b39..4f2f1d8 100644
--- a/packages/create-nuxt-app/test/snapshots/index.test.js.md
+++ b/packages/create-nuxt-app/test/snapshots/index.test.js.md
@@ -32,6 +32,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -137,6 +138,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -242,6 +244,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -348,6 +351,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -453,6 +457,7 @@ Generated by [AVA](https://avajs.dev).
     {
       dependencies: {
         '@nuxtjs/axios': '^5.12.0',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -569,6 +574,7 @@ Generated by [AVA](https://avajs.dev).
         '@nuxt/content': '^1.5.0',
         '@nuxtjs/axios': '^5.12.0',
         '@nuxtjs/pwa': '^3.0.0-beta.20',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -690,6 +696,7 @@ Generated by [AVA](https://avajs.dev).
     {
       dependencies: {
         '@nuxt/content': '^1.5.0',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -803,6 +810,7 @@ Generated by [AVA](https://avajs.dev).
     {
       dependencies: {
         '@nuxtjs/pwa': '^3.0.0-beta.20',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -908,6 +916,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -1013,12 +1022,13 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
-        '@nuxt/typescript-runtime': '^1.0.0',
+        '@nuxt/typescript-runtime': '^2.0.0',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
         '@nuxt/types': '^2.14.0',
-        '@nuxt/typescript-build': '^2.0.2',
+        '@nuxt/typescript-build': '^2.0.3',
       },
       private: true,
       scripts: {
@@ -1123,6 +1133,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -1240,6 +1251,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -1375,6 +1387,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -1480,6 +1493,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -1589,6 +1603,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -1701,6 +1716,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -1805,6 +1821,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -1909,6 +1926,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -2013,6 +2031,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -2117,6 +2136,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -2221,6 +2241,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -2330,6 +2351,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -2451,6 +2473,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -2562,6 +2585,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -2669,6 +2693,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -2784,6 +2809,7 @@ Generated by [AVA](https://avajs.dev).
     {
       dependencies: {
         'ant-design-vue': '^1.6.4',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -2892,6 +2918,7 @@ Generated by [AVA](https://avajs.dev).
       dependencies: {
         bootstrap: '^4.5.0',
         'bootstrap-vue': '^2.15.0',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -3001,6 +3028,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
         'nuxt-buefy': '^0.3.31',
       },
@@ -3109,6 +3137,7 @@ Generated by [AVA](https://avajs.dev).
     {
       dependencies: {
         '@nuxtjs/bulma': '^1.3.0',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -3224,6 +3253,7 @@ Generated by [AVA](https://avajs.dev).
       dependencies: {
         '@chakra-ui/nuxt': '^0.0.7',
         '@nuxtjs/emotion': '^0.0.1',
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -3333,6 +3363,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         'element-ui': '^2.13.2',
         nuxt: '^2.14.0',
       },
@@ -3444,6 +3475,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         framevuerk: '^2.4.2',
         nuxt: '^2.14.0',
       },
@@ -3560,6 +3592,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {},
@@ -3664,6 +3697,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
         tachyons: '^4.12.0',
       },
@@ -3770,6 +3804,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -3880,6 +3915,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
         vuesax: '^4.0.1-alpha.23',
       },
@@ -3993,6 +4029,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         nuxt: '^2.14.0',
       },
       devDependencies: {
@@ -4124,6 +4161,7 @@ Generated by [AVA](https://avajs.dev).
 
     {
       dependencies: {
+        'core-js': '^3.6.5',
         iview: '^3.5.4',
         nuxt: '^2.14.0',
       },
@@ -4202,3 +4240,213 @@ Generated by [AVA](https://avajs.dev).
       }␊
     }␊
     `
+
+## verify vcs: Git
+
+> Generated files
+
+    [
+      '.editorconfig',
+      '.gitignore',
+      'README.md',
+      'assets/README.md',
+      'components/Logo.vue',
+      'components/README.md',
+      'layouts/README.md',
+      'layouts/default.vue',
+      'middleware/README.md',
+      'nuxt.config.js',
+      'package.json',
+      'pages/README.md',
+      'pages/index.vue',
+      'plugins/README.md',
+      'static/README.md',
+      'static/favicon.ico',
+      'store/README.md',
+    ]
+
+> package.json
+
+    {
+      dependencies: {
+        'core-js': '^3.6.5',
+        nuxt: '^2.14.0',
+      },
+      devDependencies: {},
+      private: true,
+      scripts: {
+        build: 'nuxt build',
+        dev: 'nuxt',
+        generate: 'nuxt generate',
+        start: 'nuxt start',
+      },
+    }
+
+> Generated nuxt.config.js
+
+    `␊
+    export default {␊
+      /*␊
+      ** Nuxt rendering mode␊
+      ** See https://nuxtjs.org/api/configuration-mode␊
+      */␊
+      mode: 'universal',␊
+      /*␊
+      ** Nuxt target␊
+      ** See https://nuxtjs.org/api/configuration-target␊
+      */␊
+      target: 'server',␊
+      /*␊
+      ** Headers of the page␊
+      ** See https://nuxtjs.org/api/configuration-head␊
+      */␊
+      head: {␊
+        title: process.env.npm_package_name || '',␊
+        meta: [␊
+          { charset: 'utf-8' },␊
+          { name: 'viewport', content: 'width=device-width, initial-scale=1' },␊
+          { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }␊
+        ],␊
+        link: [␊
+          { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }␊
+        ]␊
+      },␊
+      /*␊
+      ** Global CSS␊
+      */␊
+      css: [␊
+      ],␊
+      /*␊
+      ** Plugins to load before mounting the App␊
+      ** https://nuxtjs.org/guide/plugins␊
+      */␊
+      plugins: [␊
+      ],␊
+      /*␊
+      ** Auto import components␊
+      ** See https://nuxtjs.org/api/configuration-components␊
+      */␊
+      components: true,␊
+      /*␊
+      ** Nuxt.js dev-modules␊
+      */␊
+      buildModules: [␊
+      ],␊
+      /*␊
+      ** Nuxt.js modules␊
+      */␊
+      modules: [␊
+      ],␊
+      /*␊
+      ** Build configuration␊
+      ** See https://nuxtjs.org/api/configuration-build/␊
+      */␊
+      build: {␊
+      }␊
+    }␊
+    `
+
+## verify vcs: None
+
+> Generated files
+
+    [
+      '.editorconfig',
+      '.gitignore',
+      'README.md',
+      'assets/README.md',
+      'components/Logo.vue',
+      'components/README.md',
+      'layouts/README.md',
+      'layouts/default.vue',
+      'middleware/README.md',
+      'nuxt.config.js',
+      'package.json',
+      'pages/README.md',
+      'pages/index.vue',
+      'plugins/README.md',
+      'static/README.md',
+      'static/favicon.ico',
+      'store/README.md',
+    ]
+
+> package.json
+
+    {
+      dependencies: {
+        'core-js': '^3.6.5',
+        nuxt: '^2.14.0',
+      },
+      devDependencies: {},
+      private: true,
+      scripts: {
+        build: 'nuxt build',
+        dev: 'nuxt',
+        generate: 'nuxt generate',
+        start: 'nuxt start',
+      },
+    }
+
+> Generated nuxt.config.js
+
+    `␊
+    export default {␊
+      /*␊
+      ** Nuxt rendering mode␊
+      ** See https://nuxtjs.org/api/configuration-mode␊
+      */␊
+      mode: 'universal',␊
+      /*␊
+      ** Nuxt target␊
+      ** See https://nuxtjs.org/api/configuration-target␊
+      */␊
+      target: 'server',␊
+      /*␊
+      ** Headers of the page␊
+      ** See https://nuxtjs.org/api/configuration-head␊
+      */␊
+      head: {␊
+        title: process.env.npm_package_name || '',␊
+        meta: [␊
+          { charset: 'utf-8' },␊
+          { name: 'viewport', content: 'width=device-width, initial-scale=1' },␊
+          { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }␊
+        ],␊
+        link: [␊
+          { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }␊
+        ]␊
+      },␊
+      /*␊
+      ** Global CSS␊
+      */␊
+      css: [␊
+      ],␊
+      /*␊
+      ** Plugins to load before mounting the App␊
+      ** https://nuxtjs.org/guide/plugins␊
+      */␊
+      plugins: [␊
+      ],␊
+      /*␊
+      ** Auto import components␊
+      ** See https://nuxtjs.org/api/configuration-components␊
+      */␊
+      components: true,␊
+      /*␊
+      ** Nuxt.js dev-modules␊
+      */␊
+      buildModules: [␊
+      ],␊
+      /*␊
+      ** Nuxt.js modules␊
+      */␊
+      modules: [␊
+      ],␊
+      /*␊
+      ** Build configuration␊
+      ** See https://nuxtjs.org/api/configuration-build/␊
+      */␊
+      build: {␊
+      }␊
+    }␊
+    `