Skip to content

init: initializes @traversable/effect, @traversable/effect-test, @traversable/effect-types packages #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ We do however have schemas, and schemas are basically ASTs.
<li><a href="https://github.com/traversable/schema/tree/main/packages/arktype"><code>@traversable/arktype@0.0.3</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/arktype-test"><code>@traversable/arktype-test@0.0.3</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/arktype-types"><code>@traversable/arktype-types@0.0.3</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/effect"><code>@traversable/effect@0.0.0</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/effect-test"><code>@traversable/effect-test@0.0.0</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/effect-types"><code>@traversable/effect-types@0.0.0</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/json-schema"><code>@traversable/json-schema@0.0.4</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/json-schema-test"><code>@traversable/json-schema-test@0.0.4</code></a></li>
<li><a href="https://github.com/traversable/schema/tree/main/packages/json-schema-types"><code>@traversable/json-schema-types@0.0.4</code></a></li>
Expand Down Expand Up @@ -84,6 +87,9 @@ flowchart TD
typebox(typebox)
zod(zod)
arktype-test(arktype-test) -.-> registry(registry)
effect(effect) -.-> registry(registry)
effect-test(effect-test) -.-> registry(registry)
effect-types(effect-types) -.-> registry(registry)
json(json) -.-> registry(registry)
schema(schema) -.-> registry(registry)
typebox-test(typebox-test) -.-> registry(registry)
Expand Down
4 changes: 2 additions & 2 deletions bin/bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function copyPackageVersionToRootReadme() {
const INTEGRATIONS = INTEGRATIONS_VERSIONS()
const LIBS = LIB_VERSIONS()
const newReadme = fs.readFileSync(PATH.readme).toString('utf8').replaceAll(
REG_EXP.PackageNameWithSemver, (x1, x2) => {
const [, pkgNameWithVersion] = x1.split('/')
REG_EXP.PackageNameWithSemver, (x) => {
const [, pkgNameWithVersion] = x.split('/')
const [pkgName] = pkgNameWithVersion.split('@')
const [, integrationVersion] = INTEGRATIONS.find(([libName]) => libName === pkgName) || []
const [, libVersion] = LIBS.find(([libName]) => libName === pkgName) || []
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/effect-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%2Feffect-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="Static Badge" src="https://img.shields.io/badge/license-MIT-a094a2?style=flat-square">
&nbsp;
<img alt="npm" src="https://img.shields.io/npm/dt/@traversable/effect-test?style=flat-square">
&nbsp;
</div>

<div align="center">
<!-- <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/%40traversable/effect-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/effect-test" target="_blank">npm</a>
<br>
</div>
<br>
<br>
40 changes: 40 additions & 0 deletions packages/effect-test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@traversable/effect-test",
"type": "module",
"version": "0.0.0",
"private": false,
"description": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/traversable/schema.git",
"directory": "packages/effect-test"
},
"bugs": {
"url": "https://github.com/traversable/schema/issues",
"email": "ahrjarrett@gmail.com"
},
"@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:^" },
"devDependencies": { "@traversable/registry": "workspace:^" }
}
40 changes: 40 additions & 0 deletions packages/effect-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/effect-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/effect-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/effect-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/effect-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/effect-test'

vi.describe('〖⛳️〗‹‹‹ ❲@traversable/effect-test❳', () => {
vi.it('〖⛳️〗› ❲VERSION❳', () => {
const expected = `${pkg.name}@${pkg.version}`
vi.assert.equal(VERSION, expected)
})
})
11 changes: 11 additions & 0 deletions packages/effect-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": "../registry" }]
}
8 changes: 8 additions & 0 deletions packages/effect-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/effect-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": "../registry" }],
"include": ["src"]
}
11 changes: 11 additions & 0 deletions packages/effect-test/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"tsBuildInfoFile": ".tsbuildinfo/test.tsbuildinfo",
"rootDir": "test",
"types": ["node"],
"noEmit": true
},
"references": [{ "path": "tsconfig.src.json" }, { "path": "../registry" }],
"include": ["test"]
}
6 changes: 6 additions & 0 deletions packages/effect-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/effect-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">
TODO: write me
</p>

<div align="center">
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40traversable%2Feffect-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="Static Badge" src="https://img.shields.io/badge/license-MIT-a094a2?style=flat-square">
&nbsp;
<img alt="npm" src="https://img.shields.io/npm/dt/@traversable/effect-types?style=flat-square">
&nbsp;
</div>

<div align="center">
<!-- <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/%40traversable/effect-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/effect-types" target="_blank">npm</a>
<br>
</div>
<br>
<br>
40 changes: 40 additions & 0 deletions packages/effect-types/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@traversable/effect-types",
"type": "module",
"version": "0.0.0",
"private": false,
"description": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/traversable/schema.git",
"directory": "packages/effect-types"
},
"bugs": {
"url": "https://github.com/traversable/schema/issues",
"email": "ahrjarrett@gmail.com"
},
"@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:^" },
"devDependencies": { "@traversable/registry": "workspace:^" }
}
40 changes: 40 additions & 0 deletions packages/effect-types/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/effect-types/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/effect-types/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/effect-types/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/effect-types/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/effect-types'

vi.describe('〖⛳️〗‹‹‹ ❲@traversable/effect-types❳', () => {
vi.it('〖⛳️〗› ❲VERSION❳', () => {
const expected = `${pkg.name}@${pkg.version}`
vi.assert.equal(VERSION, expected)
})
})
11 changes: 11 additions & 0 deletions packages/effect-types/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": "../registry" }]
}
Loading