Replace go-bindata with Go embed
Co-authored-by: nrwiersma <nick@wiersma.co.za>
This commit is contained in:
parent
7ff13c3e3e
commit
70359e5d27
27 changed files with 142 additions and 205 deletions
|
@ -4,9 +4,9 @@ const folder = process.argv[2]
|
|||
|
||||
async function execute () {
|
||||
try {
|
||||
await fs.emptyDir('../static')
|
||||
await fs.emptyDir('./static')
|
||||
console.log('Deleted static folder contents!')
|
||||
await fs.copy(`./dist/${folder}`, '../static', { overwrite: true })
|
||||
await fs.copy(`./dist/${folder}`, './static', { overwrite: true })
|
||||
console.log('Installed new files in static folder!')
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue