Got rid of the last brace-typed and hyphen-less params etc

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-01-09 15:56:07 +01:00
parent c8ff2df05a
commit 5333451def
72 changed files with 247 additions and 423 deletions
+9 -9
View File
@@ -167,8 +167,8 @@ export async function checkAppExistsTask(rootDir: string, name: string) {
/**
* Verify that application `path` exists, otherwise create the directory
*
* @param {string} path - target to create directory
* @throws {Error} if `path` is a file, or `fs.mkdir` fails
* @param path - target to create directory
* @throws if `path` is a file, or `fs.mkdir` fails
*/
export async function checkPathExistsTask(path: string) {
await Task.forItem('checking', path, async () => {
@@ -184,8 +184,8 @@ export async function checkPathExistsTask(path: string) {
/**
* Create a folder to store templated files
*
* @param {string} tempDir - target temporary directory
* @throws {Error} if `fs.mkdir` fails
* @param tempDir - target temporary directory
* @throws if `fs.mkdir` fails
*/
export async function createTemporaryAppFolderTask(tempDir: string) {
await Task.forItem('creating', 'temporary directory', async () => {
@@ -200,7 +200,7 @@ export async function createTemporaryAppFolderTask(tempDir: string) {
/**
* Run `yarn install` and `run tsc` in application directory
*
* @param {string} appDir - location of application to build
* @param appDir - location of application to build
*/
export async function buildAppTask(appDir: string) {
const runCmd = async (cmd: string) => {
@@ -221,10 +221,10 @@ export async function buildAppTask(appDir: string) {
/**
* Move temporary directory to destination application folder
*
* @param {string} tempDir source path to copy files from
* @param {string} destination target path to copy files
* @param {string} id
* @throws {Error} if `fs.move` fails
* @param tempDir - source path to copy files from
* @param destination - target path to copy files
* @param id - item ID
* @throws if `fs.move` fails
*/
export async function moveAppTask(
tempDir: string,