[[oktatas:web:nodejs|< Node.js]] ====== npm-run-all ====== * **Szerző:** Sallai András * Copyright (c) 2023, Sallai András * Szerkesztve: 2023-2024 * Licenc: [[https://creativecommons.org/licenses/by-sa/4.0/|CC BY-SA 4.0]] * Web: https://szit.hu ===== Az npm-run-all ===== Az npm-run-all csomag lehetővé teszi, hogy a packages.json fájlban leírt több scriptet is egyetlen menetben végrehajtsuk. Ez lehet egymás után, vagy párhuzamosan. ===== Telepítés ===== npm install -g npm-run-all Vagy helyben: npm install --save-dev npm-run-all ===== Példa scriptek ===== "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build:src": "npx copyfiles -u 1 src/**/*.{html,css} dist", "build:bs": "npx copyfiles -u 4 node_modules/bootstrap/dist/css/bootstrap.css dist", "build": "npm-run-all build:src build:bs" }