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

run anything else than a rename task #3

Closed
1000i100 opened this issue Aug 6, 2020 · 1 comment
Closed

run anything else than a rename task #3

1000i100 opened this issue Aug 6, 2020 · 1 comment

Comments

@1000i100
Copy link

1000i100 commented Aug 6, 2020

Like i said here : fahad19/glob-run#13
I would like to do something like :

bame 'src/(**/*).mjs' 'cp src/$1.mjs dest/$1.esm.js'
bame 'src/(**/)(*).mjs' 'rollup src/$1$2.mjs --format umd --file dist/$1$2.js --name $2 --inlineDynamicImports'
bame 'src/(**/*).mjs' 'terser dist/$1.js > dist/$1.min.js'

is it possible with bame ? with something else you know ?
should bame handle this ? or an other project ?

@CorentinTh
Copy link
Owner

Hi @1000i100

Thank you for your interest in bame.
Unfortunately this tool is aimed only to rename files (bame = batch + rename).
I currently don’t know any js cli or tool that can do what you’re trying to do, but on a linux based os, you can simply do your things using the for of even find command, eg:

 for f in src/*.mjs; do echo $f; done

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

2 participants