MagicMirror/package.json

120 lines
3.9 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-07-01 14:34:02 +02:00
"version": "2.17.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: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-08-01 09:52:04 +02:00
"eslint-plugin-jest": "^24.4.0",
2021-08-29 20:07:29 +02:00
"eslint-plugin-jsdoc": "^36.0.8",
2021-08-22 22:45:08 +02:00
"eslint-plugin-prettier": "^3.4.1",
"express-basic-auth": "^1.2.0",
2021-08-29 20:07:29 +02:00
"husky": "^7.0.2",
"jest": "^27.1.0",
2021-08-22 22:45:08 +02:00
"jsdom": "^17.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-07-04 17:46:22 +02:00
"prettier": "^2.3.2",
2021-06-24 22:54:08 +02:00
"pretty-quick": "^3.1.1",
2021-08-01 09:52:04 +02:00
"sinon": "^11.1.2",
2021-07-04 17:46:22 +02:00
"spectron": "^15.0.0",
"stylelint": "^13.13.1",
2020-06-20 08:33:19 +02:00
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
2021-08-31 23:26:06 +02:00
"stylelint-prettier": "^1.2.0",
"suncalc": "^1.8.0"
2020-05-11 21:59:45 +02:00
},
"optionalDependencies": {
2021-08-29 20:07:29 +02:00
"electron": "^13.2.3"
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-08-01 09:52:04 +02:00
"eslint": "^7.32.0",
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-03-02 00:17:13 +01:00
"node-fetch": "^2.6.1",
"node-ical": "^0.13.0",
2021-08-29 20:07:29 +02:00
"simple-git": "^2.45.0",
2021-07-06 16:47:36 +02:00
"socket.io": "^4.1.3"
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,
"projects": [
{
"displayName": "unit",
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": "e2e",
2021-06-11 22:24:21 +02:00
"testMatch": [
"**/tests/e2e/**/*.[jt]s?(x)"
],
"testPathIgnorePatterns": [
"<rootDir>/tests/e2e/modules/mocks",
"<rootDir>/tests/e2e/global-setup.js"
]
2021-06-10 00:24:08 +02:00
}
]
2020-05-11 21:59:45 +02:00
}
}