Skip to content

Commit

Permalink
site: contributors file
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Mar 27, 2021
1 parent c2cff82 commit 3fee4dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist
bundle
.nyc_output
spec/_json
docs/.vuepress/components/_contributors.js
4 changes: 2 additions & 2 deletions scripts/get-contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ async function main() {

await sprite.quality(80).write(`../docs/.vuepress/components/Contributors/contributors.jpg`)

const str = `[\n\t${authors.map((a) => `'${a.login}'`).join(",\n\t")}\n]`
const str = `[\n ${authors.map((a) => `"${a.login}"`).join(",\n ")},\n]\n`

fs.writeFileSync(
`../docs/.vuepress/components/Contributors/_contributors.js`,
`export default ${str};`
`module.exports = ${str}`
)
}

Expand Down

0 comments on commit 3fee4dd

Please sign in to comment.