Heads up! This repo is archived. I don't use this for work anymore, and don't have the bandwidth to maintain. It needs to be rewritten with Typescript and newer build tools anyway.
A template for building custom WAB widgets with React and modern JS.
Webpack bundles all source code into a single React component. That component is
rendered in Widget.js
with React DOM. See the docs for
more details.
Fork this repo or download the latest release.
yarn
: install dependencies
yarn rename
: rename the widget to the value set atwidgetName
inpackage.json
. Only run once!yarn start
: run webpack and gulp, start a dev server at https://localhost:3000/ with Browsersync, automatically reload on changesyarn test
: run Jestyarn test:watch
: run Just in watch modeyarn format
: run prettier (prettier also run before each commit)yarn lint
: lint files with ESLintyarn deploy
: copy custom widget folders todist
, ready to be added to client apps.
Licensed under the MIT License. See License for more info.