/old-knxhx.github.io

Old repository for Knoxville City Hackathon Website. It is here for archive purposes

Primary LanguageHTMLGNU Lesser General Public License v3.0LGPL-3.0

Knoxville City Hackathon

Intro

Everything is build to compile down to static assets. This is not a JS web app. We're just leveraging Node and some build tools to create the static assets that will be served.

Quick Overview

  • BrowserSync with CSS Streaming
  • Webpack Modules Bundling
  • Babel Transpiling es2015+ to es5
  • PostCSS with some extra goodies
  • SVG Sprite generation (not like old-school image sprites)

Getting started

Note: While instruction are written with yarn you can also use the npm equivalents. See: https://yarnpkg.com/lang/en/docs/migrating-from-npm/

  • Use yarn install to install npm packages
  • yarn build to run all tasks
  • yarn start to actively developer with livereload & css injection via BrowserSync
  • yarn prod to run all tasks with production ready files (minified, etc)

Under the hood

Templating

Styles

PostCSS support with a few additions, see postcss.config.css

Scripts

SVGS

<!-- Example of using icon from SVG Sprite-->
<svg role="img">
  <use xlink:href="#icon-user"></use>
</svg>