5
0 Comments

We split our code into 2 modules

Our fetch plugin start to look very crazy.

  • Part of our code is just a storage for JSON static files that we collected.
  • Part of our code related to basic methods.
  • Part of our code is separated by projects/repositories/modules, that actually using different JSON files inside.
    When I prepare my articles I decide to make a quick move.
    I'm moving our JSON files into a separated place, creating another npm module that will only return files that we need. By this simple separation, we can remove a big chunk of our files from the fetch repository.

BUT! We start to face a lot of problems. You may be not aware, but ES6 doesn't like JSON files. So when we use RollupJS for bundle our code - it was hard to figure out how actually return json files from our module. Slowly make it work and now it connected to our previous module and return data as we need it.

Btw, this is a new repository for our JSON files!
Feel free to set a star for it. It means a lot to me.
https://github.com/GroceriStar/sd

Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 49 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 29 comments My Top 20 Free Tools That I Use Everyday as an Indie Hacker 16 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments