Create-react-app: Let start-react-app provide a simple cli for common tasks?

Created on 21 Jul 2016  路  9Comments  路  Source: facebook/create-react-app

Inspired by motion. It's very handy that I can type things into npm start to do some common tasks. Vorpal seems like a great tool for this.

Tasks that i can think of:

  • o, open: open in browser
  • e, edit: open project root in an editor (atom? 馃槂)
  • v, verbose: show/hide all webpack logs

Most helpful comment

@gaearon cool i'm on it

All 9 comments

o is already done by default fyi ;)

Anybody wants to do the AppleScript thing before we release?
https://github.com/facebookincubator/create-react-app/issues/38

It's a little odd if the available commands are

npm start
npm run build
npm run eject
npm start e

Just because I would expect, if this project provides "n different scripts", for them each to be run in a similar way.

Ah, sorry I didn't make it clear @lacker. npm start will be a long-running session and I'm suggesting that it could provide a REPL-like cli like
screen shot 2016-07-21 at 1 36 01 pm

Wow, this is pretty cool, I like that.

@gaearon cool i'm on it

Feel free to ask me any questions on implementing Vorpal :+1:

Thanks @dthree!

Closing for now as no specific proposals that seem worth implementing.

Was this page helpful?
0 / 5 - 0 ratings