You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
caveat: `Your app has been created successfully!`,
173
175
});
174
176
```
175
177
178
+
### templateRoot (required)
179
+
176
180
`templateRoot` set to `path.resolve(__dirname, '../templates')`. You can change it to whereever you want.
177
181
178
-
### `extra`
182
+
### promptForTemplate (default: `false`)
183
+
184
+
Ask users to choose a template to be used for initialization only if `promptForTemplate` is set `true` AND there's multiple templates found in `templates/`.
185
+
186
+
With `promptForTemplate` set `false`, users still can specify template via command-line flag `--template`:
187
+
188
+
```
189
+
create-something <name> --template <template>
190
+
```
191
+
192
+
### extra (default: `undefined`)
179
193
180
194
`object | undefined`
181
195
182
196
Extra options passed to the app. These options will be accessible as a cli option, interactive question, and template string. In this case, `--language` cli option and `{{language}}` template string will be available.
183
197
184
198
You can find all possible options in [yargs-interactive documentation](https://github.com/nanovazquez/yargs-interactive#options).
185
199
186
-
### `caveat`
200
+
### modifyName (default: `undefined`)
201
+
202
+
`(name: string) => string | Promise<string>`
203
+
204
+
Modify `name` property.
205
+
206
+
### after (default: `undefined`)
207
+
208
+
`(options: AfterHookOptions) => void`
209
+
210
+
After hook script that runs after the initialization.
0 commit comments