coast-team/netflux

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "netflux",
  "description": "Peer to peer isomorphic transport API based on WebRTC and WebSocket. Allows to create/join full mesh network",
  "version": "0.0.0-development",
  "license": "AGPL-3.0",
  "main": "dist/netflux.node.es5.cjs.js",
  "module": "dist/netflux.node.es5.esm.js",
  "browser": "dist/netflux.browser.es5.esm.js",
  "es2015": "dist/netflux.browser.es2015.esm.js",
  "esnext": "dist/netflux.browser.esnext.esm.js",
  "types": "dist/types/src/index.node.d.ts",
  "homepage": "https://coast-team.github.io/netflux",
  "repository": {
    "type": "git",
    "url": "https://github.com/coast-team/netflux.git"
  },
  "author": "Philippe Kalitine <philippe.kalitine@gmail.com> (https://philippe.kalitine.name/)",
  "bugs": {
    "url": "https://github.com/coast-team/netflux/issues"
  },
  "engines": {
    "node": ">=8.1.4"
  },
  "keywords": [
    "WebRTC",
    "WebSocket",
    "p2p",
    "peer",
    "network",
    "topology",
    "fullmesh"
  ],
  "files": [
    "dist/"
  ],
  "scripts": {
    "build": "rm -rf dist && rollup --config",
    "postbuild": "mkdir dist/types/src/proto && cp src/proto/index.d.ts dist/types/src/proto",
    "pretest": "rollup -c test/util/rollup.config.js && pm2 --silent restart test/util/process.yml --only netflux-test-signaling && pm2 restart test/util/process.yml --only netflux-test-bot ",
    "test": "karma start",
    "posttest": "pm2 --silent delete test/util/process.yml",
    "test:chrome": "npm test -- --browsers Chrome",
    "test:firefox": "npm test -- --browsers Firefox",
    "test:travis": "npm run build && npm test -- -- travis",
    "test:debug": "npm test -- -- debug",
    "proto": "pbjs -t static-module -w es6 --no-verify --no-delimited --no-convert src/proto/index.proto -o src/proto/index.js && pbts src/proto/index.js -o src/proto/index.d.ts",
    "postproto": "rollup -c rollup.config.proto.js",
    "semantic-release": "semantic-release",
    "travis-deploy-once": "travis-deploy-once",
    "predoc": "rm -rf ./docs; tsc -p tsconfig.json --outDir docs/jsFromTs --target esnext --declaration --sourceMap false --removeComments false",
    "doc": "esdoc -c esdoc.json",
    "lint": "tslint --fix -p tsconfig.json && prettier --write --list-different 'manual/**/*.md' 'src/**/*.ts' 'test/**/*.{ts,config.js}' './*.{ts,js,json,md}' && markdownlint ./*.md manual/*.md manual/**/*.md",
    "precommit": "lint-staged && npm test -- -- precommit-githook",
    "commitmsg": "commitlint -e $GIT_PARAMS",
    "cz": "git-cz"
  },
  "peerDependencies": {
    "rxjs": "^6.2.0",
    "text-encoding": "^0.6.4",
    "uws": "10.148.1"
  },
  "devDependencies": {
    "@commitlint/cli": "^7.1.2",
    "@commitlint/config-conventional": "^7.1.2",
    "@types/jasmine": "^2.8.8",
    "@types/text-encoding": "0.0.33",
    "@types/uws": "^0.13.2",
    "commitizen": "^2.10.1",
    "cz-conventional-changelog": "^2.1.0",
    "esdoc": "^1.1.0",
    "esdoc-inject-style-plugin": "^1.0.0",
    "esdoc-standard-plugin": "^1.0.0",
    "husky": "^0.14.3",
    "jasmine": "^3.2.0",
    "jasmine-core": "^3.2.1",
    "jasmine-spec-reporter": "^4.1.0",
    "json": "^9.0.3",
    "karma": "^3.0.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-firefox-launcher": "^1.1.0",
    "karma-jasmine": "^1.1.2",
    "karma-spec-reporter": "0.0.32",
    "karma-typescript": "^3.0.13",
    "kcors": "^2.2.2",
    "koa": "^2.5.2",
    "koa-router": "^7.4.0",
    "lint-staged": "^7.2.2",
    "markdownlint-cli": "^0.13.0",
    "pm2": "^3.0.4",
    "prettier": "^1.14.2",
    "protobufjs": "^6.8.8",
    "rollup": "^0.65.2",
    "rollup-plugin-cleanup": "^3.0.0",
    "rollup-plugin-commonjs": "^9.1.6",
    "rollup-plugin-filesize": "^4.0.1",
    "rollup-plugin-node-resolve": "^3.4.0",
    "rollup-plugin-re": "^1.0.7",
    "rollup-plugin-typescript2": "^0.17.0",
    "rxjs": "^6.3.2",
    "semantic-release": "^15.9.12",
    "sigver": "^20.0.2",
    "text-encoding": "^0.6.4",
    "travis-deploy-once": "^5.0.7",
    "tslib": "^1.9.3",
    "tslint": "^5.11.0",
    "tslint-config-prettier": "^1.15.0",
    "typescript": "^3.0.3",
    "uws": "10.148.1",
    "webrtc-adapter": "^6.3.2"
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ]
  },
  "config": {
    "commitizen": {
      "path": "node_modules/cz-conventional-changelog"
    }
  },
  "lint-staged": {
    "linters": {
      "*.md": [
        "prettier --write --list-different",
        "git add",
        "markdownlint"
      ],
      "*.ts": [
        "tslint --fix -p tsconfig.json -e src/proto/* -e docs/*",
        "git add"
      ],
      "*.{ts,json,scss,css}": [
        "prettier --write --list-different",
        "git add"
      ]
    },
    "concurrent": false
  }
}