No description, website, or topics provided.
Clone or download
Latest commit 3af57f6 Jul 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
functions Add robots.txt Jul 2, 2018
public Add robots.txt Jul 2, 2018
.eslintrc Eslint Feb 16, 2018
.firebaserc FIrebase function to preload Feb 14, 2018
.gitignore Add dev build Feb 16, 2018
LICENSE Add licence Feb 19, 2018
README.md Update API used Jul 2, 2018
firebase.json Remove firebase index.html so the function is always served Feb 16, 2018
package-lock.json Update deps Feb 16, 2018
package.json Update deps Feb 16, 2018
rollup.config.dev.js sourcemaps, cache control headers Feb 16, 2018
rollup.config.js Add robots.txt Jul 2, 2018

README.md

compost-hn

A Hacker News PWA implementation using native Web Components and compost - a small collection of web component mixins.

Uses the unofficial HackerNews API HNPWA API, and works on all modern browsers.

See https://compost-35844.firebaseapp.com for a live production build.

Build

Development

Ideal for testing out the implementation.

npm install

npm run build:dev

This copies the required files from node_modules into the public directory, bundles the js with sourcemaps (using rollup), and creates a service worker.

Production

Currently geared towards firebase hosting.

npm install

npm run build:prod

firebase deploy

This does the same as the dev build but creates a separate build directory for deploying, creates a firebase function to preload and cache API results for the root page, and sets cache control for static assets.