id-tagging-schema/scripts/dist.js
Martin Raifer 6fc8f4dfe3
add npm run dist translations command
and don't purge translations on `npm run dist`
2022-11-18 13:03:05 +01:00

23 lines
765 B
JavaScript

import schemaBuilder from '@ideditor/schema-builder';
let translationOptions = {};
if (process.argv.includes('translations')) {
translationOptions = {
translOrgId: 'openstreetmap',
translProjectId: 'id-editor',
translResourceIds: ['presets'],
translReviewedOnly: ['vi']
};
}
schemaBuilder.buildDist({
taginfoProjectInfo: {
name: 'iD Tagging Schema',
description: 'Presets available in the iD and Go Map!! editors and recognized by the Overpass turbo query wizard',
project_url: 'https://github.com/openstreetmap/id-tagging-schema/',
icon_url: 'https://cdn.jsdelivr.net/gh/openstreetmap/iD@release/dist/img/logo.png',
contact_name: 'Martin Raifer',
contact_email: 'martin@raifer.tech'
},
...translationOptions
});