Skip to content

Commit f39241a

Browse files
authored
Fix style
1 parent 8932af1 commit f39241a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,26 +187,26 @@ The `skipInterpolation` field in the metadata file should be a [minimatch glob p
187187

188188
You may customize the metalsmith builder created by vue-cli to register custom plugins.
189189

190-
```javascript
190+
```js
191191
{
192-
"metalsmith": function(metalsmith, opts, helpers) {
193-
function customMetalsmithPlugin(files, metalsmith, done) {
192+
"metalsmith": function (metalsmith, opts, helpers) {
193+
function customMetalsmithPlugin (files, metalsmith, done) {
194194
// Implement something really custom here.
195-
done(null, files);
195+
done(null, files)
196196
}
197197

198-
metalsmith.use(customMetalsmithPlugin);
198+
metalsmith.use(customMetalsmithPlugin)
199199
}
200200
}
201201
```
202202

203203
If you need your to hook metalsmith before questions are asked, you may use an object with `before`/`after` keys
204204

205-
```javascript
205+
```js
206206
{
207207
"metalsmith": {
208-
before: function(metalsmith, opts, helpers) {},
209-
after: function(metalsmith, opts, helpers) {}
208+
before: function (metalsmith, opts, helpers) {},
209+
after: function (metalsmith, opts, helpers) {}
210210
}
211211
}
212212
```
@@ -236,7 +236,7 @@ Arguments:
236236
- `data`: the same data you can access in `completeMessage`:
237237
```js
238238
{
239-
complete(data) {
239+
complete (data) {
240240
if (!data.inPlace) {
241241
console.log(`cd ${data.destDirName}`)
242242
}
@@ -250,7 +250,7 @@ Arguments:
250250
- `files`: An array of generated files
251251
```js
252252
{
253-
complete(data, {logger, chalk}) {
253+
complete (data, {logger, chalk}) {
254254
if (!data.inPlace) {
255255
logger.log(`cd ${chalk.yellow(data.destDirName)}`)
256256
}

0 commit comments

Comments
 (0)