Small tweaks to the deploy scripts

This commit is contained in:
Pieter Vander Vennet 2021-04-10 15:01:28 +02:00
parent 4e1fc46ff2
commit a8aaf4b219
10 changed files with 65 additions and 19 deletions

View file

@ -182,16 +182,19 @@ writeFileSync("./assets/generated/license_info.json", JSON.stringify(licenseInfo
const artwork = contents.filter(pth => pth.match(/(.svg|.png|.jpg)$/i) != null)
const missingLicenses = missingLicenseInfos(licenseInfos, artwork)
cleanLicenseInfo(licensePaths, licenseInfos)
if(missingLicenses.length > 0){
const msg = `There are ${missingLicenses.length} licenses missing.`
/*
console.log(msg)
/*/
throw msg
//*/
if(process.argv.indexOf("--no-fail") >= 0){
console.log(msg)
}else{
throw msg
}
}
// queryMissingLicenses(missingLicenses)
if(process.argv.indexOf("--prompt") >= 0) {
queryMissingLicenses(missingLicenses)
}
cleanLicenseInfo(licensePaths, licenseInfos)