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

Add support for .traceurrc.js files #2101

Open
arv opened this issue Apr 2, 2016 · 2 comments
Open

Add support for .traceurrc.js files #2101

arv opened this issue Apr 2, 2016 · 2 comments

Comments

@arv
Copy link
Collaborator

arv commented Apr 2, 2016

It would be nice to support having a .rc file which would provide the options to use when compiling.

This would be used when compiling using the command line and it would look in the same directory as the binary was invoked in a search parent directories if not there.

The format for the rc file would be a js file with a default exported object:

// .traceurrc.js
module.exports = {
  modules: 'commonjs',
  classes: 'parse',
  ...
};
@arv arv added the enhancement label Apr 2, 2016
@arv
Copy link
Collaborator Author

arv commented Apr 2, 2016

@johnjbarton

@johnjbarton
Copy link
Contributor

Are you thinking this would be optional or it would be required and would define the defaults?

My main concern is the extra mystery if you get an unexpected error and don't know it was a side effect of an option set in a hidden file. But of course hidden files is how we spell 'convenience' ;-)

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