Move to Typescript #53
Labels
enhancement
New feature or request
Library Major version number wishlist
would require me to up the version number for the library
Projects
Milestone
Is your feature request related to a problem? Please describe.
There's a ton of bugs that would be fixed if strong typing were to be used. This would also decrease the amount of unit tests that will be needed by about 10-20%.
Describe the solution you'd like
In the v5-alpha branch gradually move to typescript. Have a dist folder to hold the output on the master branch, and have the npm include that, the
.d.ts
file and have the html source that javascript file. In addition, have a pre-bundled version as well with all runtime-deps (as there will be some in the future) bundled and the whole file minified. The html version will likely use that, unless it moves to requirejs.Describe alternatives you've considered
JsDoc, or whatever it's called doesn't require compiling to run - but I think that while this is nice, it means that I'd be harder to use npm libraries as dependencies.
Additional context
I've used a similar approach for spud-slices - but I can do it better this time.
Steps
dist/
and ensure that it can serve as the source #54src/
, use.ts
extension and add tsconfig that compiles to thedist
folder, while using the most type-lenient settings. #55gh-pages
branch or something for that. #60.tsconfig
lib
setPixel
in typescript seems to be broken. Pending further research. #62Feature requestincludeVersion
support rogierschouten/gulp-typedoc#46npm
(recommend this)The text was updated successfully, but these errors were encountered: