MagicMirror/package.json

138 lines
4.3 KiB
JSON
Raw Normal View History

2016-03-27 20:40:07 +02:00
{
2020-05-11 21:59:45 +02:00
"name": "magicmirror",
2021-10-01 15:25:54 +02:00
"version": "2.18.0-develop",
2020-05-11 21:59:45 +02:00
"description": "The open source modular smart mirror platform.",
"main": "js/electron.js",
"scripts": {
2021-04-14 17:03:09 +02:00
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
"start:dev": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js dev",
2020-05-11 21:59:45 +02:00
"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\"",
"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",
"test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
"test:unit": "NODE_ENV=test jest --selectProjects unit -i --forceExit",
2021-05-29 16:11:25 +02:00
"test:prettier": "prettier . --check",
"test:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json",
2021-07-06 11:26:21 +02:00
"test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",
"test:calendar": "node ./modules/default/calendar/debug.js",
2020-05-11 21:59:45 +02:00
"config:check": "node js/check_config.js",
2021-05-29 16:11:25 +02:00
"lint:prettier": "prettier . --write",
"lint:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json --fix",
2021-07-06 11:26:21 +02:00
"lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix",
"lint:staged": "pretty-quick --staged",
2021-05-19 20:58:29 +02:00
"prepare": "[ -f node_modules/.bin/husky ] && husky install || echo no husky installed."
2020-05-11 21:59:45 +02:00
},
"repository": {
"type": "git",
"url": "git+https://github.com/MichMich/MagicMirror.git"
},
"keywords": [
"magic mirror",
"smart mirror",
"mirror UI",
"modular"
],
"author": "Michael Teeuw",
"contributors": [
"https://github.com/MichMich/MagicMirror/graphs/contributors"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/MichMich/MagicMirror/issues"
},
"homepage": "https://magicmirror.builders",
"devDependencies": {
"eslint-config-prettier": "^8.3.0",
2021-11-27 23:10:04 +01:00
"eslint-plugin-jest": "^25.3.0",
2021-12-13 21:34:32 +01:00
"eslint-plugin-jsdoc": "^37.2.0",
2021-09-04 23:17:54 +02:00
"eslint-plugin-prettier": "^4.0.0",
2021-12-13 21:34:32 +01:00
"express-basic-auth": "^1.2.1",
2021-11-27 23:10:04 +01:00
"husky": "^7.0.4",
2021-12-13 21:34:32 +01:00
"jest": "^27.4.5",
"jsdom": "^19.0.0",
2021-02-27 13:19:29 +01:00
"lodash": "^4.17.21",
2020-07-09 20:29:38 +02:00
"nyc": "^15.1.0",
2021-12-13 21:34:32 +01:00
"playwright": "^1.17.1",
"prettier": "^2.5.1",
2021-11-27 23:10:04 +01:00
"pretty-quick": "^3.1.2",
"sinon": "^12.0.1",
"stylelint": "^14.1.0",
2021-10-16 00:18:52 +02:00
"stylelint-config-prettier": "^9.0.3",
2021-11-27 23:10:04 +01:00
"stylelint-config-standard": "^24.0.0",
"stylelint-prettier": "^2.0.0",
2021-08-31 23:26:06 +02:00
"suncalc": "^1.8.0"
2020-05-11 21:59:45 +02:00
},
"optionalDependencies": {
2021-12-13 21:34:32 +01:00
"electron": "^16.0.4"
2020-05-11 21:59:45 +02:00
},
"dependencies": {
2020-09-19 12:25:11 +02:00
"colors": "^1.4.0",
2021-07-06 16:47:36 +02:00
"console-stamp": "^3.0.3",
2021-08-22 22:45:08 +02:00
"digest-fetch": "^1.2.1",
2021-12-13 21:34:32 +01:00
"eslint": "^8.4.1",
2020-09-19 12:25:11 +02:00
"express": "^4.17.1",
2021-04-11 21:05:19 +02:00
"express-ipfilter": "^1.2.0",
2020-12-11 11:09:52 +01:00
"feedme": "^2.0.2",
"helmet": "^4.6.0",
2021-05-29 13:32:24 +02:00
"iconv-lite": "^0.6.3",
2020-05-11 21:59:45 +02:00
"module-alias": "^2.2.2",
"moment": "^2.29.1",
2021-11-27 23:10:04 +01:00
"node-fetch": "^2.6.6",
2021-11-29 00:21:00 +01:00
"node-ical": "^0.13.0",
2021-11-27 23:10:04 +01:00
"socket.io": "^4.4.0"
2020-05-11 21:59:45 +02:00
},
"_moduleAliases": {
2021-02-18 19:14:53 +01:00
"node_helper": "js/node_helper.js",
"logger": "js/logger.js"
2020-05-11 21:59:45 +02:00
},
2021-01-05 09:54:03 +01:00
"engines": {
"node": ">=12"
2021-06-06 23:13:09 +02:00
},
"jest": {
2021-06-10 00:24:08 +02:00
"verbose": true,
"testTimeout": 10000,
2021-06-10 00:24:08 +02:00
"projects": [
{
"displayName": "unit",
"moduleNameMapper": {
"logger": "<rootDir>/js/logger.js"
},
2021-06-11 22:24:21 +02:00
"testMatch": [
"**/tests/unit/**/*.[jt]s?(x)"
],
"testPathIgnorePatterns": [
"<rootDir>/tests/unit/mocks"
]
2021-06-10 00:24:08 +02:00
},
{
"displayName": "electron",
2021-06-11 22:24:21 +02:00
"testMatch": [
"**/tests/electron/**/*.[jt]s?(x)"
2021-06-11 22:24:21 +02:00
]
},
{
"displayName": "e2e",
2021-09-21 23:48:29 +02:00
"setupFilesAfterEnv": [
"<rootDir>/tests/e2e/mock-console.js"
],
"testMatch": [
"**/tests/e2e/**/*.[jt]s?(x)"
],
"modulePaths": [
"<rootDir>/js/"
2021-09-16 22:36:18 +02:00
],
"testPathIgnorePatterns": [
2021-10-16 00:05:12 +02:00
"<rootDir>/tests/e2e/modules/mocks",
"<rootDir>/tests/e2e/modules/basic-auth.js",
"<rootDir>/tests/e2e/global-setup.js",
2021-10-16 00:05:12 +02:00
"<rootDir>/tests/e2e/mock-console.js"
]
2021-06-10 00:24:08 +02:00
}
]
2020-05-11 21:59:45 +02:00
}
}