first commit
This commit is contained in:
3
scripts/build.js
Normal file
3
scripts/build.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import schemaBuilder from '@ideditor/schema-builder';
|
||||
|
||||
schemaBuilder.buildDev();
|
||||
23
scripts/dist.js
Normal file
23
scripts/dist.js
Normal 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
3
scripts/test.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import schemaBuilder from '@ideditor/schema-builder';
|
||||
|
||||
schemaBuilder.validate();
|
||||
8
scripts/translations.js
Normal file
8
scripts/translations.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import schemaBuilder from '@ideditor/schema-builder';
|
||||
|
||||
schemaBuilder.fetchTranslations({
|
||||
translOrgId: 'openstreetmap',
|
||||
translProjectId: 'id-editor',
|
||||
translResourceIds: ['presets'],
|
||||
translReviewedOnly: ['vi']
|
||||
});
|
||||
Reference in New Issue
Block a user