From f1a830f7a693f6ef94bd672f4083b112841758a1 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 18 Feb 2022 11:58:38 +0100 Subject: [PATCH] chore(module): use `@nuxtjs/color-mode` --- package.json | 2 +- src/module.ts | 1 + yarn.lock | 21 +++++++++++---------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 95c14d42..e54979cb 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@headlessui/vue": "^1.5.0", "@iconify/vue": "^3.1.3", "@nuxt/kit": "npm:@nuxt/kit-edge@latest", + "@nuxtjs/color-mode": "^3.0.0", "@nuxtjs/tailwindcss": "^5.0.0-4", "@popperjs/core": "^2.11.2", "@tailwindcss/aspect-ratio": "^0.4.0", @@ -44,7 +45,6 @@ "@nuxtjs/eslint-config-typescript": "^8.0.0", "@types/lodash-es": "^4.17.6", "@types/tailwindcss": "^3.0.8", - "@vueuse/components": "^7.6.2", "eslint": "^8.9.0", "nuxt3": "latest", "standard-version": "^9.3.2" diff --git a/src/module.ts b/src/module.ts index b9c4b61d..8e791450 100644 --- a/src/module.ts +++ b/src/module.ts @@ -66,6 +66,7 @@ export default defineNuxtModule({ nuxt.options.build.transpile.push(runtimeDir) nuxt.options.build.transpile.push('@popperjs/core', '@headlessui/vue') + await installModule('@nuxtjs/color-mode', { classSuffix: '' }) await installModule('@nuxtjs/tailwindcss', { viewer: false, config: { diff --git a/yarn.lock b/yarn.lock index 36719ff7..b0ba630e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -632,6 +632,16 @@ webpack-virtual-modules "^0.4.3" webpackbar "^5.0.2" +"@nuxtjs/color-mode@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@nuxtjs/color-mode/-/color-mode-3.0.0.tgz#c5ba5c24f23148bfc5c8b4af02c5f7f1a0186a06" + integrity sha512-R3GxWl9+wOx/kAB9QLOJYW35knnRiKfRTTt+tkKyxsW0QQRiAAURZHr4BoJZeQtaEoneuRmJV99/p07/ehJcUw== + dependencies: + "@nuxt/kit" "npm:@nuxt/kit-edge@latest" + defu "^5.0.0" + lodash.template "^4.5.0" + pathe "^0.2.0" + "@nuxtjs/eslint-config-typescript@^8.0.0": version "8.0.0" resolved "https://registry.yarnpkg.com/@nuxtjs/eslint-config-typescript/-/eslint-config-typescript-8.0.0.tgz#dd178386e4243874fa95464f8fce25ee9d66bf7a" @@ -1204,16 +1214,7 @@ resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.31.tgz#c90de7126d833dcd3a4c7534d534be2fb41faa4e" integrity sha512-ymN2pj6zEjiKJZbrf98UM2pfDd6F2H7ksKw7NDt/ZZ1fh5Ei39X5tABugtT03ZRlWd9imccoK0hE8hpjpU7irQ== -"@vueuse/components@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@vueuse/components/-/components-7.6.2.tgz#4377ad58f6f1c555e96b20f172f48a68ff29c772" - integrity sha512-kw/MUktbcpkLBSLzEiyju2NIqyqP3ZlOlhGIPyG05pSspZg8l+IeBCT34QFRpLtxjmNvi+Rivyv/vlM4J61+4g== - dependencies: - "@vueuse/core" "7.6.2" - "@vueuse/shared" "7.6.2" - vue-demi "*" - -"@vueuse/core@7.6.2", "@vueuse/core@^7.6.2": +"@vueuse/core@^7.6.2": version "7.6.2" resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-7.6.2.tgz#1b9aa92048991189fac31577ff439296efa5fb4a" integrity sha512-bjAbXJVJO6aElMaZtDz2B70C0L6jFk/jGVqJxWZS5huffxA6dW5DN6tQQJwzOnx9B9rDhePHJIFKsix0qZIH2Q==