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
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,24 @@ Files under `test` will only be generated if the user answered yes to the prompt
163
163
164
164
Note that the `dot` option for minimatch is set to `true` so glob patterns would also match dotfiles by default.
165
165
166
+
#### Additional data available in meta.{js,json}
167
+
168
+
-`destDirName` - destination directory name
169
+
170
+
```json
171
+
{
172
+
"completeMessage": "To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev"
173
+
}
174
+
```
175
+
176
+
-`inPlace` - generating template into current directory
177
+
178
+
```json
179
+
{
180
+
"completeMessage": "{{#inPlace}}To get started:\n\n npm install\n npm run dev.{{else}}To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev.{{/inPlace}}"
"completeMessage": "{{#inPlace}}To get started:\n\n npm install\n npm run dev.{{else}}To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev.{{/inPlace}}"
0 commit comments