Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.
/ Preactubats Public archive
forked from preactjs-templates/default

Template for Preact CLI using Typescript, SCSS and Bulma. !OUT OF DATE AS NEW Preact CLI comes with Typescript template!

License

Notifications You must be signed in to change notification settings

smjnab/Preactubats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

!Out of date, new Preact-cli comes with Typescript template!

Preactubats

preact-cli template using Typescript, SCSS and Bulma CSS framework. Template has the same content, with some additions, as the default preact-cli template and uses the styling from Bulma's getting started guide.

In addition Preact-async-route and Preact-helmet is used for async paths and modifying the default header. Typescript was added using preact-cli-plugin-typescript with modifications, and styling integration to .tsx files is done using typings-for-css-modules-loader.

Demo at //Removed as template has little purpose these days.

Documentation

  • This is a modified [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 smjnab/preactubats 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: Install dependencies

  • npm run start: Runs serve or dev, depending on NODE_ENV value. Defaults to dev server

  • npm run dev: Run a development, HMR server at localhost:8080

  • npm run serve: Run a production-like server at https://localhost:8080

  • npm run build: Production-ready build

  • npm run bs: Build and run a production-like serve

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with preact-cli:

preact create username/repo my-project

About

Template for Preact CLI using Typescript, SCSS and Bulma. !OUT OF DATE AS NEW Preact CLI comes with Typescript template!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 55.8%
  • CSS 28.0%
  • JavaScript 16.2%