Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (40 sloc) 1.33 KB
fs = require 'fs'
path = require 'path'
# See docs at http://brunch.readthedocs.org/en/latest/config.html.
exports.config =
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/handlebars-1.0.0.beta.6.js',
'vendor/scripts/ember-latest.js',
'vendor/scripts/ember-data-latest.js',
'vendor/scripts/bootstrap.js'
]
stylesheets:
defaultExtension: 'css'
joinTo: 'stylesheets/app.css'
order:
before: ['vendor/styles/bootstrap.css']
templates:
precompile: true
defaultExtension: 'hbs'
joinTo: 'javascripts/app.js' : /^app/
server:
#path: 'server.coffee'
port: 3333
base: '/'
run: no
generators:
model: (name)->
fs.readFileSync(path.join(__dirname, 'generators', 'model.coffee')).toString().replace("\#{name}", name)
view: (name)->
fs.readFileSync(path.join(__dirname, 'generators', 'view.coffee')).toString().replace("\#{name}", name)
controller: (name)->
fs.readFileSync(path.join(__dirname, 'generators', 'controller.coffee')).toString().replace("\#{name}", name)