0.3.0 • Published 10 months ago

@gqfn/nuxt v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@gqfn/nuxt

npm version npm downloads License Nuxt

The Nuxt binding for @gqfn/core.

Features

  • 🔒  Write queries with type safety and type hints.
  • 🚀  No need to scan your source code, no code generation during HMR.
  • ❤️  he experience of using gqfn is very similar to writing plain GraphQL queries.
  • 🌐  Working for most clients with TypedDocumentNode.

Quick Setup

  1. Add @gqfn/nuxt dependency to your project
# ✨ Auto-detect
npx nypm install @gqfn/nuxt

# Using npm
npm install @gqfn/nuxt

# Using yarn
yarn add @gqfn/nuxt

# Using pnpm
pnpm add @gqfn/nuxt

# Using bun
bun install @gqfn/nuxt
  1. Add @gqfn/nuxt to the modules section of nuxt.config.ts, and configure it:
export default defineNuxtConfig({
  modules: [
    '@gqfn/nuxt'
  ],

  gqfn: {
    clients: [
      'https://your-graphql-endpoint',
    ],
  },
})

Contribution

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
0.3.0

10 months ago