@mearie/vite
@mearie/vite
Vite plugin for Mearie GraphQL client.
This package provides a Vite plugin that enables automatic type generation from GraphQL queries written as template literals in your code.
Installation
npm install -D @mearie/vite
This package provides a Vite plugin for automatic GraphQL code generation during development and build.
Usage
Add the plugin to your Vite configuration:
// vite.config.ts
import { defineConfig } from 'vite';
import mearie from '@mearie/vite';
export default defineConfig({
plugins: [mearie()],
});
By default, the plugin looks for schema.graphql in your project root. You can
customize the schema location and other options:
export default defineConfig({
plugins: [
mearie({
schema: './path/to/schema.graphql',
}),
],
});
Documentation
Full documentation is available at https://mearie.dev/config/codegen.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.1.8 | MIT | |
| 0.1.7 | MIT | |
| 0.1.6 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.0 | MIT | |
| 0.0.0 | MIT |
Pre-releases (28)
| Version | Released | License |
|---|---|---|
| 0.0.1-next.5 | MIT | |
| 0.0.1-next.4 | MIT | |
| 0.0.1-next.3 | MIT | |
| 0.0.1-next.1 | ||
| 0.0.0-next-20260723193255 | MIT | |
| 0.0.0-next-20260723192339 | MIT | |
| 0.0.0-next-20260723192022 | MIT | |
| 0.0.0-next-20260723192010 | MIT | |
| 0.0.0-next-20260605074650 | MIT | |
| 0.0.0-next-20260501191720 | MIT | |
| 0.0.0-next-20260501143547 | MIT | |
| 0.0.0-next-20260314061624 | MIT | |
| 0.0.0-next-20260307092244 | MIT | |
| 0.0.0-next-20260307090329 | MIT | |
| 0.0.0-next-20260307083818 | MIT | |
| 0.0.0-next-20260228150111 | MIT | |
| 0.0.0-next-20260228144449 | MIT | |
| 0.0.0-next-20260228141746 | MIT | |
| 0.0.0-next-20260228070001 | MIT | |
| 0.0.0-next-20260228064912 | MIT | |
| 0.0.0-next-20260228064632 | MIT | |
| 0.0.0-next-20260228053204 | MIT | |
| 0.0.0-next-20260228053037 | MIT | |
| 0.0.0-next-20260228052447 | MIT | |
| 0.0.0-next-20260228050608 | MIT | |
| 0.0.0-next-20260228044018 | MIT | |
| 0.0.0-next-20260228041044 | MIT | |
| 0.0.0-next-20260228035926 | MIT |