forked from MapComplete/MapComplete
Small tweaks to the deploy scripts
This commit is contained in:
parent
4e1fc46ff2
commit
a8aaf4b219
10 changed files with 65 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue