An open API service indexing awesome lists of open source software.

https://github.com/appleboy/backbone-template-engine

Backbone template engine with CoffeeScript, Compass, RequireJS.
https://github.com/appleboy/backbone-template-engine

Last synced: 3 months ago
JSON representation

Backbone template engine with CoffeeScript, Compass, RequireJS.

Awesome Lists containing this project

README

          

# Backbone-Template-Engine

[![Build Status](https://travis-ci.org/appleboy/backbone-template-engine.png)](http://travis-ci.org/appleboy/backbone-template-engine) [![Build Status](https://drone.io/github.com/appleboy/backbone-template-engine/status.png)](https://drone.io/github.com/appleboy/backbone-template-engine/latest)

## Features

* The latest [html5boilerplate.com](http://html5boilerplate.com/) source code.
* Includes [Normalize.scss](https://github.com/appleboy/normalize.scss) v3.0.x and v1.1.x.
* The latest [jQuery](http://jquery.com/) and [Modernizr](http://modernizr.com/) via [Bower](http://bower.io/) package manager.
* Support [CoffeeScript](http://coffeescript.org/), [RequireJS](http://requirejs.org/), [Compass](http://compass-style.org/), html minification (via [html-minifier](http://kangax.github.io/html-minifier/)).
* Support [browser-sync](http://browsersync.io) Keep multiple browsers & devices in sync when building websites.
* Support JavaScript test framework [Mocha](http://mochajs.org/)
* Support The streaming build system [GulpJS](http://gulpjs.com)
* Support [Backbone.js](http://backbonejs.org) MV* Framework
* Support [Handlebars.js](http://handlebarsjs.com) Mustache templating language

## Installation

Please install node.js first (>0.10) and [bower](http://bower.io/) package manager

```bash
$ npm install -g bower
$ npm install && bower install
```

Start App

```bash
$ npm start
```

Excuting above command will output the following message.

```
> backbone-template-engine@1.0.0 start /home/xxxxx/backbone-template-engine
> gulp

[10:44:39] Requiring external module coffee-script/register
[10:44:40] Using gulpfile /home/xxxxx/backbone-template-engine/gulpfile.coffee
[10:44:40] Starting 'default'...
[10:44:40] Starting 'coffee'...
[10:44:40] Starting 'compass'...
[10:44:40] Finished 'coffee' after 156 ms
directory app/assets/css/
create app/assets/css/main.css

[10:44:41] Finished 'compass' after 565 ms
[10:44:41] Starting 'connect:app'...
[10:44:41] Finished 'connect:app' after 18 ms
[10:44:41] Finished 'default' after 627 ms
[BS] Local: >>> http://localhost:3001
[BS] External: >>> http://xxx.xxx.xxx.xxx:3001
[BS] Serving files from: app
```

Open browser like chrome or firefox and enter http://localhost:1337 URL.

## Release

Execute the following command will generate `dist` folder.

```bash
$ npm run release
```

## Test

To test release process by following command.

```bash
$ npm test
```