diff options
Diffstat (limited to 'scripts/create.js')
-rw-r--r-- | scripts/create.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/create.js b/scripts/create.js index 0030cfa..e143b00 100644 --- a/scripts/create.js +++ b/scripts/create.js | |||
@@ -10,7 +10,7 @@ if (process.argv.length < 3) { | |||
10 | For example: | 10 | For example: |
11 | pnpm run create WhatsApp | 11 | pnpm run create WhatsApp |
12 | pnpm run create "Google Hangouts" | 12 | pnpm run create "Google Hangouts" |
13 | You can set "Folder name" to "FerdiDev" to use Ferdi's development instance instead: | 13 | You can set "Folder name" to "FerdiDev" to use Ferdium's development instance instead: |
14 | 14 | ||
15 | pnpm run create WhatsApp FerdiDev | 15 | pnpm run create WhatsApp FerdiDev |
16 | `); | 16 | `); |
@@ -19,7 +19,7 @@ pnpm run create WhatsApp FerdiDev | |||
19 | 19 | ||
20 | const recipeName = process.argv[2]; | 20 | const recipeName = process.argv[2]; |
21 | const recipe = recipeName.toLowerCase().replace(/\s/g, '-'); | 21 | const recipe = recipeName.toLowerCase().replace(/\s/g, '-'); |
22 | const folderName = process.argv[3] || 'Ferdi'; | 22 | const folderName = process.argv[3] || 'Ferdium'; |
23 | const filesThatNeedTextReplace = [ | 23 | const filesThatNeedTextReplace = [ |
24 | 'package.json', | 24 | 'package.json', |
25 | 'index.js', | 25 | 'index.js', |
@@ -56,7 +56,7 @@ const pascalCasedName = toPascalCase(recipe); // PascalCased recipe ID only cont | |||
56 | // Make sure dev recipe folder exists | 56 | // Make sure dev recipe folder exists |
57 | if (!fs.existsSync(recipesFolder)) { | 57 | if (!fs.existsSync(recipesFolder)) { |
58 | console.log( | 58 | console.log( |
59 | `Couldn't find your recipe folder (${recipesFolder}). Is Ferdi installed?`, | 59 | `Couldn't find your recipe folder (${recipesFolder}). Is Ferdium installed?`, |
60 | ); | 60 | ); |
61 | return; | 61 | return; |
62 | } | 62 | } |
@@ -88,7 +88,7 @@ const pascalCasedName = toPascalCase(recipe); // PascalCased recipe ID only cont | |||
88 | console.log(`✅ Successfully created your recipe. | 88 | console.log(`✅ Successfully created your recipe. |
89 | 89 | ||
90 | What's next? | 90 | What's next? |
91 | - Make sure you restart Ferdi in order for the recipe to show up | 91 | - Make sure you restart Ferdium in order for the recipe to show up |
92 | - Customise "webview.js", "package.json" and "icon.svg" (see https://github.com/ferdium/ferdium-recipes/blob/master/docs/integration.md#recipe-structure) | 92 | - Customise "webview.js", "package.json" and "icon.svg" (see https://github.com/ferdium/ferdium-recipes/blob/master/docs/integration.md#recipe-structure) |
93 | - Publish your recipe (see https://github.com/ferdium/ferdium-recipes/blob/master/docs/integration.md#publishing)`); | 93 | - Publish your recipe (see https://github.com/ferdium/ferdium-recipes/blob/master/docs/integration.md#publishing)`); |
94 | })(); | 94 | })(); |