Skip to content

Instantly share code, notes, and snippets.

@stvnmntjy
Created July 24, 2014 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stvnmntjy/5e5b91dc79a6dfd94768 to your computer and use it in GitHub Desktop.
Save stvnmntjy/5e5b91dc79a6dfd94768 to your computer and use it in GitHub Desktop.
_ = require 'lodash'
exports.bar = -> _.first [1, 2, 3]
console.log 'wired up!'
module.exports = (grunt) ->
grunt.initConfig
browserify:
options:
require: ['lodash']
bundleOptions:
debug: true
dev:
options:
transform: ['minifyify']
# XXX uncomment next line to test other transform
#transform: ['coffeeify']
files: [
{
src: ['foo.coffee']
dest: './public/bundle.js'
nonull: true
}
]
clean: ['./public']
'node-inspector':
dev: {}
require('load-grunt-tasks') grunt
grunt.registerTask 'dev', [
'clean'
'browserify'
]
return
{
"name": "minifyify-gist",
"version": "1.0.0",
"description": "test minifyify as a transform-er with grunt-browserify",
"engines": {
"node": "0.11.13"
},
"devDependencies": {
"coffeeify": "^0.7.0",
"grunt": "^0.4.5",
"grunt-browserify": "^2.1.3",
"grunt-contrib-clean": "^0.5.0",
"grunt-node-inspector": "^0.1.5",
"load-grunt-tasks": "^0.6.0",
"minifyify": "^3.0.12"
},
"dependencies": {
"lodash": "^2.4.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment