* Bump deps

* Fix linting
This commit is contained in:
Jaco Greeff
2020-10-23 12:53:56 +02:00
committed by GitHub
parent dafc92809d
commit cd94d01b06
4 changed files with 424 additions and 486 deletions
+2 -2
View File
@@ -31,8 +31,8 @@
"@polkadot/types": "2.3.2-11",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/x-fetch": "^0.3.3",
"@polkadot/x-ws": "^0.3.3",
"@polkadot/x-fetch": "^0.3.4",
"@polkadot/x-ws": "^0.3.4",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7"
},
+3 -2
View File
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import fs from 'fs';
import path from 'path';
export function writeFile (dest: string, generator: () => string, noLog?: boolean): void {
!noLog && console.log(`${dest}\n\tGenerating`);
@@ -19,6 +20,6 @@ export function writeFile (dest: string, generator: () => string, noLog?: boolea
!noLog && console.log('');
}
export function readTemplate (path: string): string {
return fs.readFileSync(`${__dirname}/../templates/${path}.hbs`).toString();
export function readTemplate (template: string): string {
return fs.readFileSync(path.join(__dirname, `../templates/${template}.hbs`)).toString();
}