Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reborn, repurpose #8

Open
tunnckoCore opened this issue Apr 27, 2018 · 0 comments
Open

Reborn, repurpose #8

tunnckoCore opened this issue Apr 27, 2018 · 0 comments

Comments

@tunnckoCore
Copy link
Member

tunnckoCore commented Apr 27, 2018

Since we are in 2018, and there is a lot stable Nodejs releases and other good packages we can change the prupose for this one.

So, it will be API/CLI that gets (glob patterns, cmd to execute on each).
So then we can implement something like this "copy src files to dist and call given command each found file, e.g. rename/change extension and etc". Will give a placeholders to the scope of the command such as basename, filename, extname and etc.

Example

exec-cmd src/**/*.js 'mv src/[[filename]] dist/[[dirname]]/[[basename]].js.flow'

Currently this can be done with Bash like that

cp -R src dist && rename .js .js.flow dist/**/*.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant