EGOIST

Results 413 comments of EGOIST

Hmm there's no native support for now, however here's a workaround: Using shelljs to move files in `post` hook: https://sao.js.org/#/create?id=post-hook

@KeitIG you can export a function in the config file and conditionally set what you should `prompt` 😄 https://sao.js.org/#/create?id=exporting-a-function

It's possible to skip certain prompts in https://github.com/terkelg/prompts ~~A new version https://github.com/saojs/kopy will use it :P~~ Maybe not now, It's missing some important features

Currently not possible, any idea on how it will look like?

Maybe something like this: *template-editorconfig*: ```js // sao.js module.exports = { prompts: { tab: { type: 'confirm', default: false } }, post() { console.log('Generated .editorconfig file!') } } ``` *template-gitignore*:...

Maybe rename `dependencies` to `subTemplates`, and add conditional sub template support: ```js // sao.js module.exports = { subTemplates(answers) { return { editorconfig: true, gitignore: answers.addGitignore } }, prompts: { addGitignore:...

would be nice to have a custom badge, like ![](https://camo.githubusercontent.com/13c4e50d88df7178ae1882a203ed57b641674f94/68747470733a2f2f63646e2e7261776769742e636f6d2f73696e647265736f726875732f617765736f6d652f643733303566333864323966656437386661383536353265336136336531353464643865383832392f6d656469612f62616467652e737667) for awesome

maybe export the path to your actual template? ```js const path = require('path') module.exports = path.dirname(require.resolve('template-foo/package')) ```

You can append a branch like this `user/repo#main`, maybe a better solution is to send a request to GitHub API to retrieve the default branch name.

@seaneking loading generators based on folder structure and using inline front matter instead of config file look pretty interesting 👀 maybe we should consider that too.