|
24 | 24 | ],
|
25 | 25 | "main": "js/electron.js",
|
26 | 26 | "scripts": {
|
| 27 | + "config:check": "node js/check_config.js", |
| 28 | + "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", |
| 29 | + "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev", |
| 30 | + "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier", |
| 31 | + "install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", |
| 32 | + "lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix", |
| 33 | + "lint:js": "eslint . --fix", |
| 34 | + "lint:prettier": "prettier . --write", |
| 35 | + "lint:staged": "lint-staged", |
| 36 | + "postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", |
| 37 | + "prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.", |
| 38 | + "server": "node ./serveronly", |
27 | 39 | "start": "npm run start:x11",
|
28 | 40 | "start:dev": "npm run start -- dev",
|
29 | 41 | "start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland",
|
|
32 | 44 | "start:windows:dev": "npm run start:windows -- dev",
|
33 | 45 | "start:x11": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
|
34 | 46 | "start:x11:dev": "npm run start -- dev",
|
35 |
| - "server": "node ./serveronly", |
36 |
| - "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev", |
37 |
| - "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier", |
38 |
| - "install-vendor": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", |
39 |
| - "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", |
40 |
| - "postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", |
41 | 47 | "test": "NODE_ENV=test jest -i --forceExit",
|
| 48 | + "test:calendar": "node ./modules/default/calendar/debug.js", |
42 | 49 | "test:coverage": "NODE_ENV=test jest --coverage -i --verbose false --forceExit",
|
43 |
| - "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit", |
| 50 | + "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json", |
44 | 51 | "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
|
45 |
| - "test:unit": "NODE_ENV=test jest --selectProjects unit", |
46 |
| - "test:prettier": "prettier . --check", |
| 52 | + "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit", |
47 | 53 | "test:js": "eslint .",
|
48 |
| - "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json", |
49 |
| - "test:calendar": "node ./modules/default/calendar/debug.js", |
| 54 | + "test:prettier": "prettier . --check", |
50 | 55 | "test:spelling": "cspell . --gitignore",
|
51 |
| - "config:check": "node js/check_config.js", |
52 |
| - "lint:prettier": "prettier . --write", |
53 |
| - "lint:js": "eslint . --fix", |
54 |
| - "lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix", |
55 |
| - "lint:staged": "lint-staged", |
56 |
| - "prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed." |
| 56 | + "test:unit": "NODE_ENV=test jest --selectProjects unit" |
57 | 57 | },
|
58 | 58 | "lint-staged": {
|
59 | 59 | "*": "prettier --write",
|
|
86 | 86 | "eslint-plugin-import": "^2.31.0",
|
87 | 87 | "eslint-plugin-jest": "^28.8.3",
|
88 | 88 | "eslint-plugin-jsdoc": "^50.4.3",
|
89 |
| - "eslint-plugin-package-json": "^0.15.4", |
| 89 | + "eslint-plugin-package-json": "^0.17.0", |
90 | 90 | "express-basic-auth": "^1.2.1",
|
91 | 91 | "husky": "^9.1.6",
|
92 | 92 | "jest": "^29.7.0",
|
|
0 commit comments