@@ -21,13 +21,15 @@ export default function generateReadme({
21
21
template = template . replace ( '{{projectName}}' , projectName )
22
22
23
23
if ( needsTypeScript ) {
24
- template = template . replace ( '<!-- SFC-TYPE-SUPPORT -->\n' , sfcTypeSupportDoc )
24
+ template = template . replace (
25
+ '<!-- SFC-TYPE-SUPPORT -->\n' ,
26
+ sfcTypeSupportDoc
27
+ )
25
28
} else {
26
29
template = template . replace ( '<!-- SFC-TYPE-SUPPORT -->\n\n' , '' )
27
30
}
28
31
29
- let npmScriptsDescriptions =
30
- `\`\`\`sh
32
+ let npmScriptsDescriptions = `\`\`\`sh
31
33
${ getCommand ( packageManager , 'install' ) }
32
34
\`\`\`
33
35
@@ -45,25 +47,28 @@ ${getCommand(packageManager, 'build')}
45
47
`
46
48
47
49
if ( needsTests ) {
48
- npmScriptsDescriptions += `
50
+ npmScriptsDescriptions += `
49
51
### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
50
52
51
53
\`\`\`sh
52
- ${ getCommand ( packageManager , 'test:unit' ) } # or \`${ getCommand ( packageManager , 'test:unit:ci' ) } \` for headless testing
54
+ ${ getCommand ( packageManager , 'test:unit' ) } # or \`${ getCommand (
55
+ packageManager ,
56
+ 'test:unit:ci'
57
+ ) } \` for headless testing
53
58
\`\`\`
54
59
55
60
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
56
61
57
62
\`\`\`sh
58
- ${ getCommand ( packageManager , 'test:e2e' ) } # or \`${ getCommand ( packageManager , 'test:e2e:ci' ) } \` for headless testing
63
+ ${ getCommand ( packageManager , 'test:e2e' ) } # or \`${ getCommand (
64
+ packageManager ,
65
+ 'test:e2e:ci'
66
+ ) } \` for headless testing
59
67
\`\`\`
60
68
`
61
69
}
62
70
63
- template = template . replace (
64
- '<!-- NPM-SCRIPTS -->\n' ,
65
- npmScriptsDescriptions
66
- )
71
+ template = template . replace ( '<!-- NPM-SCRIPTS -->\n' , npmScriptsDescriptions )
67
72
68
73
return template
69
74
}
0 commit comments