-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Double-check API #9
Comments
cc/ @keithamus |
It looks to do what I want from it 😄. However, I would suggest that it does not parse |
@keithamus Maybe make it optional? @davidtheclark Is it optional? |
@keithamus : Thanks for the feedback. I was on the fence about @TrySound : It's not optional currently but would be very easy to make optional. |
@davidtheclark I think every feature should be optional |
@TrySound : So you'd suggest lots more options --- for turning off YAML, JSON, or JS parsing, not looking in package.json, not looking for |
@davidtheclark I'm about searching rc, config, global and argv. Parsing don't need to complicate. |
@davidtheclark Also I don't understand, why need |
@TrySound : parse-json throws extra nice JSON errors, so I thought it might be handy. More importantly, though, I was finding that YAML was weirdly lenient in its JSON parsing? Maybe I misunderstood --- could test it out more. I agree that the first symbol checking is not great: open to a better way. |
@davidtheclark I think it's a good feature for rc file. It's multiformat file. So, why we shoundn't let it be free? |
@davidtheclark And need to add appveyor support. On windows tests fails |
1.0 looks good to me!
|
@davidtheclark I'd like to suggest you to use this publishing way https://github.com/sindresorhus/np/blob/master/np.sh |
FYI those scripts also work for npm2. In fact they also work for npm1 😉. http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/ |
@keithamus Oh, cool. I just heard from somebody that they are not reliable, but in npm3 works fine. Maybe just a noise in my head :)) |
They're pretty darn reliable. I've been using them for about 2 years now, so long before npm3 came out. Never had a problem with them. @davidtheclark you could also look at https://github.com/semantic-release/semantic-release - which takes a while to set up, but could manage all of your releases automatically for you 🎉 |
I've never been too annoyed by typing the git and npm commands manually, but will look into the scripts. Thanks for the suggestions! And thanks for all the feedback above. Based on what's been said so far, here are some changes I think could be made:
@TrySound I prefer keeping JSON strict instead of the leniency allowed by yaml parsing. If I have a |
@davidtheclark Maybe better |
I find positive options to be less confusing than negative ones. |
Good suggestion. |
@davidtheclark I didn't mean json files parsing with yaml. Only .[moduleName]rc file. It should have free format. |
@davidtheclark Can argv extends file config? Like here |
@davidtheclark However let's do not extend. Just rewrite. If somebody want to extend it he can disable default argv. |
That sounds like a good feature, yep. |
@TrySound : Actually, I'm second-guessing -- are you saying that if the configuration might have a |
Also current version is published as 0.5.0, if you want to try it out and see if it does the job. |
As of this morning I think I've built in all the features I thought were needed. I'm wondering if anybody has feedback on this API before I cut 1.0.
@jeddy3, @MoOx, @TrySound, @ai --- any thoughts? or anybody else you know that might be interested in using this so should check it out?
The text was updated successfully, but these errors were encountered: