mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
feat: use mustache instead of tangular
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 StApps
|
||||
* Copyright (C) 2018, 2019 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
@@ -20,9 +20,11 @@ import {readFile, unlink, writeFile} from 'fs';
|
||||
import * as glob from 'glob';
|
||||
import {promisify} from 'util';
|
||||
|
||||
/**
|
||||
* Instantiated logger
|
||||
*/
|
||||
export const readFilePromisified = promisify(readFile);
|
||||
export const globPromisified = promisify(glob);
|
||||
export const writeFilePromisified = promisify(writeFile);
|
||||
export const unlinkPromisified = promisify(unlink);
|
||||
|
||||
export const logger = new Logger();
|
||||
|
||||
/**
|
||||
@@ -65,20 +67,3 @@ export async function getSubGroups(api: Api, groups: number[]): Promise<Group[]>
|
||||
export function flatten2dArray<T>(arr: T[][]): T[] {
|
||||
return ([] as T[]).concat(...arr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Promisified version of readFile
|
||||
*/
|
||||
export const readFilePromisified = promisify(readFile);
|
||||
/**
|
||||
* Promisified version of glob
|
||||
*/
|
||||
export const globPromisified = promisify(glob);
|
||||
/**
|
||||
* Promisified version of writeFile
|
||||
*/
|
||||
export const writeFilePromisified = promisify(writeFile);
|
||||
/**
|
||||
* Promisified version of unlink
|
||||
*/
|
||||
export const unlinkPromisified = promisify(unlink);
|
||||
|
||||
Reference in New Issue
Block a user