chore: add convert-user-config-to-bin npm script (#1022)

usage of the script
`$ npm run convert-user-config-to-bin -- <path of the bin file>`
This commit is contained in:
Róbert Kiss
2019-08-23 19:33:14 +02:00
committed by László Monda
parent 239c989cbe
commit ac76674469
2 changed files with 2 additions and 4 deletions

View File

@@ -101,6 +101,7 @@
"release": "node ./scripts/release.js",
"clean": "lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist ./tmp",
"predeploy-gh-pages": "lerna run build:web --scope=uhk-web",
"deploy-gh-pages": "gh-pages -d packages/uhk-web/dist"
"deploy-gh-pages": "gh-pages -d packages/uhk-web/dist",
"convert-user-config-to-bin": "node -r ts-node/register ./packages/usb/user-config-json-to-bin.ts"
}
}

View File

@@ -1,6 +1,3 @@
#!/usr/bin/env ts-node
///<reference path="./node_modules/@types/node/index.d.ts"/>
import { UhkBuffer, UserConfiguration } from 'uhk-common';
import * as fs from 'fs';