Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ooade/preactsimplestarter
PWA Simple Starter with Preact, Preact-mdl and Webpack2 🔥🔥🔥
https://github.com/ooade/preactsimplestarter
development-workflow preact progressive-web-app starter-kit webpack webpack-dashboard
Last synced: 3 months ago
JSON representation
PWA Simple Starter with Preact, Preact-mdl and Webpack2 🔥🔥🔥
- Host: GitHub
- URL: https://github.com/ooade/preactsimplestarter
- Owner: ooade
- Archived: true
- Created: 2016-12-14T21:39:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T23:12:26.000Z (about 6 years ago)
- Last Synced: 2024-09-25T08:04:24.617Z (3 months ago)
- Topics: development-workflow, preact, progressive-web-app, starter-kit, webpack, webpack-dashboard
- Language: JavaScript
- Homepage: https://preact-app.surge.sh
- Size: 2.12 MB
- Stars: 64
- Watchers: 5
- Forks: 9
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Preact Simple Starter
**It's highly recommended to use [Preact-CLI](https://github.com/developit/preact-cli)**[![Build Status](https://travis-ci.org/ooade/fetch-gifs.svg?branch=master)](https://travis-ci.org/ooade/fetch-gifs) [![Code Climate Badge](https://codeclimate.com/github/ooade/PreactSimpleStarter/badges/gpa.svg)](https://codeclimate.com/github/ooade/PreactSimpleStarter/badges)
PWA Simple Starter with Preact, Webpack 2 and your favorite React related packages :rocket:
This App uses:
- Preact
- Preact-mdl
- React-Router
- Redux
- React-Helmet
- Sass
- Webpack Dashboard(For Bundle Analysis)JS Build files:
- app.js - 78.6kb (17kb gzipped)
- vendor.js - 46.3kb (12.5kb gzipped)
_100/100 on lighthouse 1.4.1 audits_# Quick-Start Guide
- [Installation](#installation)
- [Development Workflow](#development-workflow)## Installation
**1. Clone this repo:**
```sh
git clone https://github.com/ooade/PreactSimpleStarter.git
cd PreactSimpleStarter
```**2. Make it your own:**
```sh
rm -rf .git && git init && yarn init
```> :information_source: This re-initializes the repo and sets up your yarn project.
**3. Install the dependencies:**
```sh
yarn install
```> You're done installing! Now let's get started developing.
## Development Workflow
**4. Start a live-reload development server:**
```sh
yarn run dev
```> This is a full web server nicely suited to your project. Any time you make changes within the `src` directory, it will rebuild and even refresh your browser.
> :information_source: Try to avoid using Service Worker in your development environment, so you won't need to hard reload the page anytime you make a change.
**5. Generate a production build in `./build`:**
```sh
yarn run build
```You can now deploy the contents of the `build` directory to production!
## License
MIT