Skip to content

default tasks #5

@jonschlinkert

Description

@jonschlinkert

Here's what I'm thinking (this all works locally):

  • when tasks are explicitly defined on argv, run them
  • when no tasks are explicitly defined on argv
    • if .verb.md exists AND no verbfile.js exists, run the readme task (the downside is that we need also inform the user that verb-readme-generator needs to be installed)
    • if no .verb.md, set the default task to default (we can also ask the user if they want to add one, and if so, we can generate it then set the default task to readme)
    • if tasks were not passed on argv and the tasks property defined on the verb config object in package.json or in .verb.json, we will use that value

Questions:

  • If tasks are defined in package.json on the verb config object, or in .verb.json, AND a verbfile.js exists, IMO that doesn't change anything, we should still run the tasks defined on the config object. Pushback? thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions