Releases: kaizendorks/dexa
Releases · kaizendorks/dexa
v0.3.1
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
loadTemplatesthat combines default information with any custom properties defined in the optionaldexa.jsfile of the stack.
Template
- rename the
rendermethod asapply, since not every template will copy/render files. Some might provide a custom overriden action and just use execa to for examplenpx fastify-cli init
Init
- add optional description for stack in dexa.js, use it as
program.descriptionwhen wiring all thedx initcommands. (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
v0.3.0
General
- Rewrite to ES6. This will better align the project so customizations in stacks are also preferably done in ES modules, as well as supporting top-level async-await
Stack management
- Can now add stacks from a local folder using
dx stack add(previously only stack from git repos could be added). This will help testing stacks while they are created/updated, as well as testing features of dexa like prompt to install stack when executingdx add/generatecommands.
Add command
- First implementation of the command now available. Stacks can define their own "add" commands by just adding template folders inside their
/add, for example adding./add/unit-testmakesdx add unit-testavailable for projects using that stack. There is zero config or metadata needed other than the template folder. - The
dx addcommand has to be run in the context of the root folder of a project previously initialized withdx init(ie, a folder that contains a.dexarcfile). A specific error is returned if the command is run in other folders - In case the
.dexarcfile references a stack not found locally, thedx addcommand will automatically prompt the user to install the stack.
Generate command
- First implementation of the command now available. Stacks can define their own "generate" commands by just adding template folders inside their
/generate, for example adding./generate/apimakesdx generate apiavailable for projects using that stack. There is zero config or metadata needed other than the template folder. - All the
dx generatecommands will take a[name]required argument as indx generate page my-new-page. - The
dx generatecommand has to be run in the context of the root folder of a project previously initialized withdx init(ie, a folder that contains a.dexarcfile). A specific error is returned if the command is run in other folders - In case the
.dexarcfile references a stack not found locally, thedx generatecommand will automatically prompt the user to install the stack.