replace-ext plugin for Fly.
Check out the documentation to see the available options.
npm install -D fly-replace-ext
export build = function* () {
yield this
.source("src/**/*.coffee")
.coffee()
.replaceExtension('.js')
.target("dist/")
}
MIT © Dmitriy Kharchenko et al