Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7bc5902
move library to ts
xiaozhenliu-gg5 Nov 8, 2019
5bd8a23
fix
xiaozhenliu-gg5 Nov 8, 2019
631d18c
lint failure
xiaozhenliu-gg5 Nov 8, 2019
e46cb6c
ignore src/index.ts and lint
xiaozhenliu-gg5 Nov 8, 2019
0179939
add grpc in synth.py
xiaozhenliu-gg5 Nov 8, 2019
5ad7ae9
lint check
xiaozhenliu-gg5 Nov 8, 2019
556cf52
feedback
xiaozhenliu-gg5 Nov 8, 2019
c74e638
fix
xiaozhenliu-gg5 Nov 8, 2019
ff2f656
system test and common interfaces
alexander-fenster Nov 11, 2019
0efa552
lint
alexander-fenster Nov 11, 2019
ac171c1
feedback
xiaozhenliu-gg5 Nov 12, 2019
161bf63
Merge branch 'ts_lib' of https://github.com/googleapis/nodejs-text-to…
xiaozhenliu-gg5 Nov 12, 2019
7325b8f
feedback
xiaozhenliu-gg5 Nov 12, 2019
cb287b2
license, synthtool
alexander-fenster Nov 12, 2019
3bc6f82
add c8 devDependency
alexander-fenster Nov 12, 2019
e15049b
no nyc
alexander-fenster Nov 12, 2019
1088433
license bot happy
alexander-fenster Nov 12, 2019
90346ce
predocs-test
alexander-fenster Nov 12, 2019
8a45082
remove browser.js
alexander-fenster Nov 12, 2019
582ad46
close method
alexander-fenster Nov 12, 2019
e7474e2
webpack support
alexander-fenster Nov 12, 2019
4d19284
merge and synthtool
alexander-fenster Nov 13, 2019
abe65bf
system tests
alexander-fenster Nov 13, 2019
c7a70ff
pr feedback
alexander-fenster Nov 14, 2019
02add15
new synthtool
alexander-fenster Nov 14, 2019
c7f9cda
Merge branch 'master' into ts_lib
alexander-fenster Nov 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'src'
'build/src'
],
includePattern: '\\.js$'
},
Expand Down
39 changes: 26 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"node": ">=8.10.0"
},
"repository": "googleapis/nodejs-text-to-speech",
"main": "src/index.js",
"main": "build/src/index.js",
"files": [
"protos",
"src"
"build/protos",
"build/src"
],
"keywords": [
"google apis client",
Expand All @@ -27,32 +27,45 @@
"Cloud Text-to-Speech API"
],
"scripts": {
"test": "nyc mocha",
"lint": "eslint '**/*.js'",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "mocha system-test",
"test": "c8 mocha build/test",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
"system-test": "mocha build/system-test",
"docs": "jsdoc -c .jsdoc.js",
"fix": "eslint --fix '**/*.js'",
"lint": "gts fix && eslint --fix samples/*.js samples/**/*.js",
"fix": "gts fix",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs"
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"predocs-test": "npm run docs",
"prepare": "npm run compile"
},
"dependencies": {
"google-gax": "^1.7.5"
"google-gax": "^1.9.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.0",
"c8": "^6.0.0",
"codecov": "^3.0.0",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.0.0",
"gts": "^1.0.0",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.5.5",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.5.0",
"mocha": "^6.0.0",
"nyc": "^14.0.0",
"mocha": "^6.1.4",
"null-loader": "^3.0.0",
"pack-n-play": "^1.0.0-2",
"power-assert": "^1.4.4",
"prettier": "^1.11.1"
"prettier": "^1.11.1",
"ts-loader": "^6.2.1",
"typescript": "^3.7.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
}
}
14 changes: 14 additions & 0 deletions protos/protos.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import * as Long from "long";
import * as $protobuf from "protobufjs";
/** Namespace google. */
Expand Down
87 changes: 0 additions & 87 deletions src/index.js

This file was deleted.

26 changes: 26 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

import * as v1beta1 from './v1beta1';
import * as v1 from './v1';

const TextToSpeechClient = v1.TextToSpeechClient;
export {v1, v1beta1, TextToSpeechClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1, v1beta1, TextToSpeechClient};
12 changes: 5 additions & 7 deletions src/browser.js → src/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

'use strict';

// Set a flag that we are running in a browser bundle.
global.isBrowser = true;

// Re-export all exports from ./index.js.
module.exports = require('./index');
export {TextToSpeechClient} from './text_to_speech_client';
Loading