Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit c89528bd3584212aa552d30befa8a34c9161b526 @damiencaselli committed May 28, 2012
@@ -0,0 +1,2 @@
+node_modules
+public/*
@@ -0,0 +1,26 @@
+# Numerous always-ignore extensions
+*.diff
+*.err
+*.orig
+*.log
+*.rej
+*.swo
+*.swp
+*.vi
+*~
+*.sass-cache
+
+# OS or Editor folders
+.DS_Store
+.cache
+.project
+.settings
+.tmproj
+nbproject
+Thumbs.db
+
+# NPM packages folder.
+node_modules/
+
+# Brunch folder for temporary files.
+tmp/
@@ -0,0 +1,68 @@
+# Brunch with coffee
+This is a simple coffee skeleton for [Brunch](http://brunch.io/).
+
+Main languages are [CoffeeScript](http://coffeescript.org/),
+[Stylus](http://learnboost.github.com/stylus/) and
+[Handlebars](http://handlebarsjs.com/).
+
+## Getting started
+
+Clone the repo and run `npm install` & `brunch build`.
+See more info on the [official site](http://brunch.io)
+
+## Overview
+
+ config.coffee
+ README.md
+ /app/
+ /assets/
+ index.html
+ images/
+ /lib/
+ models/
+ styles/
+ views/
+ application.coffee
+ /test/
+ functional/
+ unit/
+ /vendor/
+ scripts/
+ jquery.js
+ console-helper.js
+ underscore.js
+ spine.js
+ spine/lib/ajax.js
+ spine/lib/local.js
+ spine/lib/manager.js
+ spine/lib/route.js
+ spine/lib/tmpl.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
+* Spine 1.0.6
+* Underscore 1.3.3
+* HTML5Boilerplate 3.0.3
+
+The license is [public domain](http://creativecommons.org/publicdomain/zero/1.0/).
+Use it however you want.
@@ -0,0 +1,7 @@
+
+class App extends Spine.Controller
+ constructor: ->
+ super
+ @log "Well, hello there."
+
+module.exports = App
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset=utf-8>
+ <title>App</title>
+ <link rel="stylesheet" href="/stylesheets/app.css" type="text/css">
+ <script src="/javascripts/vendor.js"></script>
+ <script src="/javascripts/app.js"></script>
+ <script>
+ var exports = this;
+ $(function(){
+ var App = require("application");
+ exports.app = new App({el: $("body")});
+ });
+ </script>
+</head>
+<body></body>
+</html>
No changes.
No changes.
@@ -0,0 +1,6 @@
+
+p
+ font-size 1.2em
+ font-weight bold
+ margin 0
+ padding 1em
@@ -0,0 +1,8 @@
+@import 'common'
+
+html
+ font-size 62.5%
+
+body
+ color #333
+ font 1.2em Helvetica, Arial
No changes.
@@ -0,0 +1,28 @@
+exports.config =
+ # See docs at http://brunch.readthedocs.org/en/latest/config.html.
+ files:
+ javascripts:
+ defaultExtension: 'coffee'
+ joinTo:
+ 'javascripts/app.js': /^app/
+ 'javascripts/vendor.js': /^vendor/
+ order:
+ before: [
+ 'vendor/scripts/console-helper.js',
+ 'vendor/scripts/jquery-1.7.2.js',
+ 'vendor/scripts/underscore-1.3.3.js',
+ 'vendor/scripts/spine',
+ 'vendor/scripts/spine/lib/local',
+ 'vendor/scripts/spine/lib/ajax',
+ 'vendor/scripts/spine/lib/manager',
+ 'vendor/scripts/spine/lib/route',
+ 'vendor/scripts/spine/lib/tmpl'
+ ]
+
+ stylesheets:
+ defaultExtension: 'styl'
+ joinTo: 'stylesheets/app.css'
+ order:
+ before: ['vendor/styles/normalize.css']
+ after: ['vendor/styles/helpers.css']
+
@@ -0,0 +1,33 @@
+{
+ "author": "Your Name",
+ "name": "package-name",
+ "description": "Package description",
+ "version": "0.0.1",
+ "homepage": "",
+ "repository": {
+ "type": "git",
+ "url": ""
+ },
+ "engines": {
+ "node": "~0.6.10"
+ },
+ "scripts": {
+ "start": "brunch watch --server"
+ },
+ "dependencies": {
+ "javascript-brunch": "> 1.0 < 1.3",
+ "coffee-script-brunch": "> 1.0 < 1.3",
+
+ "css-brunch": "> 1.0 < 1.3",
+ "stylus-brunch": "> 1.0 < 1.3",
+
+ "handlebars-brunch": "> 1.0 < 1.3",
+
+ "uglify-js-brunch": "> 1.0 < 1.3",
+ "clean-css-brunch": "> 1.0 < 1.3"
+ },
+ "devDependencies": {
+ "mocha": "0.14.0",
+ "expect.js": "0.1.2"
+ }
+}
@@ -0,0 +1 @@
+# Write your [mocha](http://visionmedia.github.com/mocha/) specs here.
@@ -0,0 +1,11 @@
+// Make it safe to do console.log() always.
+(function (con) {
+ var method;
+ var dummy = function() {};
+ var methods = ('assert,count,debug,dir,dirxml,error,exception,group,' +
+ 'groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,' +
+ 'time,timeEnd,trace,warn').split(',');
+ while (method = methods.pop()) {
+ con[method] = con[method] || dummy;
+ }
+})(window.console = window.console || {});
Oops, something went wrong.

0 comments on commit c89528b

Please sign in to comment.