Imports Toggl tasks into Clockify. Transforms Toggl tags to Clockify tasks.
Configure API connections by creating .env
file from .env.template
.
Configure transformation in config.json
file.
Sync tasks from Toggl to Clockify for a specific date:
npm start -- sync 2020-10-10
Get Toggl report for a specific date:
npm start --silent -- fetch 2020-10-10 > toggl-report.json
Push saved report entries to Clockify:
npm start -- push toggl-report.json
- OH! if somebody types "yesterday", does he mean current timezone yesterday?
- if it is a script running on server
- create cli package
- seek inspiration in jest-cli
- skip non-billable entries
- make that configurable
- extract tag to task functionality to config script
- read config file in runtime
- use js-yaml to load yaml
- move config file from repo
- non-functional
- improve rate limiting (search "rate limiting rxjs")
- create interceptor for error in both APIs
- create interceptor for spinner