question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onchange 'src/**/*.{js,jsx}' -v -w -- babel-node src/index.jsx > dist/index.html

See original GitHub issue

How do you get the output of the command you want to run in a file?

onchange 'src/**/*.{js,jsx}' -v -w -- babel-node src/index.jsx > dist/index.html

The above will get the output from onchange instead of babel-node src/index.jsx

Tried onchange 'src/**/*.{js,jsx}' -v -w -- (babel-node src/index.jsx > dist/index.html) but gave me a error

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
blakeembreycommented, Aug 25, 2016

I understand that, but I was asking @gertcuykens what his use-case was and what exactly wasn’t working. It wasn’t clear from the original post whether literally nothing worked, or it just didn’t work as expected. For example, the output of onchange should be identical to babel-node, which is why I asked for more info.

On the -o feature, I love it and would love to add it. I definitely don’t have a problem with it and understand the use-case.

1reaction
fregantecommented, Aug 25, 2016

@gertcuykens if it’s a node app you can also use npm scripts instead of creating a separate file

Read more comments on GitHub >

github_iconTop Results From Across the Web

React.js: Identifying different inputs with one onChange handler
I suggest sticking to standard HTML attributes like name on input Elements to identify your inputs. Also, you don't need to keep "total"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found