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