[[oktatas:web:nodejs|< NodeJS]] ====== npm-run-all ====== * **Szerző:** Sallai András * Copyright (c) Sallai András, 2023 * Licenc: [[https://creativecommons.org/licenses/by-sa/4.0/|CC Attribution-Share Alike 4.0 International]] * 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" }