npm scripts for docker, update readme

This commit is contained in:
Ralf Vogler 2022-04-30 22:06:57 +02:00
parent f1dd867d39
commit 21311834d9
2 changed files with 11 additions and 15 deletions

View file

@ -2,9 +2,8 @@
"scripts": {
"login": "npx playwright open --save-storage=auth.json https://www.epicgames.com/login",
"codegen": "npx playwright codegen --load-storage=auth.json https://www.epicgames.com/store/en-US/free-games",
"test": "npx playwright test --timeout 10000",
"debug": "npx playwright test --debug",
"start": "node main.stealth"
"docker:build": "docker build --tag free-games-claimer .",
"docker:epic-games": "docker run --rm -it -p 5900:5900 -p 6080:6080 -v \"$(pwd)/userDataDir:/fgc/userDataDir\" --name free-games-claimer free-games-claimer"
},
"devDependencies": {
"@playwright/test": "^1.20.1",
@ -12,4 +11,4 @@
"puppeteer-extra-plugin-stealth": "^2.9.0"
},
"type": "module"
}
}