Skip to content
Open
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
7 changes: 7 additions & 0 deletions .changeset/cruel-geese-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@traversable/graphql-types": patch
"@traversable/graphql-test": patch
"@traversable/graphql": patch
---

feat(graphql): adds `graphql` to `dependencies`
7 changes: 7 additions & 0 deletions .changeset/fresh-years-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@traversable/graphql-types": patch
"@traversable/graphql-test": patch
"@traversable/graphql": patch
---

initializes `@traversable/graphql`, `@traverable/graphql-test`, `@traversable/graphql-types` packages
4 changes: 3 additions & 1 deletion bin/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ namespace write {
($) => pipe(
[
`export * from './exports.js'`,
null
].join('\n'),
$.dryRun ? tap(`\n\n[CREATE #10]: workspaceIndex\n`, globalThis.String)
: fs.writeString(path.join(PATH.packages, $.pkgName, 'src', 'index.ts')),
Expand All @@ -443,7 +444,8 @@ namespace write {
export const workspaceSrcExports = defineEffect(
($) => pipe(
[
`export * from './version.js'`,
`export { VERSION } from './version.js'`,
null
].join('\n'),
$.dryRun ? tap(`\n\n[CREATE #11]: workspaceSrcExports\n`, globalThis.String)
: fs.writeString(path.join(PATH.packages, $.pkgName, 'src', 'exports.ts')),
Expand Down
3 changes: 3 additions & 0 deletions config/__generated__/package-list.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions packages/graphql-test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<br>
<h1 align="center">ᯓ𝘁𝗿𝗮𝘃𝗲𝗿𝘀𝗮𝗯𝗹𝗲/𝗴𝗿𝗮𝗽𝗵𝗾𝗹-𝘁𝗲𝘀𝘁</h1>
<br>

<p align="center">
TODO: write me
</p>

<div align="center">
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40traversable%2Fgraphql-test?style=flat-square&logo=npm&label=npm&color=blue">
&nbsp;
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.5%2B-blue?style=flat-square&logo=TypeScript&logoColor=4a9cf6">
&nbsp;
<img alt="License" src="https://img.shields.io/static/v1?label=License&message=MIT&labelColor=59636e&color=838a93">
&nbsp;
<img alt="npm" src="https://img.shields.io/npm/dt/@traversable/graphql-test?style=flat-square">
&nbsp;
</div>

<div align="center">
<!-- <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/%40traversable/graphql-test?style=flat-square&label=size">
&nbsp; -->
<img alt="Static Badge" src="https://img.shields.io/badge/%F0%9F%8C%B2-tree--shakeable-brightgreen?labelColor=white">
&nbsp;
<img alt="Static Badge" src="https://img.shields.io/badge/ESM-supported-2d9574?style=flat-square&logo=JavaScript">
&nbsp;
<img alt="Static Badge" src="https://img.shields.io/badge/CJS-supported-2d9574?style=flat-square&logo=Node.JS">
&nbsp;
</div>

<div align="center">
<a href="https://stackblitz.com/edit/traversable?file=src%2Fsandbox.tsx" target="_blank">Demo (StackBlitz)</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://tsplay.dev/w2y29W" target="_blank">TypeScript Playground</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://www.npmjs.com/package/@traversable/graphql-test" target="_blank">npm</a>
<br>
</div>
<br>
<br>
46 changes: 46 additions & 0 deletions packages/graphql-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@traversable/graphql-test",
"type": "module",
"version": "0.0.0",
"private": false,
"description": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/traversable/schema.git",
"directory": "packages/graphql-test"
},
"bugs": {
"url": "https://github.com/traversable/schema/issues",
"email": "[email protected]"
},
"@traversable": {
"generateExports": { "include": ["**/*.ts"] },
"generateIndex": { "include": ["**/*.ts"] }
},
"publishConfig": {
"access": "public",
"directory": "dist",
"registry": "https://registry.npmjs.org"
},
"scripts": {
"bench": "echo NOTHING TO BENCH",
"build": "pnpm build:esm && pnpm build:cjs && pnpm build:annotate",
"build:annotate": "babel build --plugins annotate-pure-calls --out-dir build --source-maps",
"build:esm": "tsc -b tsconfig.build.json",
"build:cjs": "babel build/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir build/cjs --source-maps",
"check": "tsc -b tsconfig.json",
"clean": "pnpm run \"/^clean:.*/\"",
"clean:build": "rm -rf .tsbuildinfo dist build",
"clean:deps": "rm -rf node_modules",
"test": "vitest"
},
"peerDependencies": {
"@traversable/graphql-types": "workspace:^",
"@traversable/registry": "workspace:^"
},
"devDependencies": {
"@traversable/graphql-types": "workspace:^",
"@traversable/registry": "workspace:^"
}
}
46 changes: 46 additions & 0 deletions packages/graphql-test/src/__generated__/__manifest__.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/graphql-test/src/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './version.js'
1 change: 1 addition & 0 deletions packages/graphql-test/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './exports.js'
3 changes: 3 additions & 0 deletions packages/graphql-test/src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pkg from './__generated__/__manifest__.js'
export const VERSION = `${pkg.name}@${pkg.version}` as const
export type VERSION = typeof VERSION
10 changes: 10 additions & 0 deletions packages/graphql-test/test/version.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as vi from 'vitest'
import pkg from '../package.json' with { type: 'json' }
import { VERSION } from '@traversable/graphql-test'

vi.describe('〖⛳️〗‹‹‹ ❲@traversable/graphql-test❳', () => {
vi.test('〖⛳️〗› ❲VERSION❳', () => {
const expected = `${pkg.name}@${pkg.version}`
vi.assert.equal(VERSION, expected)
})
})
11 changes: 11 additions & 0 deletions packages/graphql-test/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.src.json",
"compilerOptions": {
"tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo",
"types": ["node"],
"declarationDir": "build/dts",
"outDir": "build/esm",
"stripInternal": true
},
"references": [{ "path": "../graphql-types" }, { "path": "../registry" }]
}
8 changes: 8 additions & 0 deletions packages/graphql-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"include": [],
"references": [
{ "path": "tsconfig.src.json" },
{ "path": "tsconfig.test.json" }
]
}
11 changes: 11 additions & 0 deletions packages/graphql-test/tsconfig.src.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"tsBuildInfoFile": ".tsbuildinfo/src.tsbuildinfo",
"rootDir": "src",
"types": ["node"],
"outDir": "build/src"
},
"references": [{ "path": "../graphql-types" }, { "path": "../registry" }],
"include": ["src"]
}
15 changes: 15 additions & 0 deletions packages/graphql-test/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo",
"rootDir": "test",
"types": ["node"],
"noEmit": true
},
"references": [
{ "path": "tsconfig.src.json" },
{ "path": "../graphql-types" },
{ "path": "../registry" }
],
"include": ["test"]
}
6 changes: 6 additions & 0 deletions packages/graphql-test/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import sharedConfig from '../../vite.config.js'

const localConfig = defineConfig({})

export default mergeConfig(sharedConfig, localConfig)
40 changes: 40 additions & 0 deletions packages/graphql-types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<br>
<h1 align="center">ᯓ𝘁𝗿𝗮𝘃𝗲𝗿𝘀𝗮𝗯𝗹𝗲/𝗴𝗿𝗮𝗽𝗵𝗾𝗹-𝘁𝘆𝗽𝗲𝘀</h1>
<br>

<p align="center">
"Low-level" primitives like types and predicates. Most of this package is re-exported by <a href="https://github.com/traversable/schema/tree/main/packages/graphql" target="_blank"><code>@traversable/graphql</code></a>, so you probably won't need to use it directly.
</p>

<div align="center">
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40traversable%2Fgraphql-types?style=flat-square&logo=npm&label=npm&color=blue">
&nbsp;
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.5%2B-blue?style=flat-square&logo=TypeScript&logoColor=4a9cf6">
&nbsp;
<img alt="License" src="https://img.shields.io/static/v1?label=License&message=MIT&labelColor=59636e&color=838a93">
&nbsp;
<img alt="npm" src="https://img.shields.io/npm/dt/@traversable/graphql-types?style=flat-square">
&nbsp;
</div>

<div align="center">
<!-- <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/%40traversable/graphql-types?style=flat-square&label=size">
&nbsp; -->
<img alt="Static Badge" src="https://img.shields.io/badge/%F0%9F%8C%B2-tree--shakeable-brightgreen?labelColor=white">
&nbsp;
<img alt="Static Badge" src="https://img.shields.io/badge/ESM-supported-2d9574?style=flat-square&logo=JavaScript">
&nbsp;
<img alt="Static Badge" src="https://img.shields.io/badge/CJS-supported-2d9574?style=flat-square&logo=Node.JS">
&nbsp;
</div>

<div align="center">
<a href="https://stackblitz.com/edit/traversable?file=src%2Fsandbox.tsx" target="_blank">Demo (StackBlitz)</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://tsplay.dev/w2y29W" target="_blank">TypeScript Playground</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://www.npmjs.com/package/@traversable/graphql-types" target="_blank">npm</a>
<br>
</div>
<br>
<br>
63 changes: 63 additions & 0 deletions packages/graphql-types/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"name": "@traversable/graphql-types",
"type": "module",
"version": "0.0.0",
"private": false,
"description": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/traversable/schema.git",
"directory": "packages/graphql-types"
},
"bugs": {
"url": "https://github.com/traversable/schema/issues",
"email": "[email protected]"
},
"@traversable": {
"generateExports": {
"include": [
"**/*.ts"
]
},
"generateIndex": {
"include": [
"**/*.ts"
]
}
},
"publishConfig": {
"access": "public",
"directory": "dist",
"registry": "https://registry.npmjs.org"
},
"scripts": {
"bench": "echo NOTHING TO BENCH",
"build": "pnpm build:esm && pnpm build:cjs && pnpm build:annotate",
"build:annotate": "babel build --plugins annotate-pure-calls --out-dir build --source-maps",
"build:esm": "tsc -b tsconfig.build.json",
"build:cjs": "babel build/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir build/cjs --source-maps",
"check": "tsc -b tsconfig.json",
"clean": "pnpm run \"/^clean:.*/\"",
"clean:build": "rm -rf .tsbuildinfo dist build",
"clean:deps": "rm -rf node_modules",
"test": "vitest"
},
"peerDependencies": {
"@traversable/registry": "workspace:^",
"graphql": "^16.11.0"
},
"peerDependenciesMeta": {
"@traversable/registry": {
"optional": false
},
"graphql": {
"optional": false
}
},
"devDependencies": {
"@prettier/sync": "catalog:",
"@traversable/registry": "workspace:^",
"graphql": "^16.11.0"
}
}
Loading
Loading