0.2.35 • Published 5 years ago

@martel/hyperstatic v0.2.35

Weekly downloads
28
License
MIT
Repository
github
Last release
5 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

5 years ago

0.2.34

5 years ago

0.2.33

5 years ago

0.2.32

5 years ago

0.2.31

5 years ago

0.2.30

5 years ago

0.2.29

5 years ago

0.2.28

5 years ago

0.2.27

5 years ago

0.2.26

5 years ago

0.2.25

5 years ago

0.2.24

5 years ago

0.2.23

5 years ago

0.2.22

5 years ago

0.2.21

5 years ago

0.2.20

5 years ago

0.2.19

5 years ago

0.2.18

5 years ago

0.2.17

5 years ago

0.2.16

5 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago