Skip to content

[Discussion] Strategy Change #1

@kalisjoshua

Description

@kalisjoshua

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:

  1. Is there a way to "capture" npm run ... calls and do something with nabs before, after, or instead of letting npm do its work? If so this might be a better solution.
  2. If the first option isn't possible, maybe register the "tasks" in the package.json script directives and have them simply execute nabs "tasks".
  3. If you are OK with a global package executable however you could skip the package.json completely 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions