Skip to content

MagneH/varanity

Repository files navigation

Varanity boilerplate

A fully fledged offline-first PWA boilerplate for React and TypeScript with server side rendering using varan and Sanity. Live updated preview mode.

DEMO: HERE

Note that these badges are set up for the source boilerplate master branch and will not be correct in your own fork of the boilerplate.

CircleCI Codecov branch David Known Vulnerabilities renovate-app badge Conventional Commits license

Usage

Development

Start a development server with hot reloading

npm run start:watch

Production

Build a production build

npm run build

Start the production server

npm start

How to deploy

Heroku

Add the following npm script in your package.json and push code to heroku as normal using git.

"heroku-postbuild": "npm install --only=dev && npm run build && npm prune --production"

Customize build

Browser support

This project uses browserslist. By default the browser support list is defined in the package.json file, but you can use a .browserlistrc file if you prefer.

Webpack

You can create or bring your own webpack configuration files, though it is recommended to extend the default varan webpack configurations to take advantage of useful defaults and optimizations. See varan documentation for more information.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •