Skip to content

v0.3.1

Latest
Compare
Choose a tag to compare
@DaniJG DaniJG released this 03 Sep 21:55
· 3 commits to main since this release

General

  • added npmignore to exclude files from published package
  • Refactor stack-manager to use top-level await when loading all the stacks. Every time a stack is loaded/created, its init/add/generate templates are loaded with an async method loadTemplates that combines default information with any custom properties defined in the optional dexa.js file of the stack.

Template

  • rename the render method as apply, since not every template will copy/render files. Some might provide a custom overriden action and just use execa to for example npx fastify-cli init

Init

  • add optional description for stack in dexa.js, use it as program.description when wiring all the dx init commands. (would need to refactor current dx-add.js to create a command per stack)
  • add custom pre/post actions in stack's dexa.js. Call same signature than the .action (since its based on defined arguments/options)

Add

  • allow extra config/metadata to be defined in dexa.js.
    • description
    • The same pre/postAction than in init are available

Generate

  • allow extra config/metadata to be defined in dexa.js.
    • description
    • The same pre/postAction than in init are available