pubnub

v8.2.0
Publish & Subscribe Real-time Messaging with PubNub
cloud publish subscribe websockets comet bosh xmpp real-time messaging and 1 more...

ci

npm run clean && npm run build && npm run lint && npm run test

lint

eslint "src/**/*" --config .eslintrc.cjs

test

npm run test:web && npm run test:node

build

npm run build:node && npm run build:web

clean

rimraf lib dist upload

ci:web

npm run clean && npm run build:web && npm run lint && npm run test:web

ci:node

npm run clean && npm run build:node && npm run lint && npm run test:node

test:web

karma start karma/web.config.cjs

build:web

rollup -c ./rollup.config.js --bundleConfigAsCjs

test:node

TS_NODE_PROJECT='./tsconfig.json' mocha --project tsconfig.mocha.json

build:node

tsc -p tsconfig.json

contract:test

cucumber-js --require dist/cucumber dist/contract/contract/features --tags 'not @na=js and not @beta'

test:contract

npm run test:contract:prepare && npm run test:contract:start

contract:build

cd test/contract && tsc

contract:server

npm start --prefix dist/contract consumer

contract:refresh

rimraf dist/contract && git clone --branch master [email protected]:pubnub/service-contract-mock.git dist/contract && npm install --prefix dist/contract && npm run refresh-files --prefix dist/contract

contract:test-beta

cucumber-js --require dist/cucumber dist/contract/contract/features --tags 'not @na=js and @beta'

test:contract:beta

cucumber-js -p default --tags 'not @na=js and @beta and not @skip'

test:contract:start

cucumber-js -p default --tags '@featureSet=access and @contract=grantAllPermissions and not @na=js and not @skip'

contract:test-access

cucumber-js --require dist/cucumber dist/contract/contract/features --tags '@featureSet=access and not @na=js and not @beta'

test:contract:prepare

rimraf test/specs && git clone --branch master --depth 1 [email protected]:pubnub/sdk-specifications.git test/specs

test:contract:specific

TS_NODE_PROJECT='./test/contract/tsconfig.json' cucumber-js --require test/contract/definitions/grant.ts dist/contract/contract/features --tags '@featureSet=eventEngine and @contract=subscribeReceivingRecovery and not @na=js'

contract:test-objectsV2

cucumber-js --require dist/cucumber dist/contract/contract/features --tags '@featureSet=objectsV2 and not @na=js and not @beta'

contract:test-access-beta

cucumber-js --require dist/cucumber dist/contract/contract/features --tags '@featureSet=access and not @na=js and @beta'

test:feature:objectsv2:node

NODE_ENV=test TS_NODE_PROJECT='./tsconfig.json' mocha --project tsconfig.mocha.json --require tsx --no-config --reporter spec test/dist/objectsv2.test.ts

test:feature:fileupload:node

NODE_ENV=test TS_NODE_PROJECT='./tsconfig.json' mocha --project tsconfig.mocha.json --require tsx --no-config --reporter spec test/feature/file_upload.node.test.ts

Metadata

Downloads