Opinionated Eruption #36
Replies: 6 comments 3 replies
-
Well, we may need to define types of library that we can suggest for the user, like:
And define what libraries should be best for our opiniated boilerplate |
Beta Was this translation helpful? Give feedback.
-
As of today, we provide the following on Eruption: engines, deps and dev deps kind of libs. Engines ones run the core of Eruption itself. They are Dependecies are also the core of Eruption today, since we still don't support other frameworks, yet 👀. They are And then there is Devs Dependency. Those are critical to make Eruption being... well, Eruption. It's on the shoulder of these giants that we create the kind of DX we want for Eruption. We need all of them, ATM. Will avoid going every single one of them, but a list can be found in core/package.json That being said, I'll focus on what libs we will opt in, in order to make the the opinionated version and why I'm voting them. So let's go: project compression: vite-plugin-compression2 for routes: react-router-dom requests: react-query with axios css/components: mantine/core with mantine/hooks and emotion Also I feel here that currently, tailwind is out of scope for a highly opinionated project. It's cool for smallers ones but besides of that, the crazyness that is those class creates, it's just a big NOPE to medium and bigger projects. icons: to be defined font: inter-ui And I think that's it. (for now) what do you guys think? PS: for "we", I mean my team at Makasí working on the main product |
Beta Was this translation helpful? Give feedback.
-
As I'm inexperienced with frontend development and I'm more focused at CLI and automations tasks, I don't have anything to disagree with, as for Icons, I can suggest css.gg as it's open source, have some compatibility with Figma, and is easy to implement. |
Beta Was this translation helpful? Give feedback.
-
Hey folks, I started a PoC under this repository: https://github.com/raisiqueira/opinionated-eruption
To-do list:
I'll try to finish it until tomorrow, and we could discuss folder structure, and other architecture points. |
Beta Was this translation helpful? Give feedback.
-
Hey guys, just jumping into discussion here 👋🏻 For Data Fetching SWR is a good option too, it works similar to React Query and it's really simple. import useSWR from 'swr'
function Profile() {
const { data, error, isLoading } = useSWR('/api/user', fetcher)
if (error) return <div>falhou em carregar</div>
if (isLoading) return <div>carregando...</div>
return <div>Olá {data.name}!</div>
} Maybe something to consider is to provide a simple way to handle with forms, as @raisiqueira said:
Can't find a pain higher than that, if it makes sense, it could be viable to consider: Options for icons: |
Beta Was this translation helpful? Give feedback.
-
it took some time, but here it is: #59 |
Beta Was this translation helpful? Give feedback.
-
The main idea with an opinionated template is to provide a template (based on Eruption/core) with a set of libraries that help the developer to start a new project without so much pain.
e.g., of libraries:
Beta Was this translation helpful? Give feedback.
All reactions