From 3fbd9006adc9f7c12e9a86079afd410d81d9d0c6 Mon Sep 17 00:00:00 2001 From: Karsten Hassel Date: Mon, 25 Jul 2022 22:13:23 +0200 Subject: [PATCH] new script `install-mm` for simplifying mm installation and new params `--no-audit --no-fund --no-update-notifier` for less noise --- .github/workflows/automated-tests.yaml | 2 +- CHANGELOG.md | 2 ++ package.json | 8 +++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automated-tests.yaml b/.github/workflows/automated-tests.yaml index 6fbc816d78..602ba04659 100644 --- a/.github/workflows/automated-tests.yaml +++ b/.github/workflows/automated-tests.yaml @@ -31,7 +31,7 @@ jobs: run: | Xvfb :99 -screen 0 1024x768x16 & export DISPLAY=:99 - npm install + npm run install-mm:dev touch css/custom.css npm run test:prettier npm run test:js diff --git a/CHANGELOG.md b/CHANGELOG.md index 4268310fb5..b6727c8fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ _This release is scheduled to be released on 2022-10-01._ ## Added +- new scripts `install-mm` (and `install-mm:dev`) for simplifying mm installation (now: `npm run install-mm`) and adding params `--no-audit --no-fund --no-update-notifier` for less noise. + ## Updated ## Fixed diff --git a/package.json b/package.json index 277eb0ac43..aea63ed0db 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,11 @@ "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js", "start:dev": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js dev", "server": "node ./serveronly", - "install": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error", - "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error", - "postinstall": "npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", + "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev", + "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier", + "install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", + "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", + "postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", "test": "NODE_ENV=test jest -i --forceExit", "test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text jest -i --forceExit", "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",