kotontrion / dotfiles

my personal dotfiles, use at your own risk
140 stars 3 forks source link

[Question] What is the usage of setup.sh script in the ags config? #2

Closed GeorgeAndreiBals closed 10 months ago

GeorgeAndreiBals commented 10 months ago

Hey, started learning ags (and by extension js/ts) earlier this week and I'm curious about the role of setup.sh.

kotontrion commented 10 months ago

This script generate the types for the LSP. See here. The usage of this is optional, but having the types is useful. I probably should rename this to something like gen_types.sh

GeorgeAndreiBals commented 10 months ago

Ah, makes sense, thanks! Yeah, gen_types.sh should be more clear 😄 And another thing, I tried both your dotfiles and Aylurs' and I noticed that yours are on version 1 of AGS (I believe) and his are on 1.5.4. Does this matter?

kotontrion commented 10 months ago

I'm using the git version of ags, so currently version 1.5.5. the version in the package.json refers to the version of my dotfiles, but i guess I could edit them to have them match the used ags version. I was planning on extending the readme to include more information anyway and the used ags version should be mentioned there as well then.

GeorgeAndreiBals commented 10 months ago

Thanks for the response!