0.2.35 • Published 4 years ago

@martel/hyperstatic v0.2.35

Weekly downloads
28
License
MIT
Repository
github
Last release
4 years ago

Hyperstatic

Hyperstatic is a Hyperapp based static site generator with a code-splitting and navigation layer. It's goal is to be a simpler, lighter and faster GatsbyJS, that uses Hyperapp instead of React.

It's codebase also has an inherently smaller footprint by using Puppeteer for pre-rendering and Parcel for code-splitting.

See the demo site here: https://hyperstatic.dev/

Starter template 🚀

To easiest way to get started is to use this starter template.


Installation in an existing Hyperapp 2.0 project:

  1. npm i hyperstatic

  2. Create a routes.js file with your routes in it.
    Example

  1. Replace hyperapp's app call with hyperstatic. Add the extra routes attribute that is needed.
    Example
  1. Link to your pages using the <Link> component.
    Example

  2. (Optional) For pre-rendering, create a render-pages.js, list your URLs and call renderPages with them.
    Example

Then add this helper command in your package.json scripts:

"scripts": {
  "render-pages": "npm run build && node ./render-pages.js"
}

That should be it!

Pull requests are welcome!

0.2.35

4 years ago

0.2.34

4 years ago

0.2.33

4 years ago

0.2.32

4 years ago

0.2.31

4 years ago

0.2.30

4 years ago

0.2.29

4 years ago

0.2.28

4 years ago

0.2.27

4 years ago

0.2.26

4 years ago

0.2.25

4 years ago

0.2.24

4 years ago

0.2.23

4 years ago

0.2.22

4 years ago

0.2.21

4 years ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago