Monorepo for the Ruleflow DSL, including:
@ruleflow-ts/dsl-core: TypeScript interpreter for the Ruleflow DSL (Node / SSR / Edge-friendly).@ruleflow/dsl-tests: Golden tests for@ruleflow-ts/dsl-coreusing Vitest.@ruleflow/next-demo: Next.js demo that consumes the core package and exposes an evaluator.
Requirements: Node.js >= 18
# from the repo root
npm install
npm run typecheck
npm run buildUseful scripts:
npm run build: builds@ruleflow-ts/dsl-corenpm run typecheck: type-checks@ruleflow-ts/dsl-corenpm test: runs Vitest with coverage in@ruleflow/dsl-testsnpm run smoke: runs a smoke test for@ruleflow-ts/dsl-corenpm run dev:next: starts the Next.js demo in dev mode
packages/dsl-core/– the core interpreter.- Entry points:
main,exports, andtypespoint to the built artifacts indist/. - License: MIT
- Publish config: public access
- Entry points:
packages/dsl-tests/– Vitest golden tests for the core.- Private package
- Generates coverage reports (text, html, lcov) in
coverage/
packages/next-demo/– Next.js demo app.- Private package, not intended for npm publishing
npm test
# coverage artifacts will be written to packages/dsl-tests/coverageCI (GitHub Actions) installs deps, type-checks, builds the core, runs tests with coverage, uploads coverage artifacts, runs the smoke test, and builds the Next.js demo.
Please see CONTRIBUTING.md.
Please see SECURITY.md for our vulnerability disclosure policy.
Only @ruleflow-ts/dsl-core is meant for publication to npm.
- License: MIT
files: includesdist/,README.md, andLICENSEpublishConfig.access:public
Run a dry run:
npm run -w @ruleflow-ts/dsl-core pack:dryRelease helpers:
Manual publish and release helpers:
npm publish -w @ruleflow-ts/dsl-core --access public
npm run -w @ruleflow-ts/dsl-core release:patch
npm run -w @ruleflow-ts/dsl-core release:minor
npm run -w @ruleflow-ts/dsl-core release:majorMIT