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.

"Remove" unneeded code for stateless boilerplate

See original GitHub issue

Description

  • Type: Enhancement
  • Related Issue: #137 #156

Enhancement

Was looking an create-react-app and was inspired by the No Lock-In idea.

Problem There is still a lot to strip out when cloning this boilerplate.

The code that sits in this repository are useful examples of how one would implement certain features with the best practices - we strive for that.

However, I still find myself stripping out a lot of code I don’t need.

We’ve already done a decent job with abstracting out the DB connection in https://github.com/choonkending/react-webpack-node/pull/176 and https://github.com/choonkending/react-webpack-node/pull/190

Suggested enhancement Have an npm run stateless that:

  • Runsrimraf to remove all the unneeded:
    • DB related and controller files - leaving only the server-rendering bit left
    • Front end code that gets in the way of development (this will involve refactoring a bit of our component code perhaps)

If this gets shipped, and it works swimmingly well, I reckon we can bump our version to 2.0! Yay!

Pros

  • Easy to start work immmeeeeddiatellyyy
  • Feel like a thug

Including @caranicas @psimyn @jrodl3r @dzotokan and whoever has thoughts!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (18 by maintainers)

github_iconTop GitHub Comments

5reactions
choonkendingcommented, Aug 7, 2016

It’s done! I’ve moved it 😂 😢 We’re now reactGo! Yay!

4reactions
choonkendingcommented, Jul 31, 2016

Vote for

ReactGO

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reducing boilerplate code in Flutter using Flare - FilledStacks
Let's do some refactoring first​​ Create a new file called smart_flare_animation. dart and move the GestureDetector and FlareActor in there. We'll wrap it...
Read more >
Remove the boilerplate | Better world by better software
We are going to use a couple of approaches to remove the boilerplate code: partial application of arguments (built into the JavaScript language) ......
Read more >
Reduce boilerplate code with PHP 8 - Carsten Windler
That's why we can remove manual type checking in the Setter methods completely, which reduces the amount of boilerplate code even more:
Read more >
Flutter — IDE Shortcuts for Faster Development - Medium
All the boilerplate code will be created for you, automatically. ... but you need to clean it up and remove all those unused...
Read more >
Releases · react-boilerplate/react-boilerplate - GitHub
React Boilerplate v4.0 is out and it's a doozy! Here are the highlights: ... New Webpack code splitting config (@julienben); Remove process.
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