node-pureimage icon indicating copy to clipboard operation
node-pureimage copied to clipboard

update to typescript

Open bluelovers opened this issue 6 years ago • 8 comments

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [ ] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

Description

bluelovers avatar Aug 06 '19 18:08 bluelovers

Looks like this has merge conflicts. Also, if this is merged then it will break for people not using typescript (since there is no compiled js version provided). I'd suggest that the CI system needs to be updated to auto-ship a compiled JS version to npm...

rmainwork avatar Aug 07 '19 22:08 rmainwork

Can you fix the conflicts and add an build command to generate the final JS from the typescript?

joshmarinacci avatar Aug 15 '19 23:08 joshmarinacci

i think u should ignore conflicts , because it is from javascript to typescript

the generate js , u can use tsc command for build it

bluelovers avatar Aug 16 '19 03:08 bluelovers

@bluelovers you literally can't do that because the conflict markers (<<<) in the code will break interpretation. Ideally, one would commit typescript to GitHub and then ship javascript to npm.

This is the problem with committing compiled assets to version control.

EDIT: Also adding that GitHub won't allow @joshmarinacci to merge the PR until you fix the merge conflicts in it.

robertmain avatar Aug 17 '19 19:08 robertmain

can manual merge in local

bluelovers avatar Aug 17 '19 22:08 bluelovers

That's not merging the pull request, that's merging the branch. And you need to remove the conflict makers. It's also a really bad idea in situation.

GitHub tries to prevent this for a reason. Please don't encourage people to do silly things like this. Instead, fix your merge conflicts like an adult.

Also, you didn't fill out the PR template explaining the changes in your PR.

EDIT: Just to add to this - it's your PR and it's therefore your responsibility to manage the merge conflicts. Not the project maintainer.

robertmain avatar Aug 18 '19 15:08 robertmain

I might take a crack at a typescript migration if the maintainers would still be interested in seeing one. I have several github typescript projects that create builds targeting both node CJS, node MJS, and Deno. Though that's one reason you'd want to commit the built files to version control, so that other platforms that just clone the repo to distribute files still have the built files (aka, Deno.land... 😬 )

josh-hemphill avatar Oct 22 '21 04:10 josh-hemphill

That would be great. Thank you!

I might take a crack at a typescript migration if the maintainers would still be interested in seeing one. I have several github typescript projects that create builds targeting both node CJS, node MJS, and Deno. Though that's one reason you'd want to commit the built files to version control, so that other platforms that just clone the repo to distribute files still have the built files (aka, Deno.land... 😬 )

joshmarinacci avatar Oct 22 '21 19:10 joshmarinacci

Why should we migrate to TypeScript if we won't have support for non-TS environs & we already have types? Since we already have types, we can already support TS projects that want to integrate.

Codezigineer avatar Apr 05 '23 22:04 Codezigineer