File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,36 @@ builder
220
220
221
221
This step would append "Paul Plain was here!" to the user's README.md
222
222
223
+ #### Creating a custom message
224
+
225
+ Sometimes you need to print a simple message, or give some instructions,
226
+ you can achieve that with ` printMessage `
227
+
228
+ ``` ts
229
+ builder .printMessage ({
230
+ successIcon: " ℹ️" ,
231
+ stepId: " oops" ,
232
+ stepName: " Contributors needed!" ,
233
+ message: " If you like this recipe, consider helping out!" ,
234
+ })
235
+ ```
236
+
237
+ This step would print "If you like this recipe, consider helping out!" to
238
+ terminal and wait for the user to go to the next step.
239
+
240
+ #### Custom step icons
241
+
242
+ If you want to customize your recipe even further, you can pass an
243
+ optional ` successIcon ` param to your steps.
244
+
245
+ ``` ts
246
+ builder
247
+ .addTransformFilesStep ({
248
+ successIcon: " 🔧" ,
249
+ ...
250
+ })
251
+ ```
252
+
223
253
#### Modifying Prisma schemas
224
254
225
255
A lot of recipes may need to add or modify models in the schema.prisma
You can’t perform that action at this time.
0 commit comments