Skip to content

Add programmatic api section for cli#420

Merged
Brooooooklyn merged 1 commit intomainfrom
01-03-add_programmatic_api_section_for_cli
Jan 3, 2026
Merged

Add programmatic api section for cli#420
Brooooooklyn merged 1 commit intomainfrom
01-03-add_programmatic_api_section_for_cli

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 3, 2026 11:42
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
website Ready Ready Preview, Comment Jan 3, 2026 11:50am

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@perfsee
Copy link
Copy Markdown

perfsee Bot commented Jan 3, 2026

napi-rs-website

Bundle main

diff ------------------- Bundle Size Diff -------------------------

@@                       EntryPoint: main                        @@
##                       main …ction_for_cli                 +/- ##
===================================================================
< Bundle              54.4 MB        54.5 MB     +135 kB(+0.25%)   
< Initial JS          6.84 MB        6.98 MB     +135 kB(+1.98%)   
= Initial CSS          151 kB         151 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                  184            185                  +1   
< Chunks                  152            153                  +1   
= Packages                163            163                       
= Duplicates                7              7                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                
! Separate mixed content assets files                              

@@                    EntryPoint: pages/_app                     @@
##                       main …ction_for_cli                 +/- ##
===================================================================
< Bundle                54 MB        54.2 MB     +135 kB(+0.25%)   
< Initial JS          6.51 MB        6.64 MB     +135 kB(+2.08%)   
= Initial CSS          151 kB         151 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                  181            182                  +1   
< Chunks                  149            150                  +1   
= Packages                159            159                       
= Duplicates                7              7                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                
! Separate mixed content assets files                              

@@       EntryPoint: pages/blog/function-and-callbacks.en        @@
##                       main …ction_for_cli                 +/- ##
===================================================================
< Bundle              17.6 MB        17.6 MB      +223 B(+0.00%)   
< Initial JS           866 kB         866 kB      +223 B(+0.03%)   
= Initial CSS         69.3 kB        69.3 kB                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                   53             53                       
= Chunks                   47             47                       
= Packages                126            126                       
= Duplicates                4              4                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Deduplicate versions of libraries                                

...and more

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive documentation for the @napi-rs/cli programmatic API, enabling developers to customize their build workflows beyond standard CLI usage. The documentation covers post-processing build outputs, standalone TypeScript generation for custom build systems like Bazel, and all available programmatic APIs.

Key changes:

  • New programmatic API documentation with code examples for common use cases
  • Navigation metadata update to include the new documentation page
  • Auto-generated TypeScript route definitions

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 8 comments.

File Description
pages/docs/cli/programmatic-api.en.mdx Comprehensive documentation for programmatic APIs including build customization, type generation, and utility functions
pages/docs/cli/_meta.en.json Added navigation entry for the new Programmatic API documentation
next-env.d.ts Auto-generated Next.js TypeScript route definitions reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pages/docs/cli/programmatic-api.en.mdx
Comment thread pages/docs/cli/programmatic-api.en.mdx Outdated
Comment thread pages/docs/cli/programmatic-api.en.mdx
Comment thread pages/docs/cli/programmatic-api.en.mdx
Comment thread pages/docs/cli/programmatic-api.en.mdx
Comment thread pages/docs/cli/programmatic-api.en.mdx
Comment thread pages/docs/cli/programmatic-api.en.mdx
Comment thread pages/docs/cli/programmatic-api.en.mdx
@Brooooooklyn Brooooooklyn force-pushed the 01-03-add_programmatic_api_section_for_cli branch from 1395767 to 241bb88 Compare January 3, 2026 11:47
@Brooooooklyn Brooooooklyn merged commit 17c4c7c into main Jan 3, 2026
4 checks passed
@Brooooooklyn Brooooooklyn deleted the 01-03-add_programmatic_api_section_for_cli branch January 3, 2026 11:51
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.

2 participants