watson-developer-cloud

v3.0.6
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

autofix

eslint . --fix

browserify

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

build

tsc && npm run browserify && npm run minify

compat-check

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

doc

jsdoc -c scripts/jsdoc/config.json

lint

npm run compat-check && eslint . --cache && dependency-lint

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-browser

karma start --single-run

test-integration

mocha test/integration

test-unit

mocha test/unit/

test

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

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