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

magic #31

Closed
boneskull opened this issue Apr 17, 2016 · 4 comments
Closed

magic #31

boneskull opened this issue Apr 17, 2016 · 4 comments

Comments

@boneskull
Copy link
Contributor

Scripty is kind of, well, magic. Meaning if you are unfamiliar with Scripty, and see something like this:

{
  "scripts": {
    "bump": "scripty",
    "bump:major": "scripty",
    "bump:minor": "scripty",
    "bump:patch": "scripty",
    "update": "scripty",
    "preversion": "scripty",
    "publish-please": "scripty",
    "test": "scripty",
    "test:browser": "scripty",
    "test:browser:dev": "scripty",
    "test:lint": "scripty",
    "test:node": "scripty",
    "test:nsp": "scripty"
  }
}

...you're not going to know what the hell is going on.

What can be done about this?

@searls
Copy link
Member

searls commented Apr 18, 2016

I honestly don't know. If someone googles scripty or runs any of those commands they'll probably immediately realize what it does.

¯_(ツ)_/¯

@ashleygwilliams
Copy link
Contributor

ashleygwilliams commented Apr 18, 2016

hey! i think this is a p good question, though i don't think the solution lies with any technical extension of scripty. a Gruntfile or a Brocfile is baffling to a user unfamiliar with Broccoli or Grunt. Similarly, the appearance of any framework or platform enforced abstraction is going to be confusing to people who aren't familiar with that framework or platform.

i always recommend documenting the frameworks a project uses, and npm scripts are a platform of sorts. i think it's a good README section, and to that end, i'd do something like:

npm scripts

MyProject uses scripty to organize npm scripts. the scripts are defined in the scripts directory. In package.json you'll see the word scripty as opposed to the script content you'd expect. For more info, see scripty's GitHub.

{{ insert table containing script names and what they do, e.g. this }}

@boneskull
Copy link
Contributor Author

@ashleygwilliams great idea. thanks!

@searls
Copy link
Member

searls commented Apr 19, 2016

Closing, I hope that #32 is sufficient for now. Thank you for the feedback, @boneskull

@searls searls closed this as completed Apr 19, 2016
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

No branches or pull requests

3 participants