Rename serializeConfig.* to test-serializer.*
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
typings
|
typings
|
||||||
uhk-config.bin
|
uhk-config.bin
|
||||||
serializeConfig.js
|
test-serializer.js
|
||||||
|
|||||||
@@ -6,10 +6,8 @@
|
|||||||
|
|
||||||
let fs = require('fs');
|
let fs = require('fs');
|
||||||
let writer = new UhkBuffer();
|
let writer = new UhkBuffer();
|
||||||
|
|
||||||
let uhkConfig = JSON.parse(fs.readFileSync('uhk-config.json'));
|
let uhkConfig = JSON.parse(fs.readFileSync('uhk-config.json'));
|
||||||
let keyActions = uhkConfig.keymaps[0].layers[0].modules[0].keyActions;
|
let keyActions = uhkConfig.keymaps[0].layers[0].modules[0].keyActions;
|
||||||
console.log(keyActions);
|
|
||||||
let keyActionObjects: KeyActions = new KeyActions().fromJsObject(keyActions);
|
let keyActionObjects: KeyActions = new KeyActions().fromJsObject(keyActions);
|
||||||
keyActionObjects.toBinary(writer);
|
keyActionObjects.toBinary(writer);
|
||||||
fs.writeFileSync('uhk-config.bin', writer.buffer);
|
fs.writeFileSync('uhk-config.bin', writer.buffer);
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"out": "serializeConfig.js",
|
"out": "test-serializer.js",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"experimentalDecorators": true
|
"experimentalDecorators": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"../typings/main.d.ts",
|
"../typings/main.d.ts",
|
||||||
"serializeConfig.ts"
|
"test-serializer.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user