Skip to content

Commit

Permalink
Added .replit file and a init-replit script to facilitate usage in re…
Browse files Browse the repository at this point in the history
…plit.
  • Loading branch information
moonstar-x committed Jan 22, 2022
1 parent 9a80260 commit 42d5dd4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
language = "nodejs"
run = "npm start"
17 changes: 17 additions & 0 deletions init-replit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

echo "Removing old node_modules..."
rm -rf node_modules

echo "Installing [email protected]..."
npm i --save-dev [email protected]

echo "Configuring npm [email protected]..."
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

0 comments on commit 42d5dd4

Please sign in to comment.