watson-developer-cloud

v4.0.0-rc1
Client library to use the IBM Watson Services and AlchemyAPI
assistant discovery ibm natural language classifier natural language understanding personality insights speech to text text to speech tone analyzer and 6 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

jest --silent --verbose test/integration

test-unit

jest --silent --verbose test/unit/

test

jest --silent --verbose test/

test-unit-travis

jest --silent --runInBand test/unit/

test-travis

jest --silent --runInBand --testNamePattern='^((?!@slow).)*$' test/

report-coverage

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