Tuesday, 5 September 2017

Do you use colons or dashes to prefix npm scripts?

"docker-build" vs "d-build" vs. "docker:build" vs "d:build"I feel like the dash is more npm-ish since you cannot put a colon in a package name: Sorry, name can only contain URL-friendly characters..I don't think there's a right answer here, just curious what the community thinks.My preference is always for fewer keystrokes so I prefer d- for docker commands and dc- for docker-compose commands.

Submitted September 05, 2017 at 11:04PM by jdub_pdx

No comments:

Post a Comment