Skip to content

Conversation

gkgoat1
Copy link

@gkgoat1 gkgoat1 commented Jul 15, 2025

Allows usage of ESM to modularize the code, TypeScript to ensure its safety, and hot module reloading.

This PR simply adds the infrastructure for expansion of this code--it does not add or change functionality or reorganize script.(j/t)s

wdyt?

Copy link

vercel bot commented Jul 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
helios ❌ Failed (Inspect) Jul 15, 2025 9:01pm
helios-browser ❌ Failed (Inspect) Jul 15, 2025 9:01pm

@dinguschan-owo
Copy link
Owner

wait ok so this just rewrites the script into ts?

@gkgoat1
Copy link
Author

gkgoat1 commented Jul 15, 2025

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

@dinguschan-owo
Copy link
Owner

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

@gkgoat1
Copy link
Author

gkgoat1 commented Jul 15, 2025

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

@dinguschan-owo
Copy link
Owner

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

is it still possible to run this in a html file? because while i have a computer the kids that im kinda marketing this to migjt not lol

@gkgoat1
Copy link
Author

gkgoat1 commented Jul 15, 2025

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

is it still possible to run this in a html file? because while i have a computer the kids that im kinda marketing this to migjt not lol

When building, a dist folder will be created with the html and js files iirc. the build step is only on your end

@dinguschan-owo
Copy link
Owner

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

is it still possible to run this in a html file? because while i have a computer the kids that im kinda marketing this to migjt not lol

When building, a dist folder will be created with the html and js files iirc. the build step is only on your end

so the short answer is no? like ts can't be directly compiled by the browser right

@gkgoat1
Copy link
Author

gkgoat1 commented Jul 15, 2025

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

is it still possible to run this in a html file? because while i have a computer the kids that im kinda marketing this to migjt not lol

When building, a dist folder will be created with the html and js files iirc. the build step is only on your end

so the short answer is no? like ts can't be directly compiled by the browser right

no, but you can compile it and give the kids the compiled result. once github is unblocked, they can check the source code, which must still stay.

@dinguschan-owo
Copy link
Owner

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

is it still possible to run this in a html file? because while i have a computer the kids that im kinda marketing this to migjt not lol

When building, a dist folder will be created with the html and js files iirc. the build step is only on your end

so the short answer is no? like ts can't be directly compiled by the browser right

no, but you can compile it and give the kids the compiled result. once github is unblocked, they can check the source code, which must still stay.

sorry for being so oblivious, but how would i compile it, then have a different result?

@gkgoat1
Copy link
Author

gkgoat1 commented Jul 15, 2025

wait ok so this just rewrites the script into ts?

yep. since it is in ts, the browser cant run it directly, so i use parcel to allow bundling the script into a js file in a normal html file, which can be served the traditional way. that's why vercel is failing

haha i belive you, but i don't know anythign abt typescript so i have no clue what this means, or how it can be inegrated

You can look at the official site for more info about how typescript works and how to use it (tl;dr it compiles to js). For this project, if you have a computer, you can run npm install to install dependencies and npm run build to build the page into dist. If you dont, lmk.

is it still possible to run this in a html file? because while i have a computer the kids that im kinda marketing this to migjt not lol

When building, a dist folder will be created with the html and js files iirc. the build step is only on your end

so the short answer is no? like ts can't be directly compiled by the browser right

no, but you can compile it and give the kids the compiled result. once github is unblocked, they can check the source code, which must still stay.

sorry for being so oblivious, but how would i compile it, then have a different result?

make sure nodejs is installed. open a terminal in this repo. run npm install to install the packages, then run npm run build to build the dist folder. if you're on a chromebook, consider using a github codespace.

i purposefully did not ignore dist to allow you to publish it alongside the code

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