refactoring
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
node_modules
|
||||
dist
|
||||
package-lock.json
|
||||
.parcel-cache
|
||||
.parcel-cache
|
||||
.git
|
||||
@@ -10,5 +10,6 @@ COPY . .
|
||||
RUN npm run build
|
||||
RUN chmod +x ./lib/fetch-yt-dlp.sh
|
||||
RUN ./lib/fetch-yt-dlp.sh && mv yt-dlp ./lib
|
||||
RUN rm -rf .parcel-cache
|
||||
EXPOSE 3022
|
||||
CMD [ "node" , "./server.js" ]
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
echo "Downloading latest yt-dlp..."
|
||||
|
||||
echo "Downloading latest yt-dlp build..."
|
||||
|
||||
rm -f yt-dlp
|
||||
|
||||
|
||||
11
package.json
11
package.json
@@ -1,26 +1,27 @@
|
||||
{
|
||||
"name": "youtube-dlp-web",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"description": "A terrible webUI for yt-dlp, all-in-one solution.",
|
||||
"scripts": {
|
||||
"start": "node --harmony server.js",
|
||||
"dev": "nodemon app.js",
|
||||
"build": "parcel build ./frontend/index.html",
|
||||
"fe": "parcel ./frontend/index.html --open",
|
||||
"fetch":"./lib/fetch-yt-dlp.sh && mv yt-dlp ./lib"
|
||||
"fetch": "./lib/fetch-yt-dlp.sh && mv yt-dlp ./lib"
|
||||
},
|
||||
"author": "",
|
||||
"author": "marcobaobao",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@koa/cors": "^3.1.0",
|
||||
"dotenv": "^10.0.0",
|
||||
"koa": "^2.13.4",
|
||||
"koa-static": "^5.0.0",
|
||||
"parcel": "^2.0.1",
|
||||
"react": "^17.0.2",
|
||||
"react-bootstrap": "^2.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"socket.io": "^4.3.2",
|
||||
"socket.io-client": "^4.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"parcel": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user