Refactor bit Boilerplate app.js build steps (#12207)#12208
Refactor bit Boilerplate app.js build steps (#12207)#12208yasmoradi merged 3 commits intobitfoundation:developfrom
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe TypeScript build pipeline was refactored to separate concerns: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can generate a title for your PR based on the changes.Add |
There was a problem hiding this comment.
Pull request overview
Refactors the Boilerplate Bit template’s JavaScript build to a split pipeline: tsc performs type-checking only, while esbuild bundles directly from TypeScript sources into app.js.
Changes:
- Update TypeScript config to disable emit (
noEmit: true) and adjustlibdefinitions. - Update MSBuild
BuildJavaScripttarget to bundle fromScripts/index.tsand set explicit browser targets. - Update the Stage 11 docs to describe the split pipeline and the updated build commands.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/tsconfig.json | Adds split-pipeline note, switches libs, and enables noEmit so tsc acts as a checker only. |
| src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Boilerplate.Client.Core.csproj | Changes esbuild entrypoint to .ts and adds explicit --target browser matrix. |
| src/Templates/Boilerplate/Bit.Boilerplate/.docs/11- TypeScript, Build Process & JavaScript Interop.md | Aligns documentation with new “type-check only + esbuild bundle” workflow and updated commands. |
...oilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Boilerplate.Client.Core.csproj
Show resolved
Hide resolved
...ates/Boilerplate/Bit.Boilerplate/.docs/11- TypeScript, Build Process & JavaScript Interop.md
Outdated
Show resolved
Hide resolved
...ates/Boilerplate/Bit.Boilerplate/.docs/11- TypeScript, Build Process & JavaScript Interop.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/Templates/Boilerplate/Bit.Boilerplate/.docs/11-` TypeScript, Build
Process & JavaScript Interop.md:
- Around line 26-33: The documentation's example compilerOptions shows "module":
"es2015" which is inconsistent with the actual tsconfig.json using "ESNext";
update the docs in the Markdown example so the compilerOptions "module" property
reads "ESNext" to match the real tsconfig.json (look for the compilerOptions
block and the "module" key in the file and replace "es2015" with "ESNext");
alternatively, if the intended project setting is "es2015", change the project's
tsconfig.json "module" to "es2015" so both the tsconfig.json and the
documentation match.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: f85ef5cf-0661-4ba4-bdaf-5655111b0e9c
📒 Files selected for processing (3)
src/Templates/Boilerplate/Bit.Boilerplate/.docs/11- TypeScript, Build Process & JavaScript Interop.mdsrc/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Boilerplate.Client.Core.csprojsrc/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/tsconfig.json
...ates/Boilerplate/Bit.Boilerplate/.docs/11- TypeScript, Build Process & JavaScript Interop.md
Show resolved
Hide resolved
…, Build Process & JavaScript Interop.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Yas Moradi <yas_moradi@outlook.com>
closes #12207
Summary by CodeRabbit
Documentation
Chores