修改一些目录结构

This commit is contained in:
2021-08-16 22:29:43 +08:00
parent 6a1f9a3f6b
commit f7771815d8
9 changed files with 228 additions and 103 deletions

15
build Executable file
View 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)