-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform compatibility #23
Comments
It's good to see you again @caffeine-addictt! I'm not a master of Bash, but may I try to optimize it for Windows (Sadly I don't have a Mac so Windows is the best thing I can do for now)? |
Sure thing @LyubomirT :> However as What do you think? |
Perhaps that'll be the best course of action (and the most popular one among developers, too), I think it'd be a great way to do that. Although we might want to create something that does the same but is written in an entirely different language (for example, C#/Python3/Node.js), because languages like those often support many platforms from the start. |
I agree. Since formatting is already done with node, it may be best to go with it. I'll do some research in the meantime. |
I guess we could still have shell files that run js and handle pre installation and post cleanup.
Something like: # Check for npm binary
# Invoke npm i
# Run js/ts
# Delete js/ts
# Delete artifacts (node_modules, package.json, etc.)
# Delete itself Likely would need:
|
Good idea! I think we could also skip the artifacts / npm part completely (will require less setup from the side of the user) if we manage to write the setup script with 0 dependencies and put it in a GitHub repository or any other accessible source. (just my personal thought, NPM will work well too) |
In that case, how about having users copy scripts directly to the CLI from the README? # README
# Linux
chmod +x ./setup.sh && ./setup.sh && rm -rf artifacts |
It could be a bit daunting in my opinion, people prefer when everything's interactive nowadays. Plus, I doubt it'll take long to download a 500B file and go through some steps. |
True. |
Not forcing anything, but perhaps we could simply port the already-implemented code from Bash to JS, with platform-specific conditions to keep everything in a single script? |
Sounds like a plan. |
Okay then! Starting to work on this issue right away. |
Running with typescript? |
Perhaps basic Node will do better in this case, as we're aiming for a broad audience, and Node.js is easier to set up for most users. |
The setup script was developed for and on Linux.
Might not be compatible with other OSes. PRs welcome.
Spec
The text was updated successfully, but these errors were encountered: