-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion with team #174
Comments
After the conversation with Vadim we still didn't figure it out but decided to try building big objects, that will contain whole information. aka one object is equal to the whole database. details - #60 |
By Moving out JSON files
Before we have another repo, that store an old code, that we move into fetch plugin. npm link, github At the first stage, it was just a separated store of static files. Side notes:
Plan
|
hi everyone, need your opinion on this @kraftaa, @vadim9999 @Avuidrauxs |
@sanchit94 this is a task that paint the big picture of upcoming changes |
With the latest changes from Maria(we increased the number of grocery lists from 8 to 28). I think it's crucial to update the way how we merge all the data together. It's easy to illustrate - just open 'data/Ingredients' and you'll see how much files we have there. It looks scary and we should address that. |
@atherdon , Oh sorry to join this conversation late. |
other problem: it's hard to validate the structure of JSON file when we're working with it manually. So i install a plugin 'jsonlint' and at the root of the package, we have a config file for it. Right now i add only grocery.json, but I assume we'll add all of our files to this file and run validation checks. It works only from CLI or at Travis CI builds. It'll throw an error when something is wrong. @aanchirinah no prob |
@atherdon , I absolutely agree that we switch the plugin to ES 6 and strongly follow ESlint rules |
@atherdon , I can start converting some projects to ES 6 for you including adding tests. Just guide me on how you want it done. Also regarding the JSON files, I need to research more and reflect on your findings to give a detailed response |
Part 1
Organizational problems
Current version of plugin is ES5 version.
Problems:
Pros:
Cons:
Code organization and structure
My goal was just to keep all static files/data in the same separated place at the beginning.
So we didn't keep a lot of attention about what structure we have.
right now we have 2 main folders:
data
,projects
.Data just have all of our files/tables/structures at separated folders.
Projects have sub-folders, each subfolder
! i don't like the way how we're debugging our new methods. we have a play.js file where we can console.log some of our functions, but it's not cool to have them into our npm published version.
this can be fixed by moving to ES6 + Babel7 builds, where we extend *play.js files out, but still keeping them at our github repos.
Projects
Problem: Number of project/branches is growing, and we add new methods and everything start to look overcomplicated.
The text was updated successfully, but these errors were encountered: