lib folder
I notice when making a new sapphire project with the CLI a lib folder is made. What exactly does the lib folder do, and what files should be within? I'm trying to follow convention
Solution:Jump to solution
Anything really. The important part is that for example you should only have files with commands in the commands folder, so then where to put things like utilities. The convention we follow is to have a lib folder for that.
3 Replies
Solution
Anything really. The important part is that for example you should only have files with commands in the commands folder, so then where to put things like utilities. The convention we follow is to have a lib folder for that.
For example, you can put database connection initialisation code into lib folder
alright thanks!