Created
July 24, 2014 23:34
-
-
Save stvnmntjy/5e5b91dc79a6dfd94768 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ = require 'lodash' | |
exports.bar = -> _.first [1, 2, 3] | |
console.log 'wired up!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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