aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /scripts
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create.js8
-rw-r--r--scripts/sample_recipe/index.js2
-rw-r--r--scripts/sample_recipe/package.json2
-rw-r--r--scripts/sample_recipe/webview.js4
4 files changed, 8 insertions, 8 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) {
10For example: 10For example:
11pnpm run create WhatsApp 11pnpm run create WhatsApp
12pnpm run create "Google Hangouts" 12pnpm run create "Google Hangouts"
13You can set "Folder name" to "FerdiDev" to use Ferdi's development instance instead: 13You can set "Folder name" to "FerdiDev" to use Ferdium's development instance instead:
14 14
15pnpm run create WhatsApp FerdiDev 15pnpm run create WhatsApp FerdiDev
16`); 16`);
@@ -19,7 +19,7 @@ pnpm run create WhatsApp FerdiDev
19 19
20const recipeName = process.argv[2]; 20const recipeName = process.argv[2];
21const recipe = recipeName.toLowerCase().replace(/\s/g, '-'); 21const recipe = recipeName.toLowerCase().replace(/\s/g, '-');
22const folderName = process.argv[3] || 'Ferdi'; 22const folderName = process.argv[3] || 'Ferdium';
23const filesThatNeedTextReplace = [ 23const 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
90What's next? 90What'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})();
diff --git a/scripts/sample_recipe/index.js b/scripts/sample_recipe/index.js
index b0dad05..dd41f72 100644
--- a/scripts/sample_recipe/index.js
+++ b/scripts/sample_recipe/index.js
@@ -1 +1 @@
module.exports = Ferdi => class SPASCAL extends Ferdi {}; module.exports = Ferdium => Ferdium;
diff --git a/scripts/sample_recipe/package.json b/scripts/sample_recipe/package.json
index e2eba15..4b0dda6 100644
--- a/scripts/sample_recipe/package.json
+++ b/scripts/sample_recipe/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "SERVICE", 2 "id": "SERVICE",
3 "name": "SNAME", 3 "name": "SNAME",
4 "version": "1.0.0", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://SERVICE.com" 7 "serviceURL": "https://SERVICE.com"
diff --git a/scripts/sample_recipe/webview.js b/scripts/sample_recipe/webview.js
index 29cca49..dc4a062 100644
--- a/scripts/sample_recipe/webview.js
+++ b/scripts/sample_recipe/webview.js
@@ -2,7 +2,7 @@ module.exports = () => {
2 // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges 2 // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges
3 // const getMessages = () => { 3 // const getMessages = () => {
4 // // TODO: Insert your notification-finding code here 4 // // TODO: Insert your notification-finding code here
5 // Ferdi.setBadge(0, 0); 5 // Ferdium.setBadge(0, 0);
6 // }; 6 // };
7 // Ferdi.loop(getMessages); 7 // Ferdium.loop(getMessages);
8}; 8};