new script install-mm for simplifying mm installation and new params --no-audit --no-fund --no-update-notifier for less noise

This commit is contained in:
Karsten Hassel 2022-07-25 22:13:23 +02:00
parent 2d15e4f976
commit 3fbd9006ad
3 changed files with 8 additions and 4 deletions

View File

@ -31,7 +31,7 @@ jobs:
run: | run: |
Xvfb :99 -screen 0 1024x768x16 & Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99 export DISPLAY=:99
npm install npm run install-mm:dev
touch css/custom.css touch css/custom.css
npm run test:prettier npm run test:prettier
npm run test:js npm run test:js

View File

@ -11,6 +11,8 @@ _This release is scheduled to be released on 2022-10-01._
## Added ## 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 ## Updated
## Fixed ## Fixed

View File

@ -7,9 +7,11 @@
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js", "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
"start:dev": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js dev", "start:dev": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js dev",
"server": "node ./serveronly", "server": "node ./serveronly",
"install": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error", "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev",
"install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error", "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier",
"postinstall": "npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", "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": "NODE_ENV=test jest -i --forceExit",
"test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text 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", "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",