• This repository has been archived on 05/Feb/2023
  • Stars
    star
    280
  • Rank 147,492 (Top 3 %)
  • Language
    CoffeeScript
  • Created over 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Boilerplate application for Brunch with Chaplin framework included.

Brunch with Chaplin

bwc-logo

This is HTML5 application, built with Brunch and Chaplin.

Installation

Clone this repo manually with git or use brunch new gh:paulmillr/brunch-with-chaplin

Getting started

  • Install (if you don't have them):
    • Node.js: brew install node on OS X
    • Brunch: npm install -g brunch
    • Bower: npm install -g bower
    • Brunch plugins and Bower dependencies: npm install & bower install
  • Run:
    • brunch watch --server — watches the project with continuous rebuild. This will also launch HTTP server with pushState.
    • brunch build --production — builds minified project for production
  • Learn:
    • public/ dir is fully auto-generated and served by HTTP server. Write your code in app/ dir.
    • Place static files you want to be copied from app/assets/ to public/.
    • Brunch site, Chaplin site

For newcomers

Brunch with Chaplin is a skeleton (boilerplate) for Brunch based on Chaplin architecture. Requires Brunch 1.7+.

Example application built with the skeleton: Ost.io.

This branch does not contain ready-to-use test environment. If you want take a look how tests can be used, see with-tests git branch.

Difference from Chaplin Boilerplate

Chaplin Boilerplate is a official boilerplate all for chaplin. This skeleton is almost the same, except a few changes:

  • Added Header.
  • CommonJS is used instead of AMD, because it's easier to use & debug.

Features

  • HTML5Boilerplate html & css are included.
  • CoffeeScript + Stylus + Handlebars as app languages (you can change this to anything you want)
  • Backbone as main MVC/MVP library, Chaplin as meta-framework.
  • Support of IE8 and up.
  • Cross-module communication using the Mediator and Publish/Subscribe patterns
  • Controllers for managing individual UI views
  • Rails-style routes which map URLs to controller actions
  • An application view as dispatcher and view manager
  • Extended model, view and collection classes to avoid repetition and enforce conventions
  • Strict memory management and object disposal
  • A collection with additional manipulation methods for smarter change events
  • A collection view for easy and intelligent list rendering

Authentication

If you build an application with authentication, there are some useful abstractions for it out there: https://github.com/chaplinjs/chaplin-auth.

License

The MIT license.

Copyright (c) 2012 Paul Miller (http://paulmillr.com/)

Copyright (c) 2012 Moviepilot GmbH, 9elements GmbH et al.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

brunch

🍴 Web applications made easy. Since 2011.
JavaScript
6,798
star
2

brunch-guide

A comprehensive guide to Brunch
558
star
3

terser-brunch

A javascript minifier for brunch files.
JavaScript
156
star
4

brunch.github.io

The website
SCSS
114
star
5

sass-brunch

Adds Sass / Scss support to brunch
JavaScript
97
star
6

auto-reload-brunch

Adds automatic browser reloading support to brunch.
JavaScript
88
star
7

todos

DEPRECATED. Todos app (backbone example) rewritten in brunch
JavaScript
70
star
8

postcss-brunch

Adds PostCSS support to brunch
JavaScript
53
star
9

twitter

Simple twitter client built with brunch.
JavaScript
48
star
10

dead-simple

Dead-simple brunch skeleton. No opinions, just empty dirs and minimal configs.
HTML
35
star
11

with-react

React skeleton with Babel/ES6 for Brunch
JavaScript
35
star
12

with-es6

Skeleton for modern JS apps using Babel for ES6
HTML
33
star
13

simple-js-skeleton

Simple Brunch with js skeleton app
JavaScript
31
star
14

simple-coffee-skeleton

Simple Brunch with coffee skeleton app. Unsupported, but still working.
CoffeeScript
31
star
15

jade-brunch

Adds Jade support to Brunch
JavaScript
30
star
16

with-redux

React/Redux skeleton with Babel/ES6 for Brunch
JavaScript
30
star
17

typescript-brunch

Adds TypeScript support to Brunch
JavaScript
27
star
18

hmr-brunch

Hot Module Replacement runtime for Brunch
JavaScript
25
star
19

appcache-brunch

Adds HTML5 App Cache generation to Brunch
CoffeeScript
24
star
20

coffee-script-brunch

Adds CoffeeScript support to Brunch
JavaScript
24
star
21

init-skeleton

A simple interface that clones or copies skeletons (base projects for your apps).
JavaScript
23
star
22

react-brunch

DEPRECATED. Adds React.js support to brunch.
JavaScript
23
star
23

stylus-brunch

Adds Stylus support to Brunch
JavaScript
21
star
24

handlebars-brunch

Adds Handlebars templates support to brunch
JavaScript
21
star
25

brunch-with-chaplin-js

JavaScript version of popular Chaplin skeleton for http://brunch.io
JavaScript
20
star
26

coffeelint-brunch

Adds Coffeelint linting support to Brunch.
JavaScript
18
star
27

clean-css-brunch

A CSS minifier for brunch stylesheets
JavaScript
18
star
28

less-brunch

Adds LESS support to Brunch
JavaScript
14
star
29

iced-coffee-script-brunch

DEPRECATED. Adds IcedCoffeeScript support to Brunch
JavaScript
13
star
30

javascript-brunch

DEPRECATED. Adds JavaScript support to Brunch
JavaScript
13
star
31

commonjs-require-definition

Common.js require definition.
JavaScript
13
star
32

brunch-guide-demos

A series of demo Brunch projects for an in-depth article about it
JavaScript
12
star
33

brunch-boilerplate-plugin

Boilerplate for brunch plugins. Simply clone the repo and change {{NAME}} and {{DESCRIPTION}} vars
JavaScript
12
star
34

skeletons

Registry of Brunch skeletons
12
star
35

eslint-brunch

Adds ESLint support to Brunch
JavaScript
11
star
36

css-brunch

DEPRECATED. Adds CSS support to Brunch
JavaScript
11
star
37

livescript-brunch

Adds LiveScript support to brunch
JavaScript
10
star
38

fusion

DEPRECATED. Fusion is a tool to merge multiple JavaScript templates into one namespaced template object. It also contains a watch mode to check for changes in the source directory.
JavaScript
10
star
39

nunjucks-brunch

Adds nunjucks support to Brunch
CoffeeScript
8
star
40

brunch-extensions

DEPRECATED. Was used in brunch 0.9 with old plugin API.
CoffeeScript
8
star
41

jshint-brunch

Adds JSHint linting support to Brunch.
JavaScript
7
star
42

eco-brunch

Adds eco templates support to brunch
JavaScript
4
star
43

deppack

Extract node modules to browser.
JavaScript
4
star
44

buble-brunch

Adds Bublé support to http://brunch.io.
JavaScript
3
star
45

ecc-example

Example app with Brunch
JavaScript
2
star
46

styl-brunch

Adds Styl CSS preprocessor support to brunch
JavaScript
2
star
47

node-browser-modules

JavaScript
1
star
48

eslint-config-brunch

JavaScript
1
star
49

serve-brunch

Simple webserver for Brunch.
JavaScript
1
star
50

skemata

An object structure and types validation library
JavaScript
1
star
51

with-cordova

A simple Brunch skeleton for Cordova
Ruby
1
star
52

roy-brunch

Adds Roy support to brunch
CoffeeScript
1
star