From 42d5dd409638582b296f5d3bcc8c18de4b578b84 Mon Sep 17 00:00:00 2001 From: moonstar-x Date: Fri, 21 Jan 2022 21:03:25 -0500 Subject: [PATCH] Added .replit file and a init-replit script to facilitate usage in replit. --- .replit | 2 ++ init-replit.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .replit create mode 100755 init-replit.sh diff --git a/.replit b/.replit new file mode 100644 index 00000000..e5ab7812 --- /dev/null +++ b/.replit @@ -0,0 +1,2 @@ +language = "nodejs" +run = "npm start" diff --git a/init-replit.sh b/init-replit.sh new file mode 100755 index 00000000..494540f0 --- /dev/null +++ b/init-replit.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +echo "Removing old node_modules..." +rm -rf node_modules + +echo "Installing node@16.6.1..." +npm i --save-dev node@16.6.1 + +echo "Configuring npm node@16.6.1..." +npm config set prefix=$(pwd)/node_modules/node +export PATH=$(pwd)/node_modules/node/bin:$PATH + +echo "Reinstalling dependencies..." +npm install + +echo "Installing ffmpeg-static..." +npm install --save-dev ffmpeg-static