Show HN: Reactpack – one command to build your React front end
github.com
github.com
would love more "explicit (in code) best practices" if possible even a "recommended default approach"
i understand that a full "framework" is not the way to for the community. but a few default standards would be good as guidance for newcomers and to manage expectations of coders coming into existing projects
So, it can be extended or changed as the whims of the JS community migrate between tools and practices.
There's also rwb from Pete Hunt [1].
EDIT: Removed comment about 'standard'. Ain't so bad anymore apparently.
What do you mean? I've heard people say that a couple times but they never really elaborated. Do people love their semicolons that much? Are people offended that it's called "standard"? Or something else?
> They are specifically working on it according to this React.js Conf talk
This is very exciting. I prefer React over Vue, but one of the things I love about Vue is vue-cli[0]. Something similar, if not better, for React, would be greatly appreciated.
[0]: https://camo.githubusercontent.com/e06d9d72eecca61c1ba39fdf1...
Meanwhile: Do what you've been doing so far[1] and... stay calm. Stop worrying.
[1] The assumption being that it works for you.
EDIT: Almost everything you hear about in the start of the hype cycle is NOT going to go anywhere. Conclusion: Chill.
The status quo already is to keep on using what we're using. That doesn't need to be said. But if it wasn't for our endless search for nirvana, people would be stuck on Vim and 4-space tabs.
No developer left behind.
I hope to see more tools in this vein emerge from the JavaScript ecosystem - tools that aren't afraid to make some well-reasoned assumptions for the sake of a more minimal interface. (It seems like every tool nowadays wants you to put another dotfile or garbage.json at the root of your project.)
Update: I just realised that you can bypass the linter and the postcss. I am sorry OP, looks like I'm a lazy jackass.
1) actually making Hello, World pages that will go anywhere near a user
2) Using React in Hello, World pages (which they don't make)
3) Using Reactpack to build the React-based Hello World pages they aren't making
1) Whatever you're making, you're starting out with 177 modules minimum if you use React + Reactpack.
2) See 1.
Moreover, you can presumably globally install this, so it can cover every React-based project you need to build.
What is an acceptable number of modules?
My Visual Studio install is easily at least 4GB, yet this doesn't matter to the end user as the packages produced are about 6MB total
Another point worth mentioning is using react-icons individually (svg based), same for component libraries where you are only using a few components... tends to work out much lighter. Also, if you do use bootstrap as a base css library, work from the source instead of monkey patching the .css output.
command:
npm i --save-dev reactpack
node version: v0.12.6
npm version 2.11.2
uname -a Linux gentoo-1 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz GenuineIntel GNU/LinuxI need to move a similar project from Babel 5 to Babel 6 soon and tried manually deduplicating Babel 6 preset dependencies for better npm2 support [1] - doing so reduced the size of node_modules/ from ~120MB to ~6MB!
https://github.com/insin/deduped-babel-presets#babel-6-prese...
S E M I C O L O N S
E
M
I
C
O
L
O
N
S