This is a lightweight, old-school React boilerplate without Webpack, great for rapid prototyping and designing in the browser.
This is an old-school project set up without any project bundler. Everything is automatically loaded in the index file, without any module loader, which is great for rapid prototyping and designing in the browser. The following is provided:
- Automatic JSX transformation to JS (no compilation to ES5 or below)
- Automatic CSS injection with
browser-refresh
, great for designing in the browser - Dev server automatically loading CSS and JavaScript files from
src
into theindex
file with old-schoollink
orscript
tags
yarn install
yarn run dev
- Open
http://localhost:8080
to view the page.
Any JavaScript or CSS file added in the src
directory will be automatically loaded in the index
file.
Run yarn run build
to build the app. The artifacts will be placed in the dist
folder.
Note
You can configure the dev server using the config file in config.json
.
All the dev scripts are in the tasks
folder. To run the tests for the scripts, run the following:
npx tape 'tasks/**/*.test.js'