diff options
author | 2020-09-22 20:56:48 +0200 | |
---|---|---|
committer | 2020-09-22 19:56:48 +0100 | |
commit | 6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch) | |
tree | 9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /scripts/api/require-depts.js | |
parent | Updated logos for Outlook/OWA (diff) | |
download | ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip |
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'scripts/api/require-depts.js')
-rw-r--r-- | scripts/api/require-depts.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/api/require-depts.js b/scripts/api/require-depts.js deleted file mode 100644 index c9c8814..0000000 --- a/scripts/api/require-depts.js +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /** | ||
2 | * Require the dependencies to be installed or fail otherwise | ||
3 | */ | ||
4 | module.exports = () => { | ||
5 | try { | ||
6 | // Try to include some package to see if it throws an error | ||
7 | require('targz'); | ||
8 | require('fs-extra'); | ||
9 | require('git-url-parse'); | ||
10 | require('image-size'); | ||
11 | require('semver'); | ||
12 | } catch (e) { | ||
13 | console.log(`⚠️ Could not add your recipe: Please make sure to install the dependencies first! | ||
14 | It looks like you havn't run "npm install" yet. Please run that command in order to install all the dependencies required to run the scripts. | ||
15 | If you get an error similar to "command not found: npm" while installing the dependencies, make sure to install npm first using the guide at https://www.npmjs.com/get-npm. | ||
16 | If you've already installed the dependencies before, please re-run "npm install" again as the dependencies might have changed. | ||
17 | For more information about installing this script visit https://github.com/getferdi/recipes/blob/master/docs/integration.md#publishing`); | ||
18 | process.exit(0); | ||
19 | } | ||
20 | } \ No newline at end of file | ||