Skip to content

Commit ec601c5

Browse files
authored
Merge pull request #851 from watson-developer-cloud/update-index-file
Remove index file
2 parents 75485a7 + 92d1ee2 commit ec601c5

24 files changed

+104
-189
lines changed

commitlint.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

compare-comply/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { AxiosResponse } from 'axios';
1818
import * as extend from 'extend';
19-
import { BaseService, getMissingParams, FileObject } from 'ibm-cloud-sdk-core';
19+
import { BaseService, FileObject, getMissingParams } from 'ibm-cloud-sdk-core';
2020
import { getSdkHeaders } from '../lib/common';
2121

2222
/**

discovery/v1-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { AxiosResponse } from 'axios';
1818
import * as extend from 'extend';
19-
import { BaseService, getMissingParams, FileObject } from 'ibm-cloud-sdk-core';
19+
import { BaseService, FileObject, getMissingParams } from 'ibm-cloud-sdk-core';
2020
import { getSdkHeaders } from '../lib/common';
2121

2222
/**

examples/browserify/server.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ var express = require('express'); // eslint-disable-line node/no-missing-require
33
var app = express();
44
var expressBrowserify = require('express-browserify'); // eslint-disable-line node/no-missing-require
55
var dotenv = require('dotenv');
6-
var watson = require('watson-developer-cloud');
6+
var AuthorizationV1 = require('watson-developer-cloud/authorization/v1');
7+
var ToneAnalyzerV3 = require('watson-developer-cloud/tone-analyzer/v3');
78

89
var isDev = app.get('env') === 'development';
910
app.get(
@@ -20,10 +21,10 @@ app.use(express.static('public/'));
2021
dotenv.load({ silent: true });
2122

2223
// For local development, specify the username and password or set env properties
23-
var ltAuthService = new watson.AuthorizationV1({
24+
var ltAuthService = new AuthorizationV1({
2425
username: process.env.TONE_ANALYZER_USERNAME || '<username>',
2526
password: process.env.TONE_ANALYZER_PASSWORD || '<password>',
26-
url: watson.ToneAnalyzerV3.URL
27+
url: ToneAnalyzerV3.URL
2728
});
2829

2930
app.get('/api/token/tone_analyzer', function(req, res) {

examples/webpack/server.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
var express = require('express'); // eslint-disable-line node/no-missing-require
33
var app = express();
44
var dotenv = require('dotenv');
5-
var watson = require('watson-developer-cloud');
5+
var AuthorizationV1 = require('watson-developer-cloud/authorization/v1');
6+
var ToneAnalyzerV3 = require('watson-developer-cloud/tone-analyzer/v3');
67

78
// bundle the code
89
var webpackDevMiddleware = require('webpack-dev-middleware');
@@ -23,10 +24,10 @@ app.use(express.static('public/'));
2324
dotenv.load({ silent: true });
2425

2526
// For local development, specify the username and password or set env properties
26-
var ltAuthService = new watson.AuthorizationV1({
27+
var ltAuthService = new AuthorizationV1({
2728
username: process.env.TONE_ANALYZER_USERNAME || '<username>',
2829
password: process.env.TONE_ANALYZER_PASSWORD || '<password>',
29-
url: watson.ToneAnalyzerV3.URL
30+
url: ToneAnalyzerV3.URL
3031
});
3132

3233
app.get('/api/token/tone_analyzer', function(req, res) {

index.ts

Lines changed: 0 additions & 134 deletions
This file was deleted.

language-translator/v3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { AxiosResponse } from 'axios';
1818
import * as extend from 'extend';
19-
import { BaseService, getMissingParams, FileObject } from 'ibm-cloud-sdk-core';
19+
import { BaseService, FileObject, getMissingParams } from 'ibm-cloud-sdk-core';
2020
import { getSdkHeaders } from '../lib/common';
2121

2222
/**

natural-language-classifier/v1-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { AxiosResponse } from 'axios';
1818
import * as extend from 'extend';
19-
import { BaseService, getMissingParams, FileObject } from 'ibm-cloud-sdk-core';
19+
import { BaseService, FileObject, getMissingParams } from 'ibm-cloud-sdk-core';
2020
import { getSdkHeaders } from '../lib/common';
2121

2222
/**

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "watson-developer-cloud",
33
"version": "4.0.0-rc2",
4-
"description": "Client library to use the IBM Watson Services and AlchemyAPI",
5-
"main": "./index",
4+
"description": "Client library to use the IBM Watson Services",
65
"repository": {
76
"type": "git",
87
"url": "https://github.com/watson-developer-cloud/node-sdk.git"
@@ -36,6 +35,10 @@
3635
{
3736
"name": "Jeff Stylos",
3837
"email": "[email protected]"
38+
},
39+
{
40+
"name": "Dustin Popp",
41+
"email": "[email protected]"
3942
}
4043
],
4144
"license": "Apache-2.0",
@@ -106,7 +109,7 @@
106109
"eslint:fix": "eslint . --fix",
107110
"eslint:check": "eslint . --cache",
108111
"lint": "npm run eslint:check && npm run tslint:check && dependency-lint",
109-
"browserify": "browserify index.js --standalone Watson --outfile dist/watson.js",
112+
"browserify": "browserify sdk.js --standalone Watson --outfile dist/watson.js",
110113
"build": "tsc && npm run browserify && npm run minify",
111114
"doc": "jsdoc -c scripts/jsdoc/config.json",
112115
"minify": "uglifyjs --compress --mangle --output dist/watson.min.js --preamble \"// Watson Developer Cloud\n// JavaScript SDK$npm_package_version\n// Generated at `date`\n// Copyright IBM ($npm_package_license)\n// $npm_package_homepage\" -- dist/watson.js",
@@ -119,7 +122,7 @@
119122
"report-coverage": "codecov",
120123
"watch-doc": "nodemon --watch ./ --ext js,tmpl,json --ignore dist/ --ignore doc/ --ignore test/ --ignore examples/ --exec npm run doc",
121124
"watch": "npm run test-unit -- --watch",
122-
"watchify": "watchify index.js --standalone Watson --outfile dist/watson.js --debug --verbose",
125+
"watchify": "watchify sdk.js --standalone Watson --outfile dist/watson.js --debug --verbose",
123126
"check-packages": "installed-check -e -d"
124127
},
125128
"husky": {

personality-insights/v3-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { AxiosResponse } from 'axios';
1818
import * as extend from 'extend';
19-
import { BaseService, getMissingParams, FileObject } from 'ibm-cloud-sdk-core';
19+
import { BaseService, FileObject, getMissingParams } from 'ibm-cloud-sdk-core';
2020
import { getSdkHeaders } from '../lib/common';
2121

2222
/**

0 commit comments

Comments
 (0)