Skip to content

Instantly share code, notes, and snippets.

@kgcreative
Last active November 4, 2016 03:35
Show Gist options
  • Save kgcreative/ce396ce58e096f0c52845e3038d2b5b1 to your computer and use it in GitHub Desktop.
Save kgcreative/ce396ce58e096f0c52845e3038d2b5b1 to your computer and use it in GitHub Desktop.
{
"scripts": {
"start": "brunch watch --server --port 3333",
"build": "brunch build --production"
},
"dependencies": {
"fastclick": "^1.0.6",
"jquery": "^3.1.1",
"normalize.css": "^5.0.0"
},
"devDependencies": {
"auto-reload-brunch": "^2.0.5",
"autoprefixer": "^6.5.1",
"bourbon": "^=5.0.0-beta.7",
"bourbon-neat": "^=2.0.0-beta.1",
"brunch": "^2.9.1",
"brunch-static": "^1.2.1",
"clean-css-brunch": "^2.0.0",
"coffee-script-brunch": "^2.1.0",
"font-awesome": "^4.6.3",
"html-brunch-static": "^1.3.1",
"javascript-brunch": "^2.0.0",
"postcss-brunch": "^2.0.5",
"sass-brunch": "^2.7.0",
"uglify-js-brunch": "^2.0.0"
},
"license": "MIT"
}
{
"scripts": {
"start": "brunch watch --server --port 3333",
"build": "brunch build --production"
},
"dependencies": {
"fastclick": "^1.0.6",
"jquery": "^3.1.1",
"normalize.css": "^5.0.0"
},
"devDependencies": {
"auto-reload-brunch": "^2.0.5",
"autoprefixer": "^6.5.1",
"bourbon": "^=5.0.0-beta.7",
"bourbon-neat": "^=2.0.0-beta.1",
"brunch": "brunch/brunch#ee73ef0f92add24b46c4478fa3f0b5bc206bbe7d",
"brunch-static": "^1.2.1",
"clean-css-brunch": "^2.0.0",
"coffee-script-brunch": "^2.1.0",
"font-awesome": "^4.6.3",
"html-brunch-static": "^1.3.1",
"javascript-brunch": "^2.0.0",
"postcss-brunch": "brunch/postcss-brunch#07961d39cecfbc9aa02b48259bb551e56defd4e8",
"sass-brunch": "^2.7.0",
"uglify-js-brunch": "^2.0.0"
},
"license": "MIT"
}
path = require 'path'
exports.config =
# See http://brunch.io for documentation.
npm:
enabled: true
# register $ and jQuery as a global so vendor plugins can run
globals:
'$': 'jquery'
'jQuery': 'jquery'
files:
javascripts:
joinTo:
# all BUT app code - 'vendor/', 'node_modules/', etc
'js/vendor.js': /^(?!app)/
# all code from 'app/'
'js/app.js': /^app/
stylesheets: joinTo: 'css/style.css'
plugins:
coffeescript:
bare: true
sass:
mode: 'native'
options:
includePaths: [
'node_modules/bourbon/core'
, 'node_modules/bourbon-neat/core'
, 'node_modules/normalize.css'
, 'node_modules/font-awesome/scss'
]
# Set the precision for arithmetic operations.
precision: 8
# To enable embedded source maps, pass the option `sourceMapEmbed`. This is only supported in _native_ mode; Ruby Sass isn't supported.
sourceMapEmbed: true
postcss:
processors:
require('autoprefixer')(['defaults', '> 1%'])
static:
pathTransform: (f) -> path.relative 'pages', f
processors: [
require('html-brunch-static') {
handlebars:
enableProcessor: true,
helpers: {
ifEq: (a,b,opts) -> if a is b then opts.fn(this) else opts.inverse(this)
ifEqDebug: (a,b,opts) -> console.log "a: '" + a + "'"; console.log "b: '" + b + "'"; if a is b then opts.fn(this) else opts.inverse(this)
log: (msg...) -> console.log msg
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment