lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 74 forks source link

Fly.rename unfound #196

Closed hzlmn closed 8 years ago

hzlmn commented 8 years ago

From examples

exports.default = function * () {
    yield this
        .source('hello')
        .rename('bye')
        .target('')
}

Did you drop this method, or how renaming should be done?

Also what if I want to specify target file instead of folder like

exports.default = function * () {
    yield this
        .source('src/index.js')
        .transform()
        .target('dist/changed.js') // here I want to rename file after transform
}

@lukeed :question:

lukeed commented 8 years ago

Hey, rename hasn't been in Fly since before I joined the project.

Instead, you use concat. It's probably not the most sensible api but it does what it's supposed to.

If you concat a single (or glob) file before target, then that becomes the destination filename.

hzlmn commented 8 years ago

@lukeed Thanks