All Projects → infinum → Generator Infinitely Static

infinum / Generator Infinitely Static

Licence: mit
💫 Static page generator with routes support thats infinitely awesome

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Generator Infinitely Static

Eleventy Starter Boilerplate
🚀 Eleventy Starter is production-ready with SEO-friendly for quickly starting a blog. ⚡ Built with Eleventy, ESLint, Prettier, Webpack, PostCSS, Tailwind CSS and Netlify CMS (optional).
Stars: ✭ 139 (+1163.64%)
Mutual labels:  webpack, static-site-generator, static-site
Skeleventy
A skeleton boilerplate built with Eleventy.
Stars: ✭ 318 (+2790.91%)
Mutual labels:  webpack, static-site-generator, static-site
Peco
nothing here, move on..
Stars: ✭ 213 (+1836.36%)
Mutual labels:  webpack, static-site-generator, static-site
Ng Static Site Generator
ng-static-site-generator is a webpack-based command line build tool that builds an Angular app and Jekyll-style blog entry html files into a static html and css website. It also supports building a client app so you can have static pages that are also capable of running dynamic functionality coded in Angular.
Stars: ✭ 42 (+281.82%)
Mutual labels:  webpack, static-site-generator, static-site
generator-veams
Scaffold modern frontend web apps or web pages with a static site generator (Assemble or Mangony), Grunt and/or Gulp, Sass and Bower. Use modern frameworks like Bourbon, Bootstrap or Foundation and structure your JavaScript with ES Harmony support.
Stars: ✭ 45 (+309.09%)
Mutual labels:  static-site-generator, yeoman, static-site
Publii
Publii is a desktop-based CMS for Windows, Mac and Linux that makes creating static websites fast and hassle-free, even for beginners.
Stars: ✭ 3,644 (+33027.27%)
Mutual labels:  static-site-generator, static-site
Phenomic
DEPRECATED. Please use Next.js instead.
Stars: ✭ 3,264 (+29572.73%)
Mutual labels:  webpack, static-site-generator
Feflow
🚀 A command line tool aims to improve front-end engineer workflow and standard, powered by TypeScript.
Stars: ✭ 942 (+8463.64%)
Mutual labels:  webpack, yeoman
Assemble
Community
Stars: ✭ 3,995 (+36218.18%)
Mutual labels:  static-site-generator, static-site
Kratos Boilerplate
🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
Stars: ✭ 308 (+2700%)
Mutual labels:  webpack, yeoman
Django Bakery
A set of helpers for baking your Django site out as flat files
Stars: ✭ 360 (+3172.73%)
Mutual labels:  static-site-generator, static-site
Spike
A modern static build tool, powered by webpack
Stars: ✭ 462 (+4100%)
Mutual labels:  webpack, static-site-generator
Bridgetown
A Webpack-aware, Ruby-powered static site generator for the modern Jamstack era
Stars: ✭ 317 (+2781.82%)
Mutual labels:  webpack, static-site-generator
Gridsome Portfolio Starter
A simple portfolio theme for Gridsome powered by Tailwind CSS v1
Stars: ✭ 329 (+2890.91%)
Mutual labels:  static-site-generator, static-site
Cogear.js
Modern static websites generator (Node.JS/Webpack)
Stars: ✭ 315 (+2763.64%)
Mutual labels:  webpack, static-site-generator
Charge
⚡️ An opinionated, zero-config static site generator.
Stars: ✭ 368 (+3245.45%)
Mutual labels:  static-site-generator, static-site
Headlesscms.org
Source for headlesscms.org
Stars: ✭ 628 (+5609.09%)
Mutual labels:  static-site-generator, static-site
Staticgen
Static website generator that lets you use HTTP servers and frameworks you already know
Stars: ✭ 628 (+5609.09%)
Mutual labels:  static-site-generator, static-site
Microsite
Do more with less JavaScript. Microsite is a smarter, performance-obsessed static site generator powered by Preact and Snowpack.
Stars: ✭ 632 (+5645.45%)
Mutual labels:  static-site-generator, static-site
Gatsby Starter Ghost
A starter template to build lightning fast websites with Ghost & Gatsby
Stars: ✭ 752 (+6736.36%)
Mutual labels:  static-site-generator, static-site

infinitely-static

This is a static page generator with basic support for routing. The idea behind this tool is to streamline development of static webpages with the best of Webpack and related tools.

What is included?

  • Linting tools with sane defaults - stylelint and eslint
  • Hot reloading in development
  • Babel with env preset activated that takes care of polyfills, as well
  • JavaScript minification and dead code removal
  • SASS compilation, prefixing, and minification
  • A library for managing media breakpoints (media-blender)
  • Handlebars as a templating language (with helpers, layouts, and partials)
  • Support for routes (flat and nested build structure)

Getting started

Running this is really simple. You'll need this generator and yo installed.

npm install -g yo generator-infinitely-static
mkdir my-project
cd my-project
git init
yo infinitely-static

Note: After the project is initialized run npm install husky --save-dev.

Development

When Yeoman finishes you have a working project.

Running hot reload server

npm start

Production build

npm run build

Routes

Adding routes is also simple. In the root of the project you will find routes.json, containing the initial index route. The route configuration also supports nesting and template data.

{
  "index": { // points to the template file in app/templates/pages/index.hbs
    "route": "/", // don't forget the trailing slash
    "context": { // data that you can use in the page
      "user": {
        "name": "Super user"
      }
    }
  },
  "contact": {
    "route": "contact/me/" // will generate nested routes
    }
  }
}

Afterwards, in your templates you can use the included {{linkTo}} helper like this:

<a href="{{linkTo 'index'}}">Home</a>

And for the user data you can use the getDataAsString helper:

<h1>{{getDataAsString 'user.name'}}</h1>

If the data is simple (array, string, Number, etc.) it will be shown as usual, but if you reference an object you'll get a stringified JSON. But, remember, the data can be accessed directly by using the htmlWebpackPlugin.options object in the template:

<h1>{{htmlWebpackPlugin.options.context.user.name}}</h1>

That way you can iterate thru an array specified in the context using the build-in helpers.

License

The MIT License

© 2016 Infinum Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].