From c3128c3bde9eb79dfab687a0921f179c59b7a5bd Mon Sep 17 00:00:00 2001 From: aarav18 Date: Sat, 22 Jan 2022 13:56:20 -0700 Subject: [PATCH] Delete template.config.js --- template.config.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 template.config.js diff --git a/template.config.js b/template.config.js deleted file mode 100644 index 54f2425..0000000 --- a/template.config.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * This file is a configuration file generated by the `Template` extension on `vscode` - * @see https://marketplace.visualstudio.com/items?itemName=yongwoo.template - */ -module.exports = { - // You can change the template path to another path - templateRootPath: "./.templates", - // After copying the template file the `replaceFileTextFn` function is executed - replaceFileTextFn: (fileText, templateName, utils) => { - // @see https://www.npmjs.com/package/change-case - const { changeCase } = utils; - // You can change the text in the file - return fileText - .replace(/__templateName__/gm, templateName) - .replace( - /__templateNameToPascalCase__/gm, - changeCase.pascalCase(templateName) - ) - .replace( - /__templateNameToParamCase__/gm, - changeCase.paramCase(templateName) - ); - }, - replaceFileNameFn: (fileName, templateName, utils) => { - const { path } = utils; - // @see https://nodejs.org/api/path.html#path_path_parse_path - const { base } = path.parse(fileName); - // You can change the file name - return base; - } -};