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.

Chore/DX: move from make to JS-based taskrunner

See original GitHub issue

Given the higher barrier for contribution for Windows users introduced by us using make, we should explore moving to a JS-based taskrunner. WSL should be the silver bullet for this, but I haven’t been able to get lerna bootstrap run in WSL (and it looks like I’m not the only one).

My initial exploration is here, but some tests are failing and I think it’s due to the fact that shelljs doesn’t preserve colors in the output of running shell commands.

Some other alternatives:

  • Modify the current shelljs PR and switch out shelljs.exec() for something like node-cross-spawn or execa.
  • Go all in on Gulp
  • Use something like Just

Would love to hear others’ opinions on this! 😃

Follow-up question:

We use a lot of shell scripts in the dev build process that don’t work natively in Windows. Should we also rewrite these in JS?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thorn0commented, Dec 23, 2019
1reaction
TomasHubelbauercommented, Dec 18, 2019

We use a lot of shell scripts in the dev build process that don’t work natively in Windows. Should we also rewrite these in JS?

Yes, please! I’m not partial about them being in JS, but they should IMO be cross-platform, so there are other options like PowerShell or something. But JS feels like the best choice given the project itself is written in it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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