Python
12
Вклад в тег
bundler = ->
browserify
entries: [ path.src.coffee ]
extensions: ['.coffee', '.js']
debug : true
.transform 'coffeeify'
.transform 'deamdify'
.bundle()
.on 'error', handleError
.pipe source 'main.js'
.pipe gulp.dest path.build.js
.pipe reload
stream: true
gulp.task 'coffee', ->
gulp.src path.src.coffee, read: false
.pipe plumber
errorHandler: handleError
.pipe tap bundler
define [], ->
"My string"
define ['./partials/extra'], (extra) ->
console.log "Returned: #{extra}"