All Projects → preactjs-templates → Typescript

preactjs-templates / Typescript

Licence: mit
The TypeScript template for Preact CLI

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Typescript

Fuel Price
⛽ Check fuel prices daily in most of the states in India
Stars: ✭ 20 (-70.59%)
Mutual labels:  preact
Blaze
⚡ File sharing progressive web app built using WebTorrent and WebSockets
Stars: ✭ 991 (+1357.35%)
Mutual labels:  preact
Ts Preact Starter
Barebones starter project for Preact with TypeScript
Stars: ✭ 49 (-27.94%)
Mutual labels:  preact
Preact
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
Stars: ✭ 30,527 (+44792.65%)
Mutual labels:  preact
React Colorful
🎨 A tiny (2,5 KB) color picker component for React and Preact apps
Stars: ✭ 951 (+1298.53%)
Mutual labels:  preact
Whack A Mole
Offline-first arcade game for children
Stars: ✭ 40 (-41.18%)
Mutual labels:  preact
React Ssr Starter
All have been introduced React environment
Stars: ✭ 20 (-70.59%)
Mutual labels:  preact
Cloudflare Worker Preact Pwa
Cloudflare worker running a Preact Progressive Web App
Stars: ✭ 57 (-16.18%)
Mutual labels:  preact
Wasmboy
Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
Stars: ✭ 963 (+1316.18%)
Mutual labels:  preact
Nectarine
🍑 A mobile web / Android app for Peach! (peach.cool) ⚡️
Stars: ✭ 48 (-29.41%)
Mutual labels:  preact
Slidecontrol
Slidecontrol enables you to control your slides with your phone 📱
Stars: ✭ 30 (-55.88%)
Mutual labels:  preact
Preact Boilerplate
🎸 Ready-to-rock Preact starter project, powered by Webpack.
Stars: ✭ 959 (+1310.29%)
Mutual labels:  preact
Shudan
A highly customizable, low-level Preact Goban component.
Stars: ✭ 43 (-36.76%)
Mutual labels:  preact
Hydrocarbon
not just an rss reader
Stars: ✭ 21 (-69.12%)
Mutual labels:  preact
Navi
Open Source Project for Grow with Google Udacity Scholarship Challenge - Navigation app using offline first strategy and google maps api - To get started please refer to the README.md - CONTRIBUTING.md and the project Wiki
Stars: ✭ 51 (-25%)
Mutual labels:  preact
Electron Webpack Preact
Simple Boilerplate for Electron 🖥️ Preact ⚛️ Webpack ⚡
Stars: ✭ 20 (-70.59%)
Mutual labels:  preact
Razzle Unrouted
Blazingly fast server-rendered MVC Webapps with Preact and Webpack
Stars: ✭ 39 (-42.65%)
Mutual labels:  preact
Enzyme Adapter Preact Pure
Preact adapter for the Enzyme UI testing library
Stars: ✭ 62 (-8.82%)
Mutual labels:  preact
Preact Jsx Chai
✅ Add JSX assertions to Chai, with support for Preact Components.
Stars: ✭ 56 (-17.65%)
Mutual labels:  preact
Preact Cli Plugin Async
Preact CLI plugin that adds converts async/await to Promises.
Stars: ✭ 44 (-35.29%)
Mutual labels:  preact

Preact TypeScript starter project

Documentation

  • This is a TypeScript version of the default template for preact-cli.
  • For Preact: General information about how to work with Preact, not specific to this template

Usage

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

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

Commands

  • npm install: Installs dependencies

  • npm run dev: Run a development, HMR server

  • npm run serve: Run a production-like server

  • npm run build: Production-ready build

  • npm run lint: Pass TypeScript files using ESLint

  • npm run test: Run Jest and Enzyme with enzyme-adapter-preact-pure for your tests

How to Test

The typescript template provides a basic test setup with Jest, Enzyme and enzyme-adapter-preact-pure. You are free to change Enzyme with any other testing library (eg. Preact Testing Library).

You can run all additional Jest CLI commands with the npm run test command as described in the Jest docs. For example, running jest in watch mode would be :

  • npm run test -- --watch instead of jest --watch
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].