How do we run scripts in the project? #1477
-
Currently in the project we multiple methods for running scripts, but none of them align or agree on what is run. Here are some of the ways I've found.
I want to propose that we unify around a standard, and make sure all secondary script runners run the default. Standard runner?I believe this should be If the default is
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
TL;DRi'm not sure i agree that we need a standard. but if we decide we do need one, i'd be against using rake or npm as that standard. i'd rather use that said, I'd rather see good documentation than any attempt to consolidate on a single standard for writing and/or running scripts The Long Versionevery tool has trade offs. we should be able to pick the one that's best for a situation. it also seems a little odd to load up ruby and rake and all that, just to shell out to commands that only need node modules, or don't need need ruby or node at all. or the same for loading npm to shell out to rake, etc. it also gets more complicated when adding if we have to pick a standard, i would rather see but even using in the end, any choice that is made in how we run scripts will have trade offs (including leaving things as is). but every solution we come up with to standardize things comes with a minimum amount of documentation to ensure everyone understands what's going on and how to follow the standard. none of these options solve the core problem of having to know at least three or four different scripting systems to effectively work in PVC (bash, npm scripts, rake scripits, thor scripts). and that's not a "problem" i think we should try and solve. it's a choice of using the right tool for the job with the constraints of each task we need to perform (which language / package / system has the tools we need, etc?). so if we're going to look at trade offs when each possible solution listed here has potentially as many or more quirks as we currently deal with, and each possible solution listed requires a minimum amount of documentation, then i'd say we forget trying to standardize how scripts are run. instead, we should look at the one common thread in all of this. My Recommended Solutionfocus on writing easy to find, read, and understand documentation for every script in a centralized location for the project. this will likely be a markdown document in the |
Beta Was this translation helpful? Give feedback.
TL;DR
i'm not sure i agree that we need a standard. but if we decide we do need one, i'd be against using rake or npm as that standard. i'd rather use
scripts/*
for reasons outlined below.that said, I'd rather see good documentation than any attempt to consolidate on a single standard for writing and/or running scripts
The Long Version
every tool has trade offs. we should be able to pick the one that's best for a situation. it also seems a little odd to load up ruby and rake and all that, just to shell out to commands that only need node modules, or don't need need ruby or node at all. or the same for loading npm to shell out to rake, etc.
it also gets more complicated when adding
thor
s…