This commit is contained in:
Timo Hocker 2020-05-08 09:58:49 +02:00
parent 6b0b40a292
commit 3545ba6a48
2 changed files with 9 additions and 9 deletions

View File

@ -12,8 +12,8 @@ import fs from 'fs-extra';
/**
* write a template to a file
*
* @param {string} contents file contents
* @param {string} destination file destination
* @param contents - file contents
* @param destination - file destination
*/
async function apply_template (
contents: string,
@ -34,8 +34,8 @@ type JSONMutator = {
/**
* modify a json file
*
* @param {Function} func function that modifies the object
* @param {string} json_path path of json file
* @param func - function that modifies the object
* @param json_path - path of json file
*/
async function modify_json (
func: JSONMutator,
@ -50,8 +50,8 @@ async function modify_json (
/**
* run a command
*
* @param {string} command command to run
* @param {string} folder folder to run in
* @param command - command to run
* @param folder - folder to run in
*/
function run_command (command: string, folder = ''): void {
// eslint-disable-next-line no-sync

View File

@ -19,9 +19,9 @@ import {
/**
* initialize the package.json
*
* @param {string} folder folder
* @param {boolean} use_ts use_ts
* @param {boolean} use_tests use_tests
* @param folder - folder
* @param use_ts - use typescript
* @param use_tests - use tests
*/
async function init_package (
folder: string,