ZeroOmega/omega-target/grunt/browserify.coffee

29 lines
684 B
CoffeeScript
Raw Normal View History

2014-09-20 11:49:04 -04:00
module.exports =
index:
files:
'index.js': 'index.coffee'
options:
transform: ['coffeeify']
exclude: ['bluebird', 'jsondiffpatch', 'omega-pac']
browserifyOptions:
extensions: '.coffee'
builtins: []
standalone: 'index.coffee'
debug: true
browser:
files:
'omega_target.min.js': 'index.coffee'
options:
alias: [
'./index.coffee:OmegaTarget'
]
transform: ['coffeeify']
plugin:
if process.env.BUILD == 'release'
[['minifyify', {map: false}]]
else
[]
browserifyOptions:
extensions: '.coffee'
standalone: 'OmegaTarget'