mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
233 B
11 lines
233 B
5 years ago
|
const fs = require('fs-extra')
|
||
5 years ago
|
const glob = require('globby')
|
||
5 years ago
|
|
||
|
function toDest(file) {
|
||
|
return file.replace(/^src\//, 'dist/')
|
||
|
}
|
||
|
|
||
5 years ago
|
glob.sync('src/client/**/!(*.ts|tsconfig.json)').forEach((file) => {
|
||
|
fs.copy(file, toDest(file))
|
||
|
})
|