1.2.2-next.0 • Published 3 years ago

microsite v1.2.2-next.0

Weekly downloads
263
License
MIT
Repository
github
Last release
3 years ago

microsite is a fast, opinionated static-site generator (SSG) built on top of Snowpack. It outputs extremely minimal clientside code using automatic partial hydration.

npm init microsite

Microsite's public API is quite stable, but I caution professional users to consider this a WIP! There are plenty of quirks and bugs (especially with dev mode) that are being ironed out until Microsite reaches a more stable v2.0.0!


Microsite is an ESM node package, so it needs to run in a Node environment which supports ESM. We support the latest version of node v12.x LTS (Erbium) — see Engines for more details.

Ensure that your project includes "type": "module" in package.json, which will allow you to use ESM in your project's node scripts.

Pages

Microsite uses the file-system to generate your static site, meaning each component in src/pages outputs a corresponding HTML file.

Page templates are .js, .jsx, or .tsx files which export a default a Preact component.

Styles

Styles are written using CSS Modules. src/global.css is, as you guessed, a global CSS file injected on every page. Per-page/per-component styles are also inject on the correct pages. They are modules and must be named *.module.css.

Project structure

project/
├── public/             // copied to dist/
├── src/
│   ├── global/
│   │   └── index.css   // included in every generated page
│   │   └── index.ts    // shipped entirely to client, if present
│   ├── pages/          // fs-based routing like Next.js
│   │   └── index.tsx
└── tsconfig.json

Acknowledgments

1.2.2-next.0

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.0-next.11

3 years ago

1.1.0-next.10

3 years ago

1.1.0-next.9

3 years ago

1.1.0-next.8

3 years ago

1.1.0-next.7

3 years ago

1.1.0-next.6

3 years ago

1.1.0-next.5

3 years ago

1.1.0-next.4

3 years ago

1.1.0-next.3

3 years ago

1.1.0-next.2

3 years ago

1.1.0-next.1

3 years ago

1.1.0-next.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-next.7

3 years ago

1.0.0-next.6

3 years ago

1.0.0-next.5

3 years ago

1.0.0-next.4

3 years ago

1.0.0-next.3

3 years ago

1.0.0-next.2

3 years ago

1.0.0-next.1

3 years ago

1.0.0-next.0

3 years ago

0.7.6

4 years ago

0.7.4

4 years ago

0.7.5

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.7.0-next.2

4 years ago

0.7.0-next.1

4 years ago

0.7.0-next.0

4 years ago

0.6.14

4 years ago

0.6.13-issue.1

4 years ago

0.6.13-issue.0

4 years ago

0.6.13

4 years ago

0.6.12

4 years ago

0.6.12-next.0

4 years ago

0.6.10

4 years ago

0.6.11

4 years ago

0.6.9

4 years ago

0.6.9-next.0

4 years ago

0.6.7

4 years ago

0.6.6

4 years ago

0.6.8

4 years ago

0.6.3

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.0-next.0

4 years ago

0.5.1-next.0

4 years ago

0.6.2

4 years ago

0.5.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0-alpha.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago