OpenHPS/openhps-rest

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@openhps/rest",
  "version": "0.1.0-alpha.7",
  "description": "Open Hybrid Positioning System - REST component",
  "repository": {
    "type": "git",
    "url": "https://github.com/OpenHPS/openhps-rest.git"
  },
  "publishConfig": {
    "access": "public"
  },
  "main": "./dist/cjs/index.js",
  "types": "./dist/cjs/index.d.ts",
  "module": "./dist/esm/index.js",
  "exports": {
    "require": "./dist/cjs/index.js",
    "import": "./dist/esm/index.js"
  },
  "files": [
    "dist/**/*",
    "src/**/*"
  ],
  "scripts": {
    "test": "mocha --config test/.mocharc.json",
    "cover": "nyc mocha --config test/.mocharc.json && nyc report --reporter=cobertura",
    "lint": "eslint src/**",
    "clean": "shx rm -rf ./dist && shx rm -rf ./docs/out",
    "build": "npm run clean && npm-run-all --parallel build:cjs build:esm build:typedoc && npm run build:webpack",
    "build:esm": "tsc --module es2015 --outDir dist/esm",
    "build:cjs": "tsc --module commonjs  --outDir dist/cjs",
    "build:webpack": "npm-run-all --parallel build:webpack:*",
    "build:webpack:prod": "webpack --env prod --progress --",
    "build:webpack:dev": "webpack --env dev --progress --",
    "build:typedoc": "typedoc --options docs/typedoc.json",
    "publish:development": "npm run bump:beta && npm publish --tag dev",
    "publish:beta": "npm run bump:beta && npm publish --tag beta",
    "publish:release": "npm run bump:beta && npm publish --tag latest",
    "bump:development": "standard-version --prerelease alpha -m 'chore(alpha): %s' --skip.changelog",
    "bump:beta": "standard-version --prerelease beta -m 'chore(beta): %s' --skip.changelog",
    "bump:release": "standard-version -m 'chore(release): %s' --skip.changelog"
  },
  "author": "Maxim Van de Wynckel",
  "license": "Apache-2.0",
  "dependencies": {
    "axios": ">=0.23.0",
    "express": ">=4.17.1"
  },
  "peerDependencies": {
    "@openhps/core": ">=0.3.2-alpha.0"
  },
  "devDependencies": {
    "@commitlint/cli": "^13.2.1",
    "@commitlint/config-conventional": "^13.2.0",
    "@openhps/core": ">=0.3.2-alpha.0",
    "@types/axios": "^0.14.0",
    "@types/chai": "^4.2.22",
    "@types/express": "^4.17.13",
    "@types/mocha": "^9.0.0",
    "@types/node": "^16.11.1",
    "@typescript-eslint/eslint-plugin": ">=5.1.0",
    "@typescript-eslint/parser": ">=5.1.0",
    "chai": "^4.3.4",
    "eslint": "^7.32.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-deprecation": "^1.2.1",
    "eslint-plugin-import": "^2.24.2",
    "eslint-plugin-jsdoc": "^36.1.1",
    "eslint-plugin-prettier": "^4.0.0",
    "husky": "^7.0.2",
    "mocha": "^9.1.3",
    "mocha-junit-reporter": "^2.0.2",
    "npm-run-all": "^4.1.5",
    "nyc": "^15.1.0",
    "prettier": "^2.4.1",
    "shx": "^0.3.3",
    "standard-version": "^9.3.2",
    "ts-node": "^10.3.0",
    "typedoc": "^0.22.6",
    "typescript": ">=4.4.4",
    "webpack": "^5.59.0",
    "webpack-cli": "^4.9.1"
  },
  "nyc": {
    "branches": 20,
    "lines": 20,
    "functions": 20,
    "statements": 20,
    "include": [
      "src"
    ],
    "exclude": [
      "test"
    ],
    "extension": [
      ".ts"
    ],
    "reporter": [
      "lcov",
      "text-summary"
    ],
    "cache": true,
    "all": true,
    "check-coverage": true,
    "report-dir": "./coverage"
  },
  "engines": {
    "node": ">=12.0.0"
  },
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint",
      "pre-push": "npm run test",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}