v0.4.0 - Full TypeScript migration, new features & modernization - #3
Merged
Conversation
- Migrated to TypeScript + ESM (dual ESM/CJS, .d.ts generated) - Switched to Vitest + tsup + ESLint flat config - Added CI (Node 18/20/22), Node >=18 required - Hardened CommandHelper with input sanitization + security tests
…I, watcher, async) - Plugin system: registerEngine(), getEngine(), getRegisteredEngines() for custom template engines - Pipeline: chainable API (fromString/fromFile/fromTemplate → transform → writeTo/execute) - Scaffold engine: generate directory structures from manifests with dry-run support - CLI: scg init, scg generate, scg render commands (registered as bin in package.json) - File watcher: auto-rebuild templates on changes with start/stop/callbacks - Async FileHelper: readFileAsync, writeFileAsync, readJsonFileAsync, existsAsync, etc. - 65 tests (up from 40), all passing - README.md fully updated with new API documentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
registerEngine), chainable Pipeline API, Scaffold engine with manifest-based generation, CLI (init,generate,render), file Watcher with auto-rebuild, async FileHelper operationsChanges
.travis.yml,index.js,test.jspackage.json(v0.4.0, ESM, dual exports),README.md(full rewrite),example/index.jsTest plan
npm run typecheck- TypeScript strict mode passesnpm run lint- ESLint passesnpm test- 65 tests pass (Vitest)npm run build- Dual CJS/ESM build succeedsnpx @tiveor/scg init,generate,render🤖 Generated with Claude Code