Modify package structure
This commit is contained in:
25
publish/copyAndAbstractLess.js
Normal file
25
publish/copyAndAbstractLess.js
Normal 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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user