GitShow/kentcdodds/babel-plugin-preval
kentcdodds

babel-plugin-preval

🐣 Pre-evaluate code at build-time

by kentcdodds
Star on GitHubForkWebsitenpm

TypeScript

1.4k stars48 forks28 contributorsQuiet Β· 4y agoSince 2017v5.1.0MIT

Meet the team

See all 28 on GitHub β†’
allcontributors[bot]Bot
allcontributors[bot]10 contributions
mattphillips
mattphillips3 contributions
MichaelDeBoey
MichaelDeBoey3 contributions
andreineculau
andreineculau2 contributions
NMinhNguyen
NMinhNguyen2 contributions
obartra
obartra2 contributions
sorin-davidoi
sorin-davidoi2 contributions
ykzts
ykzts2 contributions

Languages

View on GitHub β†’
TypeScript93.9%
JavaScript6.1%

Commit activity

Last 12 weeks Β· 0 commits

Full graph β†’

Community health

5 of 6 standards met

Community profile β†’
71
βœ“READMEβœ“Licenseβœ“Contributingβ—‹Code of Conductβœ“Issue Templateβœ“PR Template

Recent PRs & issues

Quiet Β· 3 in progress Β· Last activity 4y ago
See all on GitHub β†’
TikiTDO
#82 but with babel optionsOpenPR

Continuing from #82, with more generic handling... What: Allows preval to parse typescript (and potentially any dialect supported by babel with some extra work) Why: Preval currently chokes on typescript. This PR serves as a proof-of-concept to show that a TS file can be transformed into plain JS before being handed off the the helper. This could be generalized with a more extensive set of transformers, or potentially even a babel option for the plugin to allow an arbitrary set of extra plugins. How**: Check for typescript files when parsing a tagged file, and optionally parse it with the typescript transformer enabled. Note, this example only handled the file comment approach, since that code already used babel for parsing the input file. Expanding this it to support the other three approaches would require some changes to use babel handlers such as transformFileSync or transformSync

TikiTDO Β· 1w ago
TikiTDO
Add support for evaluating basic typescriptOpenPR

What: Allows preval to parse typescript (and potentially any dialect supported by babel with some extra work) Why: Preval currently chokes on typescript. This PR serves as a proof-of-concept to show that a TS file can be transformed into plain JS before being handed off the the helper. This could be generalized with a more extensive set of transformers, or potentially even a babel option for the plugin to allow an arbitrary set of extra plugins. How**: Check for typescript files when parsing a tagged file, and optionally parse it with the typescript transformer enabled. Note, this example only handled the file comment approach, since that code already used babel for parsing the input file. Expanding this it to support the other three approaches would require some changes to use babel handlers such as transformFileSync or transformSync

TikiTDO Β· 2w ago
calittl18
Metasoul Blueprint AppOpenPR

This App is an tool πŸ”§ to assist in your attempt to finding a blueprint for your spiritual journey. We Offer: Perfect. Let's begin crafting the MVP (Minimum Viable Product) for your MetaSoul Blueprint App. This version will include core features only, allowing you to test functionality, gather user feedback, and iterate. πŸ“± MetaSoul Blueprint MVP Outline Project Name: MetaSoul Blueprint – Divine Code Unlocked 🧱 MVP Core Modules: Here are the essential, launch-ready features: 1. Daily Blueprint Word Automatically generated message based on user birth details (like yours: July 18, 1992, 7:00 PM, St. Louis) Includes scripture + affirmation + MetaSoul tone of the day 2. Gift Ovulation Tracker Simple monthly calendar view Highlights peak β€œgift activation” windows Tied to lunar cycle or spiritual ovulation formula Ritual reminders and altar suggestions (with notification) 3. Angel & Ancestral Number Decoder Input angel numbers (e.g., 444, 72, 85) Output personalized interpretation based on MetaSoul blueprint Include ancestral notes and dream correlations 4. Prophetic Journaling Tool Daily journal prompt based on current blueprint word Audio-to-text journal input Tagged with date, moon phase, and angel number 5. Scroll Audio Sermons (Mini Version) Library of short 3-7 min audio sermons in Paul Heyman + COGIC preacher style Topics: spiritual warfare, divine identity, alignment, blueprint decoding πŸ”§ Backend Notes for Developer We will generate content using a combination of: Preloaded birth data Indexed angel numbers Pre-written affirmations + sermon scripts Basic calendar logic Firebase or Supabase for database and user management πŸ“₯ Optional for MVP (Stretch Goals if Time Allows) Spiral Code Visual Chart (read-only) Neshama Gematria Lookup Tool Activation Prayer Audio Player What: Why: How: Summary by CodeRabbit New Features Introduced support for user profiles with birth details. Added daily scripture, affirmation, and tone tracking for users. Enabled tracking of ovulation window dates with specific tags. Provided functionality to log and interpret user-inputted numbers. Included journaling features with support for text, audio, and tags. Added storage and management of sermon metadata and audio.

calittl18 Β· 1y ago

Recent fixes

View closed PRs β†’
ghost
...ClosedIssue
ghost Β· 1y ago
rockmandash
[Question] How to use --experimental-modules node mjs moduleClosedIssue

Thank you for this wonderful library. I have code need to preval, but they are written in es6 module Needs to be executed with arguments. Can preval handle this? (I just try, it didn't work). Without preval, I have to configure my project like this: Which is also acceptable, but if preval supports it, it will be alot convinent. Thank you for listening.

rockmandash Β· 2y ago
Structured data for AI agents

Repository: kentcdodds/babel-plugin-preval. Description: 🐣 Pre-evaluate code at build-time Stars: 1363, Forks: 48. Primary language: TypeScript. Languages: TypeScript (93.9%), JavaScript (6.1%). License: MIT. Homepage: https://npm.im/babel-plugin-preval Latest release: v5.1.0 (4y ago). Open PRs: 3, open issues: 8. Last activity: 4y ago. Community health: 71%. Top contributors: allcontributors[bot], mattphillips, MichaelDeBoey, andreineculau, NMinhNguyen, obartra, sorin-davidoi, ykzts, andrewmcodes, AndrewRot and others.

Β·@ofershap

Replace github.com with gitshow.dev