mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-05 23:27:40 +00:00
Merge pull request #7250 from keymanapp/chore/developer/7221-use-local-ref-to-json-schema
chore(developer): kmc - use local reference for json schema 🙀
This commit is contained in:
commit
3f58f2d2e8
3 changed files with 14 additions and 13 deletions
|
|
@ -294,7 +294,7 @@ if $CONFIGURE; then
|
|||
echo "Note: Found node, checking and building kmc dependency if needed"
|
||||
if [[ ! -f "$KEYMAN_ROOT/developer/src/kmc/build/kmc.js" ]]; then
|
||||
"$KEYMAN_ROOT/common/web/keyman-version/build.sh" configure build
|
||||
"$KEYMAN_ROOT/developer/src/kmc/build.sh" build
|
||||
"$KEYMAN_ROOT/developer/src/kmc/build.sh" configure build
|
||||
"$KEYMAN_ROOT/common/tools/hextobin/build.sh" build
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
|
|
@ -31,13 +31,6 @@ builder_parse "$@"
|
|||
|
||||
#-------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if builder_has_action configure; then
|
||||
verify_npm_setup
|
||||
builder_report success configure
|
||||
fi
|
||||
|
||||
#-------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if builder_has_action clean; then
|
||||
rm -rf ./build/ ./tsconfig.tsbuildinfo
|
||||
builder_report success clean
|
||||
|
|
@ -45,10 +38,20 @@ fi
|
|||
|
||||
#-------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if builder_has_action configure; then
|
||||
verify_npm_setup
|
||||
|
||||
# We need the schema file at runtime and bundled
|
||||
mkdir -p "$THIS_SCRIPT_PATH/build/src/"
|
||||
cp "$KEYMAN_ROOT/resources/standards-data/ldml-keyboards/techpreview/ldml-keyboard.schema.json" "$THIS_SCRIPT_PATH/build/src/"
|
||||
|
||||
builder_report success configure
|
||||
fi
|
||||
|
||||
#-------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
if builder_has_action build; then
|
||||
npm run build
|
||||
# We need the schema file at runtime and bundled
|
||||
cp "$KEYMAN_ROOT/resources/standards-data/ldml-keyboards/techpreview/ldml-keyboard.schema.json" "$THIS_SCRIPT_PATH/build/src/"
|
||||
builder_report success build
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -30,9 +30,7 @@ export class CompilerCallbacks {
|
|||
this.messages.push(event);
|
||||
}
|
||||
loadLdmlKeyboardSchema(): Buffer {
|
||||
// Relative paths phooey!
|
||||
return fs.readFileSync(path.join(__dirname, '..', '..', '..', '..', '..', '..',
|
||||
'resources', 'standards-data', 'ldml-keyboards', 'techpreview', 'ldml-keyboard.schema.json'));
|
||||
return fs.readFileSync(path.join(__dirname, '..', '..', 'src', 'ldml-keyboard.schema.json'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue