Commit Graph

112 Commits

Author SHA1 Message Date
Rene Saarsoo
265ae5db1b Allow any interval type to be without power target 2020-10-06 13:19:35 +03:00
Rene Saarsoo
3efb8b0c88 Additional TODO item 2020-10-06 11:17:27 +03:00
Rene Saarsoo
7755a1d110 Add repository 2020-10-04 15:07:43 +03:00
Rene Saarsoo
634eb6f958 Rename to zwiftout + add docs v0.1.0 2020-10-04 15:02:17 +03:00
Rene Saarsoo
0d6f61913c Allow untitled workouts 2020-10-04 13:20:04 +03:00
Rene Saarsoo
adebc3d460 Handle short workouts when calculating normalized intensity 2020-10-04 13:13:52 +03:00
Rene Saarsoo
77c6a721d4 Separate formatting of stats 2020-10-03 17:35:09 +03:00
Rene Saarsoo
c1a435e4d0 Classify free intensity duration to separate zone 2020-10-03 17:15:47 +03:00
Rene Saarsoo
c69a24c0e3 Tests for zoneDistribution 2020-10-03 17:05:53 +03:00
Rene Saarsoo
2be2c9254c Add freeride to zone types 2020-10-03 16:40:58 +03:00
Rene Saarsoo
dcf851294d Rename tss2 to tss 2020-10-02 16:39:56 +03:00
Rene Saarsoo
d274ea69a9 Delete old alternative TSS calculation system 2020-10-02 16:38:55 +03:00
Rene Saarsoo
40c56fb7ee Additional ideas 2020-10-02 13:54:25 +03:00
Rene Saarsoo
72a02f2d19 Implement chunkRangeIntervals() utility 2020-10-02 13:38:17 +03:00
Rene Saarsoo
e62359a553 Add maximumIntensity helper 2020-10-02 12:14:48 +03:00
Rene Saarsoo
f20976b00b Export intensityToZoneIndex 2020-10-02 12:04:15 +03:00
Rene Saarsoo
53344b22ce Create interface to govern all Intensity classes 2020-10-02 11:59:54 +03:00
Rene Saarsoo
12b848f08d Separate tsconfig for release (which excludes tests) 2020-10-02 11:49:41 +03:00
Rene Saarsoo
208c160501 Do not run tests in dist/ dir 2020-10-02 11:39:56 +03:00
Rene Saarsoo
1df9f8e1d7 Move generic tests out of src/ dir 2020-10-02 11:38:11 +03:00
Rene Saarsoo
423012024b Create generic zone-index detection helper 2020-10-02 11:35:04 +03:00
Rene Saarsoo
14930e748e Export totalDuration() 2020-10-01 23:32:29 +03:00
Rene Saarsoo
c9e71dc244 Export types 2020-10-01 22:41:04 +03:00
Rene Saarsoo
29e514b724 Run build script at prepublish stage 2020-10-01 20:46:26 +03:00
Rene Saarsoo
bfee21a6b7 Add empty .npmignore to ensure dist/ files are included 2020-10-01 20:45:02 +03:00
Rene Saarsoo
f43814d519 Emit typescript declaration files 2020-10-01 20:40:06 +03:00
Rene Saarsoo
31a80e28e8 Declare main file 2020-10-01 20:37:46 +03:00
Rene Saarsoo
bdba0ecc52 Change main index file to only perform export of functions 2020-10-01 20:32:23 +03:00
Rene Saarsoo
dd9baffb8d Switch start script to use /bin 2020-10-01 20:28:08 +03:00
Rene Saarsoo
cd1671fa20 Remove helper-script for manual testing 2020-10-01 20:26:36 +03:00
Rene Saarsoo
69791951ab Add script in bin/ and building of .ts files 2020-10-01 20:25:16 +03:00
Rene Saarsoo
7f35a9a6b1 Add the missing <workout> tag :) 2020-10-01 20:04:21 +03:00
Rene Saarsoo
ac126f36da Implement FreeRide intervals 2020-09-30 23:26:01 +03:00
Rene Saarsoo
eef96cce92 Switch from # to @ as comment-start character 2020-09-30 22:30:19 +03:00
Rene Saarsoo
49638c6c71 Regression tests for stats and ZWO creation 2020-09-30 22:21:40 +03:00
Rene Saarsoo
819629094e Implement zone-distrubution stats 2020-09-30 20:50:08 +03:00
Rene Saarsoo
15773cead0 Initial README with todo-list 2020-09-30 20:15:21 +03:00
Rene Saarsoo
0511343f09 Use argparse for parsing command-line options 2020-09-30 15:03:33 +03:00
Rene Saarsoo
53e36cba0c Extract extractRepeatedInterval() helper 2020-09-26 12:57:26 +03:00
Rene Saarsoo
8339163fe5 Rename intervalsToIntensityNumbers to emphasize type of return value 2020-09-25 14:35:11 +03:00
Rene Saarsoo
212df4e748 Introduce Intensity & IntensityRange classes 2020-09-25 14:34:12 +03:00
Rene Saarsoo
c516b80aff Rename Duration.value -> Duration.seconds 2020-09-25 13:51:01 +03:00
Rene Saarsoo
61ea726187 Rename Seconds to Duration 2020-09-25 13:50:03 +03:00
Rene Saarsoo
564faf95e7 Fix some basic bugs in ZWO generation 2020-09-25 12:21:25 +03:00
Rene Saarsoo
98f882f9b8 Integrate detectRepeats() with ZWO generation 2020-09-25 12:18:37 +03:00
Rene Saarsoo
be5b9a5146 Implement Seconds.add() 2020-09-25 09:42:55 +03:00
Rene Saarsoo
6170796433 Rename types.js -> Seconds.ts 2020-09-25 09:33:37 +03:00
Rene Saarsoo
46b2c1198f Gather and offset comments in repeated intervals 2020-09-25 09:31:48 +03:00
Rene Saarsoo
a30b020ac9 Improve lint:js and lint:ts setup
- Use typescript to report unused variables
- Properly pass filenames-glob param to eslint
2020-09-25 09:28:07 +03:00
Rene Saarsoo
ba11117cc8 Additional tests 2020-09-24 22:36:50 +03:00