forked from MapComplete/MapComplete
Chore: update idPresets, include script to update the translation files
This commit is contained in:
parent
19b662273a
commit
55bf0fa2f1
16 changed files with 2179 additions and 441 deletions
10
scripts/thieves/prepareIdPresets.sh
Executable file
10
scripts/thieves/prepareIdPresets.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
cd ~/git/id-tagging-schema/
|
||||
git pull
|
||||
nvm use
|
||||
transifex_password="1/9b0a0299f5f9889a372842dc91ea956f4ab16a7b"
|
||||
export transifex_password
|
||||
npm run translations
|
||||
npm run build
|
||||
npm run dist
|
|
@ -305,10 +305,12 @@ class ReadIdPresets extends Script {
|
|||
}
|
||||
|
||||
async main(args: string[]): Promise<void> {
|
||||
console.log("Did you run 'prepareIdPresets.sh first?")
|
||||
const targetDir = args[1] ?? "./assets/layers/id_presets/"
|
||||
|
||||
const gitReposRoot = "../"
|
||||
const makiThief = new MakiThief(
|
||||
"../maki/icons/",
|
||||
gitReposRoot + "maki/icons/",
|
||||
targetDir + "maki-",
|
||||
{
|
||||
authors: ["Maki icon set"],
|
||||
|
@ -319,7 +321,7 @@ class ReadIdPresets extends Script {
|
|||
)
|
||||
|
||||
const temakiThief = new MakiThief(
|
||||
"../temaki/icons/",
|
||||
gitReposRoot + "temaki/icons/",
|
||||
targetDir + "temaki-",
|
||||
{
|
||||
authors: ["Temaki icon set"],
|
||||
|
@ -329,7 +331,7 @@ class ReadIdPresets extends Script {
|
|||
"temaki-"
|
||||
)
|
||||
const fasThief = new MakiThief(
|
||||
"../Font-Awesome/svgs/solid/",
|
||||
gitReposRoot + "Font-Awesome/svgs/solid/",
|
||||
targetDir + "fas-",
|
||||
{
|
||||
authors: ["Font-Awesome icon set"],
|
||||
|
@ -339,7 +341,7 @@ class ReadIdPresets extends Script {
|
|||
"fas-"
|
||||
)
|
||||
const roentgenThief = new MakiThief(
|
||||
"../Roentgen/icons/",
|
||||
gitReposRoot + "Roentgen/icons/",
|
||||
targetDir+"roentgen-",
|
||||
{
|
||||
authors: ["Roentgen icon set"],
|
||||
|
@ -351,7 +353,7 @@ class ReadIdPresets extends Script {
|
|||
|
||||
const iconThief = new AggregateIconThief([makiThief, temakiThief, fasThief, roentgenThief])
|
||||
|
||||
const thief = new IdThief(args[0] ?? "../id-tagging-schema/", iconThief)
|
||||
const thief = new IdThief(args[0] ?? gitReposRoot + "id-tagging-schema/", iconThief)
|
||||
|
||||
const id_presets_path = targetDir + "id_presets.json"
|
||||
const idPresets = <LayerConfigJson>JSON.parse(readFileSync(id_presets_path, "utf8"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue