Modify package structure

This commit is contained in:
jiaming743
2019-07-03 18:32:59 +08:00
parent 376d723a2b
commit 6c5b5593d4
66 changed files with 310 additions and 138 deletions

View File

@ -0,0 +1,25 @@
const { copyDir, fileForEach } = require('./plugin/fs')
const { print } = require('./plugin/print')
const PACKAGE_SRC = './src'
const COMPILE_SRC = './lib'
async function start () {
const copyPackage = await copyDir(PACKAGE_SRC, COMPILE_SRC)
if (!copyPackage) {
print.error('Exception in copyPackage!')
return false
}
fileForEach(COMPILE_SRC, src => {
print.tip(src)
})
}
module.exports = {
start
}