PHP Classes

File: template.config.js

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple Laravel Ecommerce   template.config.js   Download  
File: template.config.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple Laravel Ecommerce
E-commerce application to expose seller products
Author: By
Last change:
Date: 2 months ago
Size: 1,102 bytes
 

Contents

Class file image Download
/** * 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; } };