sports-alliance / sports-lib

A Library for processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
GNU Affero General Public License v3.0
156 stars 21 forks source link

Migrate GXParser to typescript for easiest use with bundlers and node runtime. #32

Closed thomaschampagne closed 4 years ago

thomaschampagne commented 4 years ago

I was unable to load properly the current GXParser within rollupjs to make it running on nodejs (should be also not simple through webpack). So this PR Migrates this "tiny" GXParser class as internal typescript class.

I can provide a "ts-gxparser" module on npmjs if your need. Let me know if you need this (the changes will be performed in this PR).

Still works in browser ofc

jimmykane commented 4 years ago

Tested this on 1K GPX files and worked fine. Released with 3.4.5

Thanks!