feat: full TypeScript library scaffold for mdz-core-js#1
Draft
kylemwhite with Copilot wants to merge 2 commits into
Draft
feat: full TypeScript library scaffold for mdz-core-js#1kylemwhite with Copilot wants to merge 2 commits into
kylemwhite with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: kylemwhite <4984480+kylemwhite@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add project scaffolding for mdz-core-js library
feat: full TypeScript library scaffold for mdz-core-js
Mar 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstraps
mdz-core-jsfrom an empty repo into a publishable TypeScript library with dual ESM/CJS output, CI/CD, and full repo health infrastructure.Core library (
src/)types.ts— public interfaces:MdzManifest,MdzEntry,MdzArchive,RenderOptions,RenderResultparser.ts—parseManifest(json)with strict validation;createArchive(manifest, entries?)returning a readableMdzArchiverenderer.ts—render(archive, options?)placeholder: headings, paragraphs, Markdown image syntax → HTML withbaseUrlresolution and HTML escapingindex.ts— single-entry barrel; consumers import only from hereBuild & toolchain
.d.tsdeclarations, sourcemaps,"sideEffects": falseexportsmap (types→import→require),fileswhitelist,prepublishOnlyguardnoUncheckedIndexedAccess,exactOptionalPropertyTypestypescript-eslintstrictTypeChecked+ Prettier; separatetsconfig.lint.jsoncoverstests/@vitest/coverage-v8; 80% coverage thresholds; 24 tests across parser, renderer, and barrelCI/CD (
.github/workflows/)ci.yml— Node 18/20/22 matrix: format → lint → typecheck → test+coverage → build; separatenpm pack --dry-runjob on every PRrelease.yml— fires onv*.*.*tags; full quality gate →npm publish --provenance→ GitHub Releasechangeset-release.yml— Changesets automation: opens Version PR on merge tomain, then publishes on Version PR mergeRepo health
RELEASING.md— step-by-step release flow + table of required manual secrets/settings (NPM_TOKEN, branch protection, optional OIDC)ROADMAP.md— migration notes from existing repo, near-term goals (zip extraction, full Markdown pipeline), longer-term Angular/React splitCONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md, issue templates (bug/feature), PR templateLICENSE(replaced Apache 2.0),.editorconfig,.gitignoreOriginal prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.