Skip to content

Template for a widget to be embedded in another website

License

Notifications You must be signed in to change notification settings

yangkennyk/widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation



Preact Widget Template

Usage

$ npm install -g preact-cli
$ preact create widget my-widget
$ cd my-widget
$ npm install
$ npm run dev

Commands

dev: Starts a dev server with hotreload and widget placeholder.

build: Builds a documentation web app in build folder and a production ready UMD bundle ready to be embedded in any non-preact page.

dist: Builds npm ready bundles in dist folder to be consumed by other preact web apps.

start: Either starts a production ready dev server demo-ing your widget or local env based on your environment variable.

test: Runs your awesome UI tests with Jest.

serve: Builds and serves your widget.

About

Template for a widget to be embedded in another website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.3%
  • HTML 35.1%
  • CSS 5.6%