Skip to content

robeno/ts-widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Preact ts-widget starter

Documentation

  • This is a TypeScript Widget template that can be used with Preact-CLI.
  • For Preact: General information about how to work with Preact, not specific to this template

Usage

$ npx preact-cli create rschristian/ts-widget my-widget
$ cd my-widget
$ yarn
$ yarn serve:dev

Development server runs on port 3000. If the default port is already in use on your machine it will start the development server on a random port.

Commands

  • yarn: Installs dependencies

  • yarn serve:dev: Run a development server

  • yarn build: NPM-ready build, for use in other Preact web apps

  • yarn build:demo: Production ready build of demo application

  • yarn serve:demo: Run a production-like server for the demo application

  • npm run lint: Pass TypeScript files using ESLint

About

My go-to setup for creating Preact Widgets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 47.8%
  • SCSS 28.6%
  • JavaScript 15.1%
  • HTML 6.7%
  • CSS 1.8%