Small tweaks to the workflow

This commit is contained in:
pietervdvn 2021-04-10 16:20:40 +02:00
parent b3a2dc3c2f
commit 03cea766d7
3 changed files with 9 additions and 5 deletions

View file

@ -25,7 +25,11 @@ jobs:
run: "echo '{\"layers\": [], \"themes\": []}' > ./assets/generated/known_layers_and_themes.json"
- name: Compile license info
run: npm run validate:licenses
run: npm run generate:licenses
- name: Compile and validate themes and layers
run: npm run validate:layeroverview
- name: Validate license info
run: npm run validate:licenses

View file

@ -26,7 +26,7 @@ jobs:
- name: Compile license info
run: npm run generate:licenses
run: npm run validate:licenses
- name: Compile themes and layers
run: npm run generate:layeroverview
run: npm run validate:layeroverview

View file

@ -15,8 +15,8 @@
"generate:translations": "ts-node scripts/generateTranslations.ts",
"generate:layouts": "ts-node scripts/generateLayouts.ts",
"generate:docs": "ts-node scripts/generateDocs.ts",
"generate:layeroverview": "ts-node scripts/generateLayerOverview.ts",
"generate:licenses": "ts-node scripts/generateLicenseInfo.ts",
"generate:layeroverview": "ts-node scripts/generateLayerOverview.ts --no-fail",
"generate:licenses": "ts-node scripts/generateLicenseInfo.ts --no-fail",
"validate:layeroverview": "ts-node scripts/generateLayerOverview.ts",
"validate:licenses": "ts-node scripts/generateLicenseInfo.ts",
"optimize-images": "cd assets/generated/ && find -name '*.png' -exec optipng '{}' \\; && echo 'PNGs are optimized'",