GladysProject/Gladys

View on GitHub
front/package.json

Summary

Maintainability
Test Coverage
{
  "name": "gladys-front",
  "engines": {
    "node": "18.x",
    "npm": "9.x"
  },
  "scripts": {
    "start": "per-env",
    "start:production": "npm run -s serve",
    "start:development": "npm run -s dev",
    "build": "cross-env NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider preact build --template src/template.html --no-prerender --no-inline-css",
    "postbuild": "cp ./old-sw.js ./build/sw.js",
    "build-with-stats": "cross-env NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider preact build --template src/template.html --no-prerender --json --no-inline-css",
    "postbuild-with-stats": "cp ./old-sw.js ./build/sw.js",
    "serve": "sirv build --port 8080 --cors --single",
    "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider preact watch -p 1444 --template src/template.html",
    "start-gateway": "cross-env GATEWAY_MODE=true NODE_OPTIONS=--openssl-legacy-provider preact watch -p 1445 --template src/template.html",
    "start-demo": "cross-env DEMO_MODE=true NODE_OPTIONS=--openssl-legacy-provider preact watch -p 1445 --template src/template.html",
    "eslint": "eslint src cypress --ext .json --ext .js --ext .jsx",
    "compare-translations": "comparejson -e ./src/config/i18n/*.json && node ./cli/check_translations.js",
    "prettier-check": "prettier --check '**/*.js' '**/*.jsx' '**/*.json'",
    "prettier": "prettier --write '**/*.js' '**/*.jsx' '**/*.json'",
    "test": "jest --coverage",
    "start:cypress": "cross-env DEMO_MODE=false NODE_OPTIONS=--openssl-legacy-provider WEBSOCKET_URL=ws://localhost:1443 LOCAL_API_URL=http://localhost:1443 npm start",
    "cypress:open": "cypress open --config-file cypress/cypress.config.js",
    "cypress:run": "cypress run --config-file cypress/cypress.config.js"
  },
  "devDependencies": {
    "@relative-ci/agent": "^2.0.0",
    "compare-json": "^0.4.0",
    "cross-env": "^5.2.0",
    "cypress": "^10.11.0",
    "eslint": "^8.39.0",
    "eslint-config-preact": "^1.3.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-compat": "^4.0.2",
    "eslint-plugin-cypress": "^2.12.1",
    "eslint-plugin-json": "^3.1.0",
    "eslint-plugin-promise": "^6.1.1",
    "eslint-plugin-react": "^7.32.2",
    "identity-obj-proxy": "^3.0.0",
    "jest": "^21.2.1",
    "per-env": "^1.0.2",
    "preact-cli": "^3.4.5",
    "prettier": "^1.17.1"
  },
  "dependencies": {
    "@gladysassistant/gladys-gateway-js": "^4.13.1",
    "@gladysassistant/theme-optimized": "^1.0.3",
    "@jaames/iro": "^5.5.2",
    "@yaireo/tagify": "4.5.0",
    "apexcharts": "^3.41.1",
    "axios": "^0.21.1",
    "classnames": "^2.3.1",
    "cropperjs": "^1.5.12",
    "date-fns": "^2.22.1",
    "dayjs": "^1.10.6",
    "debounce": "^1.2.1",
    "dotenv": "^6.2.0",
    "eslint-plugin-i18n-json": "^4.0.0",
    "get-value": "^3.0.1",
    "hls.js": "^1.5.7",
    "immutability-helper": "^3.1.1",
    "js-confetti": "^0.11.0",
    "leaflet": "^1.7.1",
    "linkstate": "^1.1.1",
    "p-limit": "^4.0.0",
    "preact": "^10.7.2",
    "preact-i18n": "^2.4.0-preactx",
    "preact-router": "^3.2.1",
    "qrcode": "^1.4.2",
    "react-big-calendar": "^1.6.9",
    "react-clock": "^4.5.0",
    "react-datepicker": "^3.8.0",
    "react-dnd": "^16.0.1",
    "react-dnd-html5-backend": "^16.0.1",
    "react-dnd-touch-backend": "^16.0.1",
    "react-select": "^4.3.1",
    "react-slider": "^2.0.6",
    "unistore": "^3.5.2",
    "useragent-parser-js": "^1.0.3",
    "uuid": "^3.4.0"
  },
  "browserslist": [
    "defaults",
    "not ie 11",
    "not ie_mob 11",
    "not ios_saf 12.2-12.5",
    "not op_mini all",
    "not dead"
  ]
}