azat-co / react-quickly

Source code for React Quickly [Manning, 2017]: Painless Web Apps with React, JSX, Redux, and GraphQL 📕
http://reactquickly.co
MIT License
544 stars 422 forks source link

simplyfing npm run tasks #2

Closed gagoar closed 7 years ago

gagoar commented 7 years ago

👋
I saw the command line was getting too convoluted and repetitive due to babel path (and option) so I would like to suggest simplifying the command line a bit.

I think this would be helpful for further understanding of what files are being transformed in every command.

If adding sourceMaps or other available flags to babel were needed, it would be needed only in the build line.

I didn't do it in every package.json but I would be happy to do it If you like this change.

thanks!

azat-co commented 7 years ago

Nice trick. I included it in ch12 in npm scripts sidenote. Thanks!