Skip to content
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

feat(unplugin-typia): add Bun.build examples to README and bun.ts/ enable cache for bun.ts #56

Merged
merged 3 commits into from
Jun 8, 2024

Conversation

ryoppippi
Copy link
Owner

This commit adds two examples of how to use the unplugin-typia with
Bun.build in the README.md and bun.ts files. The first example shows
how to use it for running scripts, and the second one for building
scripts. It also updates the documentation in bun.ts to include these
examples and a link to the Bun.build documentation.

Copy link

vercel bot commented Jun 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unplugin-typia-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2024 4:52pm

Copy link

socket-security bot commented Jun 8, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/[email protected], npm/[email protected]

View full report↗︎

ryoppippi added 2 commits June 8, 2024 14:26
This commit adds two examples of how to use the unplugin-typia with
Bun.build in the README.md and bun.ts files. The first example shows
how to use it for running scripts, and the second one for building
scripts. It also updates the documentation in bun.ts to include these
examples and a link to the Bun.build documentation.
This commit introduces a new build script in the bun-build example.
The script uses UnpluginTypia as a plugin for the Bun build tool.

Additionally, the package.json file has been updated to include a
new "build" script which runs the newly introduced build script.
@ryoppippi ryoppippi force-pushed the feature/impvore-bun branch from b631277 to 96b1c68 Compare June 8, 2024 13:27
This commit refactors the `bunTypiaPlugin` function to use the `unplugin`
module instead of the previous `transformTypia` function. The `transform`
function from `unplugin.raw` is now used to transform the source code.

The return type of the `transform` function is also handled differently.
If the result is `null` or a string, the original source is returned.
Otherwise, the transformed code from the result is returned.

This change improves the flexibility and maintainability of the code by
leveraging the `unplugin` module.
@ryoppippi ryoppippi changed the title feat(unplugin-typia): add Bun.build examples to README and bun.ts feat(unplugin-typia): add Bun.build examples to README and bun.ts/ enable cache for bun.ts Jun 8, 2024
@ryoppippi ryoppippi merged commit 004c16a into main Jun 8, 2024
14 checks passed
@ryoppippi ryoppippi deleted the feature/impvore-bun branch June 8, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant