graphql-multiplex-subscriptions

v2.0.0
use different PubSubEngines (e.g. RedisPubSub, PostgresPubSub) for different topics
graphql-subscriptions graphql graphql-redis-subscriptions graphql-postgres-subscriptions pubsub apollo

lint

eslint src test --cache

lint:fix

eslint --fix src test --cache

lint:watch

esw --watch src test --cache

prettier

prettier --write src/**/*.js test/**/*.js

prettier:check

prettier --list-different src/**/*.js test/**/*.js

flow

flow

flow:coverage

for file in src/**.js test/**.js; do echo $file; flow coverage $file; done

flow:watch

flow-watch -e js,js.flow,flowconfig --ignore --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/

clean

rimraf lib $(cd src; ls) *.js.flow

build

npm run clean && babel src --out-dir . && flow-copy-source -v src/ .

test

NODE_ENV=production BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha

test:watch

NODE_ENV=production BABEL_ENV=test mocha --watch $npm_package_config_mocha

test:debug

NODE_ENV=production BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha

codecov

nyc report --reporter=text-lcov > coverage.lcov; codecov

prepublishOnly

npm run clean && npm run prettier:check && npm run lint && flow && npm test && npm run build

open:coverage

open coverage/lcov-report/index.html

semantic-release

semantic-release

travis-deploy-once

travis-deploy-once
npm i graphql-multiplex-subscriptions

Metadata

  • MIT
  • >=8
  • Andy Edwards
  • released 11/21/2018

Downloads

Maintainers