Meeco TypeScript Tools
File Storage SDK
Adding a Package to this Typescript Monorepo
In order to allow developers to import only the components they need we prefer to split up our libraries into multiple smaller ones. This is especially true when we are going to be adding a new (potentially large) dependency to a package.
For example, the large file handling library requires a dependency of Azure's storage package. If we were to add this to the main Meeco SDK might end up importing importing the storage package regardless of if they need to handle large files or not. Tree-shaking may help alleviate some of the issues but it does still mean that the dependency that gets pulled in is significantly bigger. It also means the SDK becomes a lot more complex and has a more polluted global scope.
Where possible all packages/apps should be written in typescript.
If this is the case to get started with a new package.
- Create a directory in the packages directory.
- Copy the contents from the
/examples/example-packagedirectory into the newly created directory.
- Change the name of the package in the
package.json, preferable to something starting with
@meeco/for most scenarios.
npm installfrom the root of this project
npm buildfrom inside the directory of the new package to make sure it's all working.
- Add the name of the package along with the directory of the src to the root's tsconfig.json under
The above is just a basic guide to get started, feel free, if you're know what you're doing, to go off the rails a bit.