coffeebar

A CoffeeScript, Require and Angular.js boilerplate

Module License: MIT

Added by: Sam Deering

GitHub

Repository

brunolazzaro/coffeebar

Stats

Stars: 4

Watchers: 4

Forks: 0

Module Description

Coffeebar (ノ◕ヮ◕)ノ*:・゚✧

What's in here?

  • CoffeeScript
  • Require.js
  • Angular.js

How?

main.coffee is the main file that require.js uses when not compiled. This sets ups paths and some other options and finally calls the bootstrap. bootstrap.coffee initializes angular and binds it to the document. app.coffee where your app logic/init/whatever should go.

Some notes: The default app name is 'App', you should change that both in the bootstrap.coffee and app.coffee files.

Grunt

Before starting, run npm install and be sure to have grunt-cli installed (if not, use npm install grunt-cli -g)

Then you can either do grunt js, grunt css, grunt watch or just grunt.

This project uses SASS for CSS. Grunt is alredy set up to grab the main.scss file and output both minified and unminified versions to the css folder.

JSHint has all the default options except one addtion, boss:true to prevent the error message created by CoffeeScript's implicit return statements.

There's a grunt build command that will create an index-dist.html file that will have a compiled version of your main.coffee file and all it's dependencies compiled instead of the regular one. You should modify your webserver to serve this as the index file (or rename it).

TODOs

  • Better build task. It should create a dist folder with only the css, js and html files (no source files).
  • Modular Controllers in order to use them as better example of rjs module usage with an angular app.

Module stats last updated: 2015-06-08 00:34:06

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!