Skip to content

Commit f1b0354

Browse files
committed
added short preamble to index.js + automatic lib.version on travis builds
1 parent 219fa60 commit f1b0354

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

dist/watson-speech.js

Lines changed: 9 additions & 16 deletions
Large diffs are not rendered by default.

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
// IBM Watson Speech JavaScript SDK
2+
// Copyright IBM (Apache-2.0)
3+
14
'use strict';
25

6+
exports.version = process.env.TRAVIS_BRANCH;
7+
38
exports.SpeechToText = require('./speech-to-text');
49

5-
// todo: add a text-to-speech library next
10+
// todo: add text-to-speech

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"lint": "eslint --config test/resources/.eslintrc.js *.js src/*.js",
99
"test": "karma start test/resources/karma.conf.js --single-run",
1010
"test-integration": "TEST_MODE=integration karma start test/resources/karma.conf.js --single-run",
11-
"browserify": "browserify index.js --standalone WatsonSpeech --outfile dist/watson-speech.js",
11+
"browserify": "browserify index.js --standalone WatsonSpeech --outfile dist/watson-speech.js --transform envify",
1212
"minify": "with-package uglifyjs --compress --mangle --screw-ie8 dist/watson-speech.js --output dist/watson-speech.min.js --preamble \"// IBM Watson Speech JavaScript SDK\n// vpkg.version\n// Generated at `date`\n// Copyright IBM (pkg.license)\"",
1313
"watchify": "watchify index.js --standalone WatsonSpeech --outfile dist/watson-speech.js --debug --verbose",
1414
"build": "npm run browserify && npm run minify",

0 commit comments

Comments
 (0)