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

Support more flags in devtoolrc #116

Open
ngryman opened this issue Mar 28, 2017 · 0 comments
Open

Support more flags in devtoolrc #116

ngryman opened this issue Mar 28, 2017 · 0 comments

Comments

@ngryman
Copy link

ngryman commented Mar 28, 2017

Hey,

Context

I'm trying to debug my tests using ava and devtool.
For my project, I've managed to do it like so: NODE_ENV=test devtool node_modules/ava/profile.js test/dfs-pre.js -r babel-register

Note that I need to put devtool flags at the end as profile.js reads arguments at specific positions. That said I use this command line in a npm script to which I pass the file I want to debug.

package.json

{
  "scripts": {
    "debugfile": "NODE_ENV=test devtool node_modules/ava/profile.js -r babel-register"
  }
}

cli

$ yarn debugfile test/dfs-pre.js

result

NODE_ENV=test devtool node_modules/ava/profile.js -r babel-register test/dfs-pre.js

Problem

The problem is that I need my test/foo.js to be the 3rd argument. The flags of devtool conflict with this.

Proposal

In order to be able to start devtool without any flags, it would be super nice to be able to make them available in .devtoolrc. The most urgent for me would be require.

Thanks!

@ngryman ngryman changed the title Add require option to config Support more flags in devtoolrc Mar 28, 2017
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