Skip to content
A skeleton for JavaScript and / or Backbone applications. Built on top of Brunch.io for assembly, minification and convenience
Find file
Pull request Compare This branch is 28 commits behind damassi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
test
vendor
.gitignore
README.md
config.coffee
package.json

README.md

Javascript App Skeleton for use with Brunch

Main languages are JavaScript, Stylus for CSS pre-processing and Handlebars for templating. Also included is Backbone.Mediator for implementing Pub/Sub patterns.

Installation

Run brunch new <app> -s https://github.com/damassi/Javascript-App-Skeleton & brunch build. To continually watch for changes, use brunch watch. See more info on the official site

Overview

config.coffee
README.md
/app/
  /assets/
    index.html
    images/
  styles/
  helpers/
  config/
  events/
  utils/
  routers/
  models/
  /views/
    templates/

  Application.js
  initialize.js
/test/
/vendor/
  scripts/
    backbone.js
    jquery.js
    console-helper.js
    underscore.js
  styles/
    normalize.css
    helpers.css
  • config.coffee contains configuration of your app. You can set plugins / languages that would be used here.
  • app/assets contains images / static files. Contents of the directory would be copied to build/ without change. Other app/ directories could contain files that would be compiled. Languages, that compile to JS (coffeescript, roy etc.) or js files and located in app are automatically wrapped in module closure so they can be loaded by require('module/location').
  • app/models & app/views contain base classes your app should inherit from.
  • test/ contains feature & unit tests.
  • vendor/ contains all third-party code. The code wouldn’t be wrapped in modules, it would be loaded instantly instead.

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

Other

Versions of software the skeleton uses:

  • jQuery 1.7.2
  • Backbone 0.9.1
  • Underscore 1.3.3
  • HTML5Boilerplate 3.0.3

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

Something went wrong with that request. Please try again.