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

Parse arbritary glob parameters #3

Open
franciscolourenco opened this issue Feb 17, 2016 · 1 comment
Open

Parse arbritary glob parameters #3

franciscolourenco opened this issue Feb 17, 2016 · 1 comment

Comments

@franciscolourenco
Copy link

The idea is to find all the * inside a string and replace the * with the file name like it is done for the --outfile paramenter.

This is what I'm trying to do:

 globify -t coffeeify 'coffee/*.coffee' --debug -p [minifyify --map 'js/*.map.json' --output 'js/*.map.json'] --outfile 'js/*.js'

But results in this:

browserify -t coffeeify coffee/content-gist.coffee --debug -p [minifyify --map js/*.map.json --output js/*.map.json] --outfile js/content-gist.js
browserify -t coffeeify coffee/content-import.coffee --debug -p [minifyify --map js/*.map.json --output js/*.map.json] --outfile js/content-import.js
browserify -t coffeeify coffee/eventPage.coffee --debug -p [minifyify --map js/*.map.json --output js/*.map.json] --outfile js/eventPage.js
browserify -t coffeeify coffee/options.coffee --debug -p [minifyify --map js/*.map.json --output js/*.map.json] --outfile js/options.js
browserify -t coffeeify coffee/test.coffee --debug -p [minifyify --map js/*.map.json --output js/*.map.json] --outfile js/test.js

If you have any other suggestions on how to achieve multiple file uglify with working coffeescript source maps please advise.

@JamesMessinger
Copy link
Member

This is probably do-able, but very tricky, since normal (non-glob) arguments could also contain * characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants