Nuxt module to use craft cms query builder directly in nuxt
npm install nuxt-craftcms
> [!WARNING]
> This package is no longer actively maintained. Please use the new @query-api/nuxt instead. It's designed to be a drop-in replacement.
-----
Hi there! If you've found this package, thanks so much for checking it out. I've recently re-evaluated my code architecture and decided to adopt a monorepo approach for all the JavaScript SDKs. This change allows for better maintainability and collaboration across related projects.
The package you're likely looking for is the new @query-api/nuxt. It's designed to seamlessly replace nuxt-craftcms.
-----
Migrating to the new package is straightforward:
1. Update Imports: Replace all instances of nuxt-craftcms in your import statements with @query-api/nuxt.
``typescript`
// Before
import { someFeature } from 'nuxt-craftcms';
// After
import { someFeature } from '@query-api/nuxt';
nuxt.config.ts
2. Update Nuxt Configuration: In your file, replace the module name nuxt-craftcms with @query-api/nuxt.`
typescript``
// nuxt.config.ts
export default defineNuxtConfig({
modules: [
// Before
// 'nuxt-craftcms',
// After
'@query-api/nuxt',
],
});
-----
I apologize for any inconvenience this transition may cause. If you encounter any issues during the migration or have questions, please don't hesitate to reach out\!
Happy coding!