From 2b5f8c9fa1f27d0bccf7ab5e6ab540ea42f938a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangJoo=20Park=28=EB=B0=95=EC=B0=BD=EC=A3=BC=29?= Date: Tue, 23 Mar 2021 10:24:34 +0900 Subject: [PATCH 1/4] feat: add composition-api to features --- README.md | 1 + .../cna-template/template/nuxt/nuxt.config.js | 4 + .../cna-template/template/nuxt/package.js | 3 + .../cna-template/template/nuxt/package.json | 1 + packages/create-nuxt-app/lib/prompts.js | 3 +- packages/create-nuxt-app/lib/saofile.js | 4 +- .../test/snapshots/index.test.js.md | 93 +++++++++++++++++- .../test/snapshots/index.test.js.snap | Bin 9009 -> 9214 bytes 8 files changed, 106 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f4f5491b..9c2739e87 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ yarn create nuxt-app - [Axios - Promise based HTTP client](https://github.com/nuxt-community/axios-module) - [Progressive Web App (PWA)](https://github.com/nuxt-community/pwa-module) - [Content - Git-based headless CMS](https://github.com/nuxt/content) + - [Composition API - with Nuxt-specific features](https://composition-api.nuxtjs.org/) 1. Linting tools: - [ESLint](https://github.com/nuxt/eslint-config) - [Prettier](https://github.com/prettier/prettier) diff --git a/packages/cna-template/template/nuxt/nuxt.config.js b/packages/cna-template/template/nuxt/nuxt.config.js index f040b871d..d9a74dc86 100644 --- a/packages/cna-template/template/nuxt/nuxt.config.js +++ b/packages/cna-template/template/nuxt/nuxt.config.js @@ -105,6 +105,10 @@ // https://go.nuxtjs.dev/vuetify '@nuxtjs/vuetify', <%_ } _%> + <%_ if (composition) { _%> + // https://composition-api.nuxtjs.org/ + '@nuxtjs/composition-api', + <%_ } _%> ], // Modules: https://go.nuxtjs.dev/config-modules diff --git a/packages/cna-template/template/nuxt/package.js b/packages/cna-template/template/nuxt/package.js index f4e3756cd..1809ea8ef 100644 --- a/packages/cna-template/template/nuxt/package.js +++ b/packages/cna-template/template/nuxt/package.js @@ -73,6 +73,9 @@ module.exports = { if (!features.includes('content')) { delete pkg.dependencies['@nuxt/content'] } + if (!features.includes('composition')) { + delete pkg.dependencies['@nuxtjs/composition-api'] + } // TS const typescript = language.includes('ts') diff --git a/packages/cna-template/template/nuxt/package.json b/packages/cna-template/template/nuxt/package.json index 244d85c63..315d26031 100644 --- a/packages/cna-template/template/nuxt/package.json +++ b/packages/cna-template/template/nuxt/package.json @@ -18,6 +18,7 @@ } }, "dependencies": { + "@nuxtjs/composition-api": "^0.22.3", "@nuxt/content": "^1.14.0", "@nuxtjs/axios": "^5.13.1", "@nuxtjs/pwa": "^3.3.5", diff --git a/packages/create-nuxt-app/lib/prompts.js b/packages/create-nuxt-app/lib/prompts.js index 59eda0f57..ed70923ec 100644 --- a/packages/create-nuxt-app/lib/prompts.js +++ b/packages/create-nuxt-app/lib/prompts.js @@ -57,7 +57,8 @@ module.exports = [ choices: [ { name: 'Axios - Promise based HTTP client', value: 'axios' }, { name: 'Progressive Web App (PWA)', value: 'pwa' }, - { name: 'Content - Git-based headless CMS', value: 'content' } + { name: 'Content - Git-based headless CMS', value: 'content' }, + { name: 'Composition API - with Nuxt-specific features', value: 'composition' } ], default: [] }, diff --git a/packages/create-nuxt-app/lib/saofile.js b/packages/create-nuxt-app/lib/saofile.js index 1b371f05d..8564380c6 100644 --- a/packages/create-nuxt-app/lib/saofile.js +++ b/packages/create-nuxt-app/lib/saofile.js @@ -19,6 +19,7 @@ module.exports = { const commitlint = this.answers.linter.includes('commitlint') const axios = this.answers.features.includes('axios') const content = this.answers.features.includes('content') + const composition = this.answers.features.includes('composition') const pm = this.answers.pm === 'yarn' ? 'yarn' : 'npm' const pmRun = this.answers.pm === 'yarn' ? 'yarn' : 'npm run' @@ -37,7 +38,8 @@ module.exports = { edge, pm, pmRun, - content + content, + composition } }, actions () { 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 0759be953..18f188211 100644 --- a/packages/create-nuxt-app/test/snapshots/index.test.js.md +++ b/packages/create-nuxt-app/test/snapshots/index.test.js.md @@ -1899,7 +1899,7 @@ Generated by [AVA](https://avajs.dev). }␊ ` -## verify features: Axios - Promise based HTTP client, Progressive Web App (PWA), Content - Git-based headless CMS +## verify features: Axios - Promise based HTTP client, Progressive Web App (PWA), Content - Git-based headless CMS, Composition API - with Nuxt-specific features > Generated files @@ -1931,6 +1931,7 @@ Generated by [AVA](https://avajs.dev). dependencies: { '@nuxt/content': '^1.14.0', '@nuxtjs/axios': '^5.13.1', + '@nuxtjs/composition-api': '^0.22.3', '@nuxtjs/pwa': '^3.3.5', 'core-js': '^3.9.1', nuxt: '^2.15.3', @@ -1974,6 +1975,8 @@ Generated by [AVA](https://avajs.dev). ␊ // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊ buildModules: [␊ + // https://composition-api.nuxtjs.org/␊ + '@nuxtjs/composition-api',␊ ],␊ ␊ // Modules: https://go.nuxtjs.dev/config-modules␊ @@ -2281,6 +2284,94 @@ Generated by [AVA](https://avajs.dev). }␊ ` +## verify features: Composition API - with Nuxt-specific features + +> 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: { + '@nuxtjs/composition-api': '^0.22.3', + 'core-js': '^3.9.1', + nuxt: '^2.15.3', + }, + devDependencies: {}, + private: true, + scripts: { + build: 'nuxt build', + dev: 'nuxt', + generate: 'nuxt generate', + start: 'nuxt start', + }, + } + +> Generated nuxt.config.js + + `export default {␊ + // Global page headers: https://go.nuxtjs.dev/config-head␊ + head: {␊ + title: 'output',␊ + htmlAttrs: {␊ + lang: 'en'␊ + },␊ + meta: [␊ + { charset: 'utf-8' },␊ + { name: 'viewport', content: 'width=device-width, initial-scale=1' },␊ + { hid: 'description', name: 'description', content: '' }␊ + ],␊ + link: [␊ + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }␊ + ]␊ + },␊ + ␊ + // Global CSS: https://go.nuxtjs.dev/config-css␊ + css: [␊ + ],␊ + ␊ + // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins␊ + plugins: [␊ + ],␊ + ␊ + // Auto import components: https://go.nuxtjs.dev/config-components␊ + components: true,␊ + ␊ + // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊ + buildModules: [␊ + // https://composition-api.nuxtjs.org/␊ + '@nuxtjs/composition-api',␊ + ],␊ + ␊ + // Modules: https://go.nuxtjs.dev/config-modules␊ + modules: [␊ + ],␊ + ␊ + // Build Configuration: https://go.nuxtjs.dev/config-build␊ + build: {␊ + }␊ + }␊ + ` + ## verify linter: ESLint, Prettier, Lint staged files, StyleLint, Commitlint > Generated files diff --git a/packages/create-nuxt-app/test/snapshots/index.test.js.snap b/packages/create-nuxt-app/test/snapshots/index.test.js.snap index 3e6f95cddabeec43884252e5491ed0997bdaf698..fbd742fa6efd59ba7594a749332c5d0906e9964a 100644 GIT binary patch literal 9214 zcmZ{IWl$VIw`BqZf=h7s;4Z;skl^kXB)BuULvRc3GB5;pclQ8;2ZvyT%i#L*?W@|| zS6kcv`c`*!-P5v~UQN(w;imtEj(yA`X)G2JO7wW!AQsX647*C| zyqo4ff7^&*&o?d4Tyqy=d3ZgYd0{hZ_w&A)MVio+dEF$@lZrUNLSIQRjXuVFv3=tY zB*0w~hHX%IE$EFpG6wi%UN7Qm%lQK-)u#KTIxx&K z>Mz46I&T(I4d^Rhp7ZU7ZewT9f^?hQ&_ZO?@At9;x>6#AJflOFpR3WsN;G)6dLVPRobDWq$+ua8AK zR}&t!Lb`PBqb^boJ5jGba04k;n?_t73soh7{0{{?{Ae#_aa!u|pRrl9C4obXt@^(Q zb34*HeTMVd9=_4G+(*D^%Zb<`&ghk3-@Nb+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3)M?b|Y&C#GP2>!XLYXr22I3>Og_XVvodKaXDt$G7QN-? z181&@5i7(}gq0I0xPS5vXz41MeRR!TaV;$XW)sRrRpOZl5SW;(QXYKx*xwgZI!dJd zGK2Njn_HJ5+>O+xxUSPB1){RJXF~F1a=t!8)|~l56wj!A0|I!rSN9j)gtG0*>vM#s5#o`2PaXSMrpf zoPL5tRKWbG#-75;SnK*Zp#5&LkZH`d1_YCG**cd_u)f-{zy>uh!a4-$U$kE}iM-Gc z557JudjJ!;GH;yKyH#$n+->Z)l1$yI3(5ZZ4hk8y{`nM3j{c6UV=J}2M$6kR!4`Ys zj=F&oHf|~y*RlusKf&iT??Ek6YpIS3@K8C1evIdu-=Z`Axpi7CRy2}5YLOsJR8SVd zl9EPJvR>`L5I@$Jxk+-oFXGUUp(xp47&^;v=H$)x-d(ONhsrCuXh3Sd*uKgup73GK z@x=u}3#Sr%%Ca%R*W>oL0Z4b5-Z-GAX*r`Ac#XEb^^(ToJ6V`o$@+XBZ{n1p9ZAod zitSLp!7K?y818*%%Bn$^dO%FIn3uM0&<^dTS>@=~V9TDG;h>lVCV=*kmg|p#0&SSX z?ZdSG&EYF@H*2f8x4)7=VNHQ3bcJfb%Iw}FJM~hESPXvC!^y_EOSvR~I^1U2%teQ& WkV09&yn7S=j12N$JJMN3M*1H*K82J3 From 4bfcdf45b34790a143eca422b6284ef45c87433d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangJoo=20Park=28=EB=B0=95=EC=B0=BD=EC=A3=BC=29?= Date: Thu, 25 Mar 2021 20:53:25 +0900 Subject: [PATCH 2/4] feat: Add moduleNameMapper for testing --- .../cna-template/template/frameworks/jest/jest.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cna-template/template/frameworks/jest/jest.config.js b/packages/cna-template/template/frameworks/jest/jest.config.js index 4915aa80f..431ba73bc 100644 --- a/packages/cna-template/template/frameworks/jest/jest.config.js +++ b/packages/cna-template/template/frameworks/jest/jest.config.js @@ -2,7 +2,12 @@ module.exports = { moduleNameMapper: { '^@/(.*)$': '/$1', '^~/(.*)$': '/$1', - '^vue$': 'vue/dist/vue.common.js' + '^vue$': 'vue/dist/vue.common.js', + <%_ if (composition) { _%> + '@nuxtjs/composition-api': '@nuxtjs/composition-api/lib/entrypoint.js', + // alternatively, depending on your node version + // '@nuxtjs/composition-api': '@nuxtjs/composition-api/entrypoint', + <%_ } _%> }, moduleFileExtensions: [ <%_ if (typescript) { _%> From b791dccebc6493518a615e80306f23a80d4080bb Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 31 May 2021 11:53:24 +0100 Subject: [PATCH 3/4] chore: update composition api version --- .../template/frameworks/jest/jest.config.js | 7 +------ .../cna-template/template/nuxt/nuxt.config.js | 2 +- .../cna-template/template/nuxt/package.json | 2 +- .../test/snapshots/index.test.js.md | 8 ++++---- .../test/snapshots/index.test.js.snap | Bin 9178 -> 9182 bytes 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/cna-template/template/frameworks/jest/jest.config.js b/packages/cna-template/template/frameworks/jest/jest.config.js index dfe43c919..348253eee 100644 --- a/packages/cna-template/template/frameworks/jest/jest.config.js +++ b/packages/cna-template/template/frameworks/jest/jest.config.js @@ -2,12 +2,7 @@ module.exports = { moduleNameMapper: { '^@/(.*)$': '/$1', '^~/(.*)$': '/$1', - '^vue$': 'vue/dist/vue.common.js', - <%_ if (composition) { _%> - '@nuxtjs/composition-api': '@nuxtjs/composition-api/lib/entrypoint.js', - // alternatively, depending on your node version - // '@nuxtjs/composition-api': '@nuxtjs/composition-api/entrypoint', - <%_ } _%> + '^vue$': 'vue/dist/vue.common.js' }, moduleFileExtensions: [ <%_ if (typescript) { _%> diff --git a/packages/cna-template/template/nuxt/nuxt.config.js b/packages/cna-template/template/nuxt/nuxt.config.js index e96a5b268..6967bcdec 100644 --- a/packages/cna-template/template/nuxt/nuxt.config.js +++ b/packages/cna-template/template/nuxt/nuxt.config.js @@ -104,7 +104,7 @@ <%_ } _%> <%_ if (composition) { _%> // https://composition-api.nuxtjs.org/ - '@nuxtjs/composition-api', + '@nuxtjs/composition-api/module', <%_ } _%> ], diff --git a/packages/cna-template/template/nuxt/package.json b/packages/cna-template/template/nuxt/package.json index 454a90fee..9b7e7de8f 100644 --- a/packages/cna-template/template/nuxt/package.json +++ b/packages/cna-template/template/nuxt/package.json @@ -13,7 +13,7 @@ "*.{css,vue}": "stylelint" }, "dependencies": { - "@nuxtjs/composition-api": "^0.22.3", + "@nuxtjs/composition-api": "^0.24.2", "@nuxt/content": "^1.14.0", "@nuxtjs/axios": "^5.13.5", "@nuxtjs/pwa": "^3.3.5", 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 88c1f55a4..185d5f35a 100644 --- a/packages/create-nuxt-app/test/snapshots/index.test.js.md +++ b/packages/create-nuxt-app/test/snapshots/index.test.js.md @@ -1861,7 +1861,7 @@ Generated by [AVA](https://avajs.dev). dependencies: { '@nuxt/content': '^1.14.0', '@nuxtjs/axios': '^5.13.5', - '@nuxtjs/composition-api': '^0.22.3', + '@nuxtjs/composition-api': '^0.24.2', '@nuxtjs/pwa': '^3.3.5', 'core-js': '^3.13.0', nuxt: '^2.15.6', @@ -1907,7 +1907,7 @@ Generated by [AVA](https://avajs.dev). // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊ buildModules: [␊ // https://composition-api.nuxtjs.org/␊ - '@nuxtjs/composition-api',␊ + '@nuxtjs/composition-api/module',␊ ],␊ ␊ // Modules: https://go.nuxtjs.dev/config-modules␊ @@ -2246,7 +2246,7 @@ Generated by [AVA](https://avajs.dev). { dependencies: { - '@nuxtjs/composition-api': '^0.22.3', + '@nuxtjs/composition-api': '^0.24.2', 'core-js': '^3.13.0', nuxt: '^2.15.6', }, @@ -2294,7 +2294,7 @@ Generated by [AVA](https://avajs.dev). // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊ buildModules: [␊ // https://composition-api.nuxtjs.org/␊ - '@nuxtjs/composition-api',␊ + '@nuxtjs/composition-api/module',␊ ],␊ ␊ // Modules: https://go.nuxtjs.dev/config-modules␊ diff --git a/packages/create-nuxt-app/test/snapshots/index.test.js.snap b/packages/create-nuxt-app/test/snapshots/index.test.js.snap index 041ca9ba9234ce1995546da69294a7ce05e8bf76..9e87ffa5c6adb0c620f4b709dae21e93eab79806 100644 GIT binary patch literal 9182 zcmZvAWl$W@(q)1McXx;2?jGDdxVyvP!QDN0n86v`Wsnd81Rp#&K?ipTzIkt}w)U&t z`?K$luI_v8Io(HEUz%FS&C?Ddg;LxsSsSCgRdGx8oc5S&Gf!?T1vVu*9hV07f&{j=^Ct_B2)I+ z<4PeD>be;0=FV=lpX%qfWbOd`5FhEIBWB!LG|l_8*~OCLMy?yZ>atZ04N_gvqC4k zc+iuee_7(XOmgf@DRskJr+7A|C4hnN%>;}#U1}6cGg9QCF%tx`<)!q$Klbc@+}oGnYtMHe6+fm=u=zQr5312VB=QIx5eEvn!gZt=2xA2x0h;|G^4cCDe>wsXFUQ z+EEYM8e-Qla0Ayr?9NbFr@S7?nxPbVA}*LWlpF=Hj}-M4N%n4+kznw>v~~L34E;G3;nEjQC$8~{B)*chH|^6()Kq5 zT(GqL`r7#L{CtgU&i7W%zjXgmtc9o{YNI3NDDzg=-EFH=>R4`bI`mZjJQK})nJf6Y zBQb#C=A^R9?(Lh?BV$Ttef~ke-=vs$A$)f0?q1jH{QW2}&p;-&U+(s| zs4fAO*BXO&L*L&RcPe9(i{DfwdIoPW3^SDA18Z<0h3@9bZl~N_@g~E!7SDrStwgh@ z)i6uf9^AnD16|G#rQ6*la=+!DlU;a~=#PFAZ$CRb3W}+wSwR?Y<=r8I3nk*@e(NN% z8ygpY_cvV|NFUde)SN@NvY`+POu5YqU4wd(JWT0Rp{V*%Y9SgXPtQ9Q&bD-|;_?>l*dG|q&&N=gn zj+mr9&%e(4AS|FMXuFD$el0d9dk%VdeCnX&ZN7^5s)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EL5N3v)XME?5Q4!78-d-GBe0Y1 z`BGvq=xW0HvVDYAe{4fo`6uJRsZdP)K-r;A^BiI3qPBJ$orMHuLl;A5)-K_Fsavr&Z2%=^Xc=h!5+Ax%=^dp?(KNW(ymfm}8X zPD-()lhS}D=0gcew|k)NmN=<4E2PEV5KjwAyw*u118v$)e@DH1?P8Q)v?+Rl@8a!w zCey3hpG%0}BfXJ`Uq(i5#MlU3$2MYQy_#wos!6jqEF1Ee{qrU}dnmsTy1Kpo+qFpG zQRpq`J7{>@hw`_NW)p2lA<$uz*i^ZzvTx#IUp8=`v2i*!2GWqy?g<8J)fSZW-*pW% z6P)rG8{UNTe`YgDXF=a5+sT>%RK~l7EdbR|l3RiTS&blmJ2KyQY`gfx88|RgUEC$j z;uEV(ou6se%O9^UuivOHfwuwrkob}hzJ&N!Fe}L^qGKS*4N{ z^Wyr0;t8wmA^XXbMC#qs6pm1{BCS{BBSXhGHbH9Lon7~vV=UWA%l zj+c3>{krx0g_R>1Rx+$)U9O$JYQ0{c6FV%;ZDzLk+Sw39#+n(;nwgK0Y#v3Xb+NH| W6pV!!3mxR0X8#W^wv%vE>Hz@Z3c^bO From 8c6764095f6241ce0bf0459539a846114e211c2f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 31 May 2021 12:04:53 +0100 Subject: [PATCH 4/4] feat: add example composition api usage --- packages/cna-template/template/nuxt/pages/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/cna-template/template/nuxt/pages/index.vue b/packages/cna-template/template/nuxt/pages/index.vue index 02630c934..8933d432a 100644 --- a/packages/cna-template/template/nuxt/pages/index.vue +++ b/packages/cna-template/template/nuxt/pages/index.vue @@ -29,6 +29,15 @@ <%_ if (typescript) { _%> +<%_ } else if (typescript) { _%> import Vue from 'vue' export default Vue.extend({})