ant-app-builder
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -9,5 +9,5 @@ | ||
let list = await FS.readDir(src) | ||
list.filter(f => !f.startsWith(".")) | ||
.map(async file => { | ||
list = list.filter(f => !f.startsWith(".")) | ||
await Promise.all(list.map(async file => { | ||
let fSrc = FS.path.join(src, file) | ||
@@ -24,3 +24,3 @@ let fDest = FS.path.join(dest, file) | ||
} | ||
}) | ||
})) | ||
} | ||
@@ -48,2 +48,3 @@ | ||
let list = await FS.readDir(dir) | ||
console.log(list) | ||
list = list.filter(f => !f.startsWith(".")) | ||
@@ -73,2 +74,4 @@ | ||
mkDir, | ||
rmdir: util.promisify(fs.rmdir), | ||
unlink: util.promisify(fs.unlink), | ||
readDir: util.promisify(fs.readdir), | ||
@@ -75,0 +78,0 @@ readFile: util.promisify(fs.readFile), |
@@ -138,2 +138,7 @@ | ||
return new Promise(async (resolve, reject) => { | ||
if (await FS.fileExists(destDir)) { | ||
// first clean up | ||
await FS.deleteDir(destDir) | ||
} | ||
let appXml = await FS.readFile(`${srcDir}/index.xml`) | ||
@@ -140,0 +145,0 @@ appXml = appXml.toString() |
{ | ||
"name": "ant-app-builder", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -6,3 +6,3 @@ | ||
let srcDir = path.join(__dirname, "temp/test") | ||
let destDir = path.join(__dirname, "temp/_build") | ||
let destDir = path.join(__dirname, "temp/test/_build") | ||
let uglify = true | ||
@@ -9,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44881
259