-
Notifications
You must be signed in to change notification settings - Fork 23
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
more info #15
Comments
SolutionsI don't want to bury the lede here, but the tl;dr is my long-term hope with scripty is to add support for plugin modules which provide a common set of scripts to its search paths. Imagine you're building a simple node lib module in ES5 & standard, maybe you could just install the My goal with this is to enable scripty to start providing a way to solve common sets of problems without adding a bunch of unmaintainable cruft to each and every repo, particularly for classes of problems other than "build a front-end web app". For more on the background of my thinking, here are my notes: Clarify the issueI view the world of npm modules I work on in two very different categories:
Regarding (1), My opinion is that there is already a great example for dealing with this, and it's @ember-cli. For those who don't know, the ember specific bits of CLI could at this point be defined as optional add-ons, leaving behind a merely excellent set of dynamic defaults for building what at this point is a pretty well-understood problem. Despite the Node community's aversion against large modules, frameworks, etc., the truth is that big, complex problems tend to require big, complex code. You can choose whether to reinvent and maintain all that complexity in your repo if you're not in a hurry, but it seems like a waste to me. Regarding (2), the vast majority of other npm modules I work on are itty bitty by comparison, and their automation needs are almost all one-off, and not well-served by other build tools (aside from maybe So, sure, to the extent npm scripts aren't particularly expressive is a feature in a world reacting to the massive surface area of other popular build tools right now. My goal with scripty is to give a gentle offramp to something that's still maintainable without adopting a much more complex tool just to break things out into smaller files. Reactions to the blog post
|
First of all, wow. It's the most comprehensive response I've personally ever got on GitHub. "My goal with scripty is to give a gentle offramp to something that's still maintainable without adopting a much more complex tool just to break things out into smaller files." I think that's the real challenge: create a powerful and versatile tool without reinventing existing ones (making same mistakes). |
I'd like to read more how scripty can solve the problems of using npm as a build tool.
Here's a good article I think which describes some common problems: https://medium.com/@leo/should-npm-really-be-used-as-a-built-tool-e8ff4f6cbcef
Can scripty help with that? If yes, how? I'd love to read a blog post or something based on real experience.
Thanks!
The text was updated successfully, but these errors were encountered: