Skip to content

Gabrielcsapo/typescript conversion#89

Merged
gabrielcsapo merged 7 commits intogabrielcsapo:gabrielcsapo/typescript-conversionfrom
5GameMaker:gabrielcsapo/typescript-conversion
Jan 3, 2022
Merged

Gabrielcsapo/typescript conversion#89
gabrielcsapo merged 7 commits intogabrielcsapo:gabrielcsapo/typescript-conversionfrom
5GameMaker:gabrielcsapo/typescript-conversion

Conversation

@5GameMaker
Copy link
Contributor

No description provided.

Buj Itself and others added 6 commits December 4, 2021 00:33
Replaced JavaScript with TypeScript in README
Made sure that package will be built if installed from github
Fixed some types
Made some async functions return a Promise if callback was not specified
Added myself as contributor cuz y not
oops, missed a spot
this dotfile should be commited to the repo
.git-package.meta should not get committed to npm
*/
export function parseGitName(repo: string): string {
const locationOfGit = repo.lastIndexOf('.git');
return repo.substr(0, locationOfGit > 0 ? locationOfGit : repo.length);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we want to use slice here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String.substr is deprecated, so I replaced it with slice instead as with 0 being the first argument they're doing the same thing

"coverage": "jest --coverage"
"build": "echo \"\" > ./build-complete.meta && tsc",
"coverage": "jest --coverage",
"install": "( [ -f ./git-package.meta ] && [ ! -f ./build-complete.meta ] && echo \"\" > ./build-complete.meta && npm install . && tsc ) || echo \"\" > ./build-complete.meta"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason npm does not build any package installed from git, so I added this cos it was too annoying (however I forgot to delete dist while testing, so I noticed that it doesn't work only when I committed this)

@gabrielcsapo
Copy link
Owner

Thank you for this! I just had a few questions!

@gabrielcsapo gabrielcsapo merged commit bf38799 into gabrielcsapo:gabrielcsapo/typescript-conversion Jan 3, 2022
@gabrielcsapo
Copy link
Owner

Thank you @5GameMaker, merged and going to publish a beta.

gabrielcsapo added a commit that referenced this pull request Jan 3, 2022
* [wip]

* [wip] migrates tests to jest for easier debugging, removes deps

* [chore] ignore dist

* [chore] fix ordering of event listeners to make sure async functions were run after

* [chore] updates tests to be jest tests adds website scaffolding

* [chore] updates ci workflow and cleans up website

* [chore] get types building and docs produced

* Gabrielcsapo/typescript conversion (#89)

* Minor fixes

Replaced JavaScript with TypeScript in README
Made sure that package will be built if installed from github
Fixed some types
Made some async functions return a Promise if callback was not specified

* Fixed small TYPO that broke README.md

* Update package.json

Added myself as contributor cuz y not

* Update service.ts

oops, missed a spot

* Create .git-package.meta

this dotfile should be commited to the repo

* Create .npmignore

.git-package.meta should not get committed to npm

Co-authored-by: Buj Itself <buj351@outlook.com>
Co-authored-by: Gabriel Csapo <gabecsapo@gmail.com>

* [chore] updates dependencies

* [chore] fixes node@14 tests

* [chore] fix failing tests

* [chore] fix failing tests

* [chore] fix lint issues

* [chore] updates changelog

Co-authored-by: Buj <42136194+5GameMaker@users.noreply.github.com>
Co-authored-by: Buj Itself <buj351@outlook.com>
gabrielcsapo added a commit that referenced this pull request Jan 25, 2022
* [wip]

* [wip] migrates tests to jest for easier debugging, removes deps

* [chore] ignore dist

* [chore] fix ordering of event listeners to make sure async functions were run after

* [chore] updates tests to be jest tests adds website scaffolding

* [chore] updates ci workflow and cleans up website

* [chore] get types building and docs produced

* Gabrielcsapo/typescript conversion (#89)

* Minor fixes

Replaced JavaScript with TypeScript in README
Made sure that package will be built if installed from github
Fixed some types
Made some async functions return a Promise if callback was not specified

* Fixed small TYPO that broke README.md

* Update package.json

Added myself as contributor cuz y not

* Update service.ts

oops, missed a spot

* Create .git-package.meta

this dotfile should be commited to the repo

* Create .npmignore

.git-package.meta should not get committed to npm

Co-authored-by: Buj Itself <buj351@outlook.com>
Co-authored-by: Gabriel Csapo <gabecsapo@gmail.com>

* [chore] updates dependencies

* [chore] fixes node@14 tests

* [chore] fix failing tests

* [chore] fix failing tests

* [chore] fix lint issues

* [chore] updates changelog

Co-authored-by: Buj <42136194+5GameMaker@users.noreply.github.com>
Co-authored-by: Buj Itself <buj351@outlook.com>
@5GameMaker 5GameMaker deleted the gabrielcsapo/typescript-conversion branch January 29, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants