Skip to content

lukehedger/bayse

Repository files navigation

Bayse

Bayse is a straight-forward, ever-evolving, hyphen-loving project starter template. In its most basic form it is an HTML boilerplate with a CSS grid system and Browserify for JavaScript module loading. You've then got the option to add CoffeeScript and/or Myth - with Gulp as the build system. Oh, and Ractive for reactive DOM templating and Mout for modular JS utilities! It also has a built-in, synchronised server with BrowserSync.

Stack

Structure

  • CoffeScript

    • source CoffeeScript: edit .coffee files in coffee/ and run gulp to compile and watch
  • JS

    • compiled CoffeeScript
  • Myth

    • source CSS: edit .css files in myth/ and run gulp to compile and watch
    • includes responsive grid and other helpers in myth/lib/
  • CSS

    • compiled Myth CSS
  • Template

    • Ractive HTML templates

Installation

Volo

You can create a new Bayse project with VoloJS http://volojs.org/

npm install -g volo
volo create bayse-project lukehedger/bayse

Slush

For a custom Bayse, use the Slush generator http://slushjs.github.io/

npm install -g slush slush-bayse
mkdir bayse-project && cd $_
slush bayse <app-name>

Getting started

If you choose to use Gulp to compile the CoffeeScript and Myth files then run the following commands in the root of your project to get started:

  • Install Gulp: npm install -g gulp
  • Install dependencies: npm install --save-dev
  • Run Gulp tasks: gulp
  • Stop watching: ctrl + c

Server

When using Gulp, the gulp task will start a BrowserSync server at port 5000 http://localhost:5000. You can configure BrowserSync options within gulpfile.js.

PageSpeed

You can analyse your site with PageSpeed Insights by running gulp analyse.

Release

Build release files by running gulp release

TODO

  • Could add Travis CI and Divshot hosting/deployment to stack

About

A lightweight frontend framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published