first commit

This commit is contained in:
2024-08-04 21:09:59 +08:00
commit 85d65d596a
2711 changed files with 540473 additions and 0 deletions

3
scripts/build.js Normal file
View File

@@ -0,0 +1,3 @@
import schemaBuilder from '@ideditor/schema-builder';
schemaBuilder.buildDev();

23
scripts/dist.js Normal file
View File

@@ -0,0 +1,23 @@
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 editor, Rapid, StreetComplete, Go Map!!, Every Door, and other applications',
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
});

3
scripts/test.js Normal file
View File

@@ -0,0 +1,3 @@
import schemaBuilder from '@ideditor/schema-builder';
schemaBuilder.validate();

8
scripts/translations.js Normal file
View File

@@ -0,0 +1,8 @@
import schemaBuilder from '@ideditor/schema-builder';
schemaBuilder.fetchTranslations({
translOrgId: 'openstreetmap',
translProjectId: 'id-editor',
translResourceIds: ['presets'],
translReviewedOnly: ['vi']
});