feat: add inkline barrel package#450
Merged
Merged
Conversation
Add `core/inkline` barrel package that re-exports all `@inkline/*` sub-packages
through a single `inkline` install point, mirroring the `styleframe` pattern.
Subpath exports:
- `.` re-exports `@inkline/core`
- `./cli` re-exports `@inkline/cli`
- `./compiler` re-exports `@inkline/compiler`
- `./config-loader` re-exports `@inkline/config-loader`
- `./plugin/{vite,webpack,rollup,esbuild,rspack,farm}` re-exports `@inkline/plugin/*`
- `./{react,vue,svelte,solid,angular,qwik,astro}` re-exports `@inkline/*` framework targets
Refactors `@inkline/cli` to export a `main()` function from its index, called by
both its own bin shim and the barrel's bin shim.
Also gitignores `.styleframe/` directories (auto-generated by @styleframe/plugin).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #450 +/- ##
=======================================
Coverage 89.66% 89.66%
=======================================
Files 100 100
Lines 3910 3910
Branches 1317 1314 -3
=======================================
Hits 3506 3506
Misses 337 337
Partials 67 67 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… artifacts - Make `inkline/cli` a pure re-export; move `main()` invocation to bin script - Add `core/plugin/dist` and `ui/*/.styleframe` to CI build artifacts
The .styleframe/styleframe.d.ts files are ambient type declarations for the virtual:styleframe module, generated by @styleframe/plugin. Since they are not regenerated during the build step, they must be committed to git for lint and type-check to pass in CI.
Add `vp build` to the ui/components build script so the styleframe Vite plugin generates type declarations during the build. This lets .styleframe/ stay gitignored while still being available as CI build artifacts for lint and type-check jobs.
…rtifacts Reverts the .styleframe gitignore — these auto-generated type declarations must stay in git for CI type checking and linting to resolve virtual:styleframe. Also adds core/inkline/dist to the CI artifact upload paths.
Move .styleframe/ to per-project .gitignore files across all UI packages so type declarations are generated by `vp build` rather than tracked in git. Add components barrel (src/components/index.ts) and configure vite.config.ts as a multi-entry lib build producing both the component barrel and styleframe config.
Add include-hidden-files: true so .styleframe directories are correctly included by the upload-artifact action.
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
core/inklinebarrel package (published asinkline) that re-exports all@inkline/*sub-packages through a single install point, mirroring thestyleframebarrel pattern../compiler,./config-loader,./cli), build plugins (./plugin/{vite,webpack,rollup,esbuild,rspack,farm}), and framework targets (./react,./vue,./svelte,./solid,./angular,./qwik,./astro).@inkline/clito export amain()function, called explicitly by both its own bin shim and the barrel's bin shim.inklineto@inkline/monorepoto avoid workspace name collision..styleframe/directories (auto-generated by@styleframe/plugin).Test plan
vp installlinks the new workspace package (19 projects)vp packincore/inklinebuilds all 17 entry points (ESM + CJS + declarations)vp checkpasses via pre-commit hook