From f93bc9dc42088c8e910223c9de3f5e7bc6715ceb Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 27 Aug 2021 10:43:48 +0530 Subject: docs: fixed template file for creating recipe. --- scripts/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/create.js') diff --git a/scripts/create.js b/scripts/create.js index b41d6d0..506364a 100644 --- a/scripts/create.js +++ b/scripts/create.js @@ -21,7 +21,7 @@ const recipeName = process.argv[2]; const recipe = recipeName.toLowerCase().replace(/\s/g, '-'); const cleanRecipeId = recipe.replace(/[^a-z]/g, ''); // Clean recipe ID only containing a-z, for usage as the JavaScript class name const folderName = process.argv[3] || 'Ferdi'; -const filesThatNeedTextReplace = ['package.json', 'index.js', 'README.md']; +const filesThatNeedTextReplace = ['package.json', 'index.js', 'webview.js', 'README.md']; (async () => { // Folder paths @@ -49,7 +49,7 @@ const filesThatNeedTextReplace = ['package.json', 'index.js', 'README.md']; await fs.copy(sampleRecipe, newRecipeFolder); console.log('[Info] Copied recipe'); - // Replace "SERVICE" with the service name + // Replace placeholders with the recipe-specific values for (const file of filesThatNeedTextReplace) { const filePath = path.join(newRecipeFolder, file); let contents = await fs.readFile(filePath, 'utf-8'); -- cgit v1.2.3-70-g09d2