{"_id":"@aimeb1/nuxt-theme","name":"@aimeb1/nuxt-theme","dist-tags":{"latest":"2.7.5"},"versions":{"2.7.5":{"name":"@aimeb1/nuxt-theme","version":"2.7.5","description":"This module is basically our default theme on steroids. It contains additional utilities that make it easier to work with the theme (in projects and as core developers) and allows to disable parts of its features: - By default, it adds eCommerce [routes](","main":"lib/module.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Vue Storefront"},"license":"MIT","publishConfig":{"access":"public"},"dependencies":{"ejs":"^3.0.2","lodash.debounce":"^4.0.8","lodash.merge":"^4.6.2","vue-lazy-hydration":"^2.0.0-beta.4"},"devDependencies":{"chalk":"^2.4.2","chokidar":"^3.3.1","consola":"^2.10.1","loglevel":"^1.6.7","ts-loader":"^8.0.3","vue":"^2.6.11"},"peerDependencies":{"@nuxtjs/composition-api":"^0.29.3"},"engines":{"node":">=14 <=16"},"_id":"@aimeb1/nuxt-theme@2.7.5","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-8N9eLZGKD3ifl3VLlOUYQjyJRa+mgmwmDceOuLdogw5xj0nWYTneWEMA1IiMEVsS0uVvVmGRHKX/mZrRwlIvxw==","shasum":"ec377dabaad87e0caaf8c8f7060cd120b1e3588f","tarball":"https://registry.npmjs.org/@aimeb1/nuxt-theme/-/nuxt-theme-2.7.5.tgz","fileCount":70,"unpackedSize":236762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLu/unKhHCroblL45n3OxZdpxvtBN0HEIUqGmw1z/tZQIhAMlnsnmtigJNbBQLw+xYDotFpaIMarm50mXcyBviUvtQ"}]},"_npmUser":{"name":"aimeb1","email":"aimeb@shaw.ca"},"directories":{},"maintainers":[{"name":"aimeb1","email":"aimeb@shaw.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nuxt-theme_2.7.5_1700528899290_0.8044905718894726"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-21T01:08:19.178Z","2.7.5":"2023-11-21T01:08:19.446Z","modified":"2023-11-21T01:08:19.723Z"},"maintainers":[{"name":"aimeb1","email":"aimeb@shaw.ca"}],"description":"This module is basically our default theme on steroids. It contains additional utilities that make it easier to work with the theme (in projects and as core developers) and allows to disable parts of its features: - By default, it adds eCommerce [routes](","author":{"name":"Vue Storefront"},"license":"MIT","readme":"# Nuxt Theme Module\n\nThis module is basically our default theme on steroids. It contains additional utilities that make it easier to work with the theme (in projects and as core developers) and allows to disable parts of its features:\n- By default, it adds eCommerce [routes](https://github.com/DivanteLtd/vue-storefront/blob/next/packages/core/nuxt-theme-module/routes.js) to your app.\n- If you set `generate` in the config, it will copy, merge & watch for changes in agnostic and integration theme. \n\n## How to install\nAdd dependency:\n```sh\nyarn add @vue-storefront/nuxt-theme\n```\nAdd it to `buildModules` in your `nuxt.config.js`:\n```js\n['@vue-storefront/nuxt-theme'],\n```\n\n## Configuration details\n### `routes`\nIf you want to disable autoadding routes you can do it:\n```js\n['@vue-storefront/nuxt-theme', {\n    routes: false\n}],\n```\n### `generate`\nTo properly configure `generate` property you have to provide data that will be replaced in EJS templates. This property applies only to the core development:\n```js\n['@vue-storefront/nuxt-theme', {\n    generate: {\n        replace: {\n            apiClient: '@vue-storefront/commercetools-api',\n            composables: '@vue-storefront/commercetools'\n        }\n    }\n}],\n```\nExample EJS template where it will be pasted:\n```js\nimport { useCategory } from '<%= options.generate.replace.composables %>';\n```\n\nIf you want to change the target directory where agnostic and integration themes will be merged and copied during core development change the `generate.path` property (default: `_theme`):\n```js\n['@vue-storefront/nuxt-theme', {\n    generate: {\n        path: '.custom-dir'\n    }\n}],\n```\n","readmeFilename":"README.md"}