mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
14 lines
296 B
JavaScript
14 lines
296 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const tpl = fs.readFileSync(
|
|
path.resolve(__dirname, 'deploy-doc.sh.tpl')
|
|
).toString()
|
|
|
|
const script = tpl.replace(/\$VERSION/g, require('../package.json').version)
|
|
|
|
fs.writeFileSync(
|
|
path.resolve(__dirname, 'deploy-doc.sh'),
|
|
script
|
|
)
|