Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,30 @@ The plugin's workflow is straightforward but powerful:

All generated hashes use the algorithm you specify (default: `sha256`). You can enable the "Prefixed Document Identifier" format (e.g., `sha256:abc123...`) for compliance with the [GraphQL over HTTP specification](https://github.com/graphql/graphql-over-http/blob/52d56fb36d51c17e08a920510a23bdc2f6a720be/spec/Appendix%20A%20--%20Persisted%20Documents.md#sha256-hex-document-identifier) by setting `includeAlgorithmPrefix: true`.

## Development

### Setup

```bash
# Install dependencies
pnpm install

# Watch mode for development
pnpm dev
```

### Testing

The plugin includes a comprehensive test suite built with Vitest:

```bash
# Run tests
pnpm test

# Run tests in watch mode
pnpm test:watch
```

## License

MIT
7 changes: 3 additions & 4 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
{
ignores: ["dist/**/*", "eslint.config.mjs"],
},
...tseslint.configs.strict,
...tseslint.configs.stylistic,
{
Expand All @@ -12,8 +15,4 @@ export default tseslint.config(
},
},
},
{
ignores: ["dist/**/*"],
files: ["**/*.ts"],
},
);
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"typecheck": "tsc --noEmit",
"lint": "eslint . --ext .ts",
"clean": "rm -rf dist",
"prepare": "npm run build"
"prepare": "npm run build",
"test": "vitest run",
"test:watch": "vitest"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -51,6 +53,8 @@
"eslint-plugin-prettier": "^5.2.3",
"graphql": "^16.8.1",
"prettier": "^3.5.3",
"tsup": "^8.4.0"
"tsup": "^8.4.0",
"typescript-eslint": "^8.26.1",
"vitest": "^3.0.9"
}
}
Loading