Skip to content

Commit

Permalink
Add docker-clean script to package.json for cleaning up Docker resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed Nov 14, 2024
1 parent c1b8115 commit c9949ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"watch": "echo 'πŸ‘€ Watching files...' && jest --watch",
"debug": "echo '🐞 Starting the app in debug mode...' && NODE_ENV=development nodemon --inspect src/index.js",
"clean": "echo '🧽 Cleaning up...' && rm -rf ./node_modules ./dist && rm package-lock.json",
"prepare": "husky install # 🐢 Setting up Husky"
"prepare": "husky install # 🐢 Setting up Husky",
"docker-clean": "echo '🧹 Cleaning up Docker resources...' && docker stop $(docker ps -aq) && docker rm $(docker ps -aq) && docker image prune -af && docker volume prune -f && docker network prune -f && docker builder prune -f"

},
"repository": {
"type": "git",
Expand Down

0 comments on commit c9949ea

Please sign in to comment.