mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-05 16:17:00 +08:00
集成swagger
This commit is contained in:
@@ -10,6 +10,16 @@ const releasePath = path.resolve(cwd, releaseRelativePath)
|
||||
|
||||
const goProjectPath = path.resolve(cwd, '../server')
|
||||
async function build_go() {
|
||||
await execaCommand('swag fmt', {
|
||||
stdio: 'inherit',
|
||||
encoding: 'utf-8',
|
||||
cwd: goProjectPath
|
||||
})
|
||||
await execaCommand('swag init', {
|
||||
stdio: 'inherit',
|
||||
encoding: 'utf-8',
|
||||
cwd: goProjectPath
|
||||
})
|
||||
await execaCommand('goreleaser release --snapshot --clean', {
|
||||
stdio: 'inherit',
|
||||
encoding: 'utf-8',
|
||||
|
Reference in New Issue
Block a user