joystick
joystick copied to clipboard
Do a sweep of commonly used functions across all packages and consolidate in @joystick.js/utils
Finding a lot of common functions that are being copy-pasted across the projects. Would be good to consolidate in a separate package and make that a dependency in @joystick.js/node, @joystick.js/ui, and @joystick.js/cli.
Oh boy is this necessary. Doing the Windows stuff now and there are lots of little lib functions scattered across all packages that should be common. Specifically the getPlatformSafePath.js library and getPlatformSafeFilePath.js library.
Making a list:
- [ ] generateId
- [ ] isValidJSONString
- [ ] CLILog
- [ ] loadSettings
- [ ] serializeQueryParameters