A small example to illustrate how to use react-bndl, also used for development and testing.
pnpm add @bndl/demo
start
: Runs the entire application, both the server and demo site in development modestart:server
: Run only serverbuild:dev
: Build the site bundles for developmentbuild:prod
: Build the site bundles for productionfix:lint
: Fix any lint issues that can be done automaticallytest:lint
: Check lint for both server and site applicationtest:types
: Check types for both server and site application
This examples is divided into several folders that segment the applications into various components. Each component is bundled individually and loaded via react-bndl package within the main application code.