watson-developer-cloud

v3.7.1
Client library to use the IBM Watson Services and AlchemyAPI
conversation dialog discovery ibm natural language classifier natural language understanding personality insights speech to text text to speech and 7 more...

precommit

lint-staged

commitmsg

commitlint -E GIT_PARAMS

tslint:config

tslint-config-prettier-check ./tslint.json

tslint:fix

tslint --fix -p . -c tslint.json

tslint:check

tslint -p . -c ./tslint.json

eslint:config

eslint --print-config .eslintrc.js | eslint-config-prettier-check

eslint:fix

eslint . --fix

eslint:check

eslint . --cache

lint

npm run eslint:check && npm run tslint:check && dependency-lint

browserify

browserify index.js --standalone Watson --outfile dist/watson.js

build

tsc && npm run browserify && npm run minify

doc

jsdoc -c scripts/jsdoc/config.json

minify

uglifyjs --compress --mangle --output dist/watson.min.js --preamble "// Watson Developer Cloud // JavaScript SDK$npm_package_version // Generated at `date` // Copyright IBM ($npm_package_license) // $npm_package_homepage" -- dist/watson.js

prepublishOnly

npm run build

test-integration

mocha test/integration

test-unit

mocha test/unit/

test

nyc mocha test/unit/ test/integration/ && nyc report --reporter=html

test-travis

nyc mocha test/unit/ test/integration/ --grep @slow --invert && nyc report --reporter=html

report-coverage

nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov

watch-doc

nodemon --watch ./ --ext js,tmpl,json --ignore dist/ --ignore doc/ --ignore test/ --ignore examples/ --exec npm run doc

watch

npm run test-unit -- --watch

watchify

watchify index.js --standalone Watson --outfile dist/watson.js --debug --verbose

Metadata

Downloads