cbosco / coffee-purist-brunch

Brunch with spine, LESS, eco, and mocha
4 stars 0 forks source link

Coffee purist brunch

This is a simple CoffeeScript-driven skeleton for Brunch based largely on [@damiencaselli]()'s spine-on-brunch.

Main languages are CoffeeScript, LESS and eco templates. Backbone.js, the most common Brunch framework, is replaced with the simplified-for-CoffeeScript spine framework. (Underscore is also dropped).

Getting started

Clone the repo and run npm install & brunch build. See more info on the official site

Overview

config.coffee
README.md
/app/
  /assets/
    index.html
    images/
  /lib/
  models/
  styles/
  views/
  application.coffee
/test/
  functional/
  unit/
/vendor/
  scripts/
    common/
      jquery.js
      console-helper.js  
    spine/
      spine.js
      lib/ajax.js
      lib/local.js
      lib/manager.js
      lib/route.js
      lib/tmpl.js
  styles/
    normalize.css
    helpers.css

This all will generate public/ (by default) directory when brunch build or brunch watch is executed.

Tests

This skeleton runs its tests headlessly with node and coffeescript directly, unlike other skeletons, which follow the Brunch convention which relies on output JavaScript to run its tests (public directory). Testing is relatively new to Brunch.

With this skeleton, run npm test instead of brunch test or npm start in addition to brunch watch in order to automatically run tests. This runs the tests directly on the coffeescript files in test/ and utilizes NPM-installed test libraries instead of static ones from test/vendor/ as other skeletons do.

Other

Versions of software the skeleton uses:

The license is public domain. Use it however you want.