-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Sorry for taking so long in providing feedback.
I like the idea of breaking out the command from the package.json file as they can become long and difficult to read; and really ugly to comment. However, it feels a little weird to me to have a source file (nabs.yml) that exists to make changes to package.json. The reason, I think, that it feels weird to me is because when you make changes to the nabs.yml file you also must remember to run the conversion for package.json as well.
I've been thinking about this a little bit. My, two, suggestions for thought exploration are:
- Is there a way to "capture"
npm run ...calls and do something with nabs before, after, or instead of lettingnpmdo its work? If so this might be a better solution. - If the first option isn't possible, maybe register the "tasks" in the
package.jsonscript directives and have them simply execute nabs "tasks". - If you are OK with a global package executable however you could skip the
package.jsoncompletely IMHO.
I personally avoid installing any npm modules globally as a rule. I've even thought about setting up my shell to include $(cwd)/node_modules/.bin/ to my path so that I can install modules locally but use them as if they were global.