Skip to content

Latest commit

 

History

History

demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Demo

A small example to illustrate how to use react-bndl, also used for development and testing.

Installation

pnpm add @bndl/demo

Scripts

  • start : Runs the entire application, both the server and demo site in development mode
  • start:server: Run only server
  • build:dev: Build the site bundles for development
  • build:prod: Build the site bundles for production
  • fix:lint: Fix any lint issues that can be done automatically
  • test:lint: Check lint for both server and site application
  • test:types: Check types for both server and site application

Structure

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.

  • app: Built with React, bundles with Webpack
  • server: Demo server, uses Koa