Skip to content
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

Port setup bash scripts to Crystal #875

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Port setup bash scripts to Crystal #875

wants to merge 2 commits into from

Conversation

jwoertink
Copy link
Member

Fixes #872
Closes #867

When a Lucky app is generated, a bunch of bash scripts are generated to help bootstrap the app by running CLI commands like yarn install and shards install. The downside is that these are not portable over to Windows.

In #867 I wrote PowerShell scripts to mimic the bash scripts, but that required me to first learn PowerShell, and then write a bunch of {% if flag?(:windows) %} checks. This also creates a new level of complexity on maintaining the scripts.

For this take, I just ported it all to Crystal. Even on Windows you'll still need to have Crystal installed, so this makes it a lot easier. Plus, there's a higher chance of a new dev picking up Crystal faster than learning Bash and/or PowerShell.

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.

Port bash scripts to PowerShell for Windows
1 participant