修改一些目录结构
This commit is contained in:
15
build
Executable file
15
build
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/env node
|
||||
const shell = require('shelljs')
|
||||
const path = require('path')
|
||||
|
||||
const dist_dir_path = path.resolve(__dirname,'dist')
|
||||
|
||||
shell.rm('-rf',dist_dir_path)
|
||||
|
||||
shell.exec('tsc')
|
||||
|
||||
shell.exec('./check-config')
|
||||
|
||||
shell.cp('./.env',dist_dir_path)
|
||||
shell.cp('./ormconfig.json',dist_dir_path)
|
||||
shell.cp('-r','./views',dist_dir_path)
|
Reference in New Issue
Block a user