From dd90ea31621399ecb37d19a4706f7faf7855bee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 10 Mar 2020 11:12:27 +0100 Subject: [PATCH] Remove the hello-world plugin --- plugins/hello-world/jest.config.js | 4 - plugins/hello-world/jest.setup.ts | 1 - plugins/hello-world/package.json | 29 -- .../MyComponent/MyComponent.test.tsx | 10 - .../components/MyComponent/MyComponent.tsx | 44 --- .../src/components/MyComponent/index.ts | 1 - plugins/hello-world/src/index.ts | 2 - plugins/hello-world/src/plugin.test.ts | 7 - plugins/hello-world/src/plugin.ts | 5 - .../src/proto/hello_grpc_web_pb.d.ts | 32 -- .../src/proto/hello_grpc_web_pb.js | 153 --------- plugins/hello-world/src/proto/hello_pb.d.ts | 38 --- plugins/hello-world/src/proto/hello_pb.js | 308 ------------------ plugins/hello-world/tsconfig.json | 4 - 14 files changed, 638 deletions(-) delete mode 100644 plugins/hello-world/jest.config.js delete mode 100644 plugins/hello-world/jest.setup.ts delete mode 100644 plugins/hello-world/package.json delete mode 100644 plugins/hello-world/src/components/MyComponent/MyComponent.test.tsx delete mode 100644 plugins/hello-world/src/components/MyComponent/MyComponent.tsx delete mode 100644 plugins/hello-world/src/components/MyComponent/index.ts delete mode 100644 plugins/hello-world/src/index.ts delete mode 100644 plugins/hello-world/src/plugin.test.ts delete mode 100644 plugins/hello-world/src/plugin.ts delete mode 100644 plugins/hello-world/src/proto/hello_grpc_web_pb.d.ts delete mode 100644 plugins/hello-world/src/proto/hello_grpc_web_pb.js delete mode 100644 plugins/hello-world/src/proto/hello_pb.d.ts delete mode 100644 plugins/hello-world/src/proto/hello_pb.js delete mode 100644 plugins/hello-world/tsconfig.json diff --git a/plugins/hello-world/jest.config.js b/plugins/hello-world/jest.config.js deleted file mode 100644 index 6b28dacb3d..0000000000 --- a/plugins/hello-world/jest.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - ...require('@spotify/web-scripts/config/jest.config.js'), - setupFilesAfterEnv: ['../jest.setup.ts'], -}; diff --git a/plugins/hello-world/jest.setup.ts b/plugins/hello-world/jest.setup.ts deleted file mode 100644 index 666127af39..0000000000 --- a/plugins/hello-world/jest.setup.ts +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom/extend-expect'; diff --git a/plugins/hello-world/package.json b/plugins/hello-world/package.json deleted file mode 100644 index 812a58c35a..0000000000 --- a/plugins/hello-world/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@spotify-backstage/plugin-hello-world", - "version": "0.0.0", - "main": "dist/cjs/index.js", - "types": "dist/cjs/index.d.ts", - "devDependencies": { - "@spotify-backstage/cli": "^1.2.0", - "@spotify-backstage/core": "1.0.0", - "@material-ui/core": "^4.9.1", - "@material-ui/icons": "^4.9.1", - "@testing-library/jest-dom": "^4.2.4", - "@testing-library/react": "^9.3.2", - "@testing-library/user-event": "^7.1.2", - "@types/jest": "^24.0.0", - "@types/node": "^12.0.0", - "@types/react": "^16.9.0", - "@types/react-dom": "^16.9.0", - "google-protobuf": "^3.11.2", - "grpc-web": "^1.0.7", - "react": "^16.12.0", - "react-dom": "^16.12.0" - }, - "scripts": { - "build": "backstage-cli plugin:build", - "lint": "backstage-cli plugin:lint", - "test": "backstage-cli plugin:test" - }, - "license": "Apache-2.0" -} diff --git a/plugins/hello-world/src/components/MyComponent/MyComponent.test.tsx b/plugins/hello-world/src/components/MyComponent/MyComponent.test.tsx deleted file mode 100644 index ea10a40dd4..0000000000 --- a/plugins/hello-world/src/components/MyComponent/MyComponent.test.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import { render } from '@testing-library/react'; -import MyComponent from './MyComponent'; - -describe('MyComponent', () => { - it('should render', () => { - const rendered = render(); - expect(rendered.getByText('Hello!')).toBeInTheDocument(); - }); -}); diff --git a/plugins/hello-world/src/components/MyComponent/MyComponent.tsx b/plugins/hello-world/src/components/MyComponent/MyComponent.tsx deleted file mode 100644 index a9ad846047..0000000000 --- a/plugins/hello-world/src/components/MyComponent/MyComponent.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import React, { FC, useState, useEffect, Fragment } from 'react'; -import Button from '@material-ui/core/Button'; -import { HelloPromiseClient } from '../../proto/hello_grpc_web_pb'; -import { HelloRequest } from '../../proto/hello_pb'; -import { Typography } from '@material-ui/core'; - -const MyComponent: FC<{}> = () => { - const [message, setMessage] = useState(''); - const [error, setError] = useState(); - - useEffect(() => { - const client = new HelloPromiseClient('http://localhost:8080'); - - const request = new HelloRequest(); - request.setName('Spotify'); - - client.hello(request).then( - reply => { - setMessage(reply.getMessage() ?? ''); - }, - err => { - setError(err.message); - }, - ); - }, []); - - return ( - - {message} - - {error} - - - - ); -}; - -export default MyComponent; diff --git a/plugins/hello-world/src/components/MyComponent/index.ts b/plugins/hello-world/src/components/MyComponent/index.ts deleted file mode 100644 index 6d02c15f93..0000000000 --- a/plugins/hello-world/src/components/MyComponent/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './MyComponent'; diff --git a/plugins/hello-world/src/index.ts b/plugins/hello-world/src/index.ts deleted file mode 100644 index 0b4f029aa1..0000000000 --- a/plugins/hello-world/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default } from './plugin'; -export { default as MyComponent } from './components/MyComponent'; diff --git a/plugins/hello-world/src/plugin.test.ts b/plugins/hello-world/src/plugin.test.ts deleted file mode 100644 index 6335998b14..0000000000 --- a/plugins/hello-world/src/plugin.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import plugin from './plugin'; - -describe('plugin', () => { - it('should export plugin', () => { - expect(plugin).toBeDefined(); - }); -}); diff --git a/plugins/hello-world/src/plugin.ts b/plugins/hello-world/src/plugin.ts deleted file mode 100644 index c3ebca48e8..0000000000 --- a/plugins/hello-world/src/plugin.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { createPlugin } from '@spotify-backstage/core'; - -export default createPlugin({ - id: 'hello-world', -}); diff --git a/plugins/hello-world/src/proto/hello_grpc_web_pb.d.ts b/plugins/hello-world/src/proto/hello_grpc_web_pb.d.ts deleted file mode 100644 index 1831161b3b..0000000000 --- a/plugins/hello-world/src/proto/hello_grpc_web_pb.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import * as grpcWeb from 'grpc-web'; - -import { - HelloReply, - HelloRequest} from './hello_pb'; - -export class HelloClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: string; }); - - hello( - request: HelloRequest, - metadata: grpcWeb.Metadata | undefined, - callback: (err: grpcWeb.Error, - response: HelloReply) => void - ): grpcWeb.ClientReadableStream; - -} - -export class HelloPromiseClient { - constructor (hostname: string, - credentials?: null | { [index: string]: string; }, - options?: null | { [index: string]: string; }); - - hello( - request: HelloRequest, - metadata?: grpcWeb.Metadata - ): Promise; - -} - diff --git a/plugins/hello-world/src/proto/hello_grpc_web_pb.js b/plugins/hello-world/src/proto/hello_grpc_web_pb.js deleted file mode 100644 index 6c34f67199..0000000000 --- a/plugins/hello-world/src/proto/hello_grpc_web_pb.js +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for spotify.backstage.hello.v1alpha1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - - - -const grpc = {}; -grpc.web = require('grpc-web'); - -const proto = {}; -proto.spotify = {}; -proto.spotify.backstage = {}; -proto.spotify.backstage.hello = {}; -proto.spotify.backstage.hello.v1alpha1 = require('./hello_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.spotify.backstage.hello.v1alpha1.HelloClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.spotify.backstage.hello.v1alpha1.HelloPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.spotify.backstage.hello.v1alpha1.HelloRequest, - * !proto.spotify.backstage.hello.v1alpha1.HelloReply>} - */ -const methodDescriptor_Hello_Hello = new grpc.web.MethodDescriptor( - '/spotify.backstage.hello.v1alpha1.Hello/Hello', - grpc.web.MethodType.UNARY, - proto.spotify.backstage.hello.v1alpha1.HelloRequest, - proto.spotify.backstage.hello.v1alpha1.HelloReply, - /** - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.spotify.backstage.hello.v1alpha1.HelloReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.spotify.backstage.hello.v1alpha1.HelloRequest, - * !proto.spotify.backstage.hello.v1alpha1.HelloReply>} - */ -const methodInfo_Hello_Hello = new grpc.web.AbstractClientBase.MethodInfo( - proto.spotify.backstage.hello.v1alpha1.HelloReply, - /** - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.spotify.backstage.hello.v1alpha1.HelloReply.deserializeBinary -); - - -/** - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.spotify.backstage.hello.v1alpha1.HelloReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.spotify.backstage.hello.v1alpha1.HelloClient.prototype.hello = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/spotify.backstage.hello.v1alpha1.Hello/Hello', - request, - metadata || {}, - methodDescriptor_Hello_Hello, - callback); -}; - - -/** - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * A native promise that resolves to the response - */ -proto.spotify.backstage.hello.v1alpha1.HelloPromiseClient.prototype.hello = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/spotify.backstage.hello.v1alpha1.Hello/Hello', - request, - metadata || {}, - methodDescriptor_Hello_Hello); -}; - - -module.exports = proto.spotify.backstage.hello.v1alpha1; - diff --git a/plugins/hello-world/src/proto/hello_pb.d.ts b/plugins/hello-world/src/proto/hello_pb.d.ts deleted file mode 100644 index a31b66ae91..0000000000 --- a/plugins/hello-world/src/proto/hello_pb.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as jspb from "google-protobuf" - -export class HelloRequest extends jspb.Message { - getName(): string; - setName(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HelloRequest.AsObject; - static toObject(includeInstance: boolean, msg: HelloRequest): HelloRequest.AsObject; - static serializeBinaryToWriter(message: HelloRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HelloRequest; - static deserializeBinaryFromReader(message: HelloRequest, reader: jspb.BinaryReader): HelloRequest; -} - -export namespace HelloRequest { - export type AsObject = { - name: string, - } -} - -export class HelloReply extends jspb.Message { - getMessage(): string; - setMessage(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HelloReply.AsObject; - static toObject(includeInstance: boolean, msg: HelloReply): HelloReply.AsObject; - static serializeBinaryToWriter(message: HelloReply, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HelloReply; - static deserializeBinaryFromReader(message: HelloReply, reader: jspb.BinaryReader): HelloReply; -} - -export namespace HelloReply { - export type AsObject = { - message: string, - } -} - diff --git a/plugins/hello-world/src/proto/hello_pb.js b/plugins/hello-world/src/proto/hello_pb.js deleted file mode 100644 index 57ad1c7fc9..0000000000 --- a/plugins/hello-world/src/proto/hello_pb.js +++ /dev/null @@ -1,308 +0,0 @@ -/** - * @fileoverview - * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -goog.exportSymbol('proto.spotify.backstage.hello.v1alpha1.HelloReply', null, global); -goog.exportSymbol('proto.spotify.backstage.hello.v1alpha1.HelloRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.spotify.backstage.hello.v1alpha1.HelloRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.spotify.backstage.hello.v1alpha1.HelloRequest.displayName = 'proto.spotify.backstage.hello.v1alpha1.HelloRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.spotify.backstage.hello.v1alpha1.HelloReply, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.spotify.backstage.hello.v1alpha1.HelloReply.displayName = 'proto.spotify.backstage.hello.v1alpha1.HelloReply'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.prototype.toObject = function(opt_includeInstance) { - return proto.spotify.backstage.hello.v1alpha1.HelloRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.spotify.backstage.hello.v1alpha1.HelloRequest; - return proto.spotify.backstage.hello.v1alpha1.HelloRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.spotify.backstage.hello.v1alpha1.HelloRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string name = 1; - * @return {string} - */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.spotify.backstage.hello.v1alpha1.HelloRequest.prototype.setName = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto suitable for use in Soy templates. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration - * @return {!Object} - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.prototype.toObject = function(opt_includeInstance) { - return proto.spotify.backstage.hello.v1alpha1.HelloReply.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Whether to include the JSPB - * instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloReply} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.toObject = function(includeInstance, msg) { - var f, obj = { - message: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.spotify.backstage.hello.v1alpha1.HelloReply} - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.spotify.backstage.hello.v1alpha1.HelloReply; - return proto.spotify.backstage.hello.v1alpha1.HelloReply.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloReply} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.spotify.backstage.hello.v1alpha1.HelloReply} - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.spotify.backstage.hello.v1alpha1.HelloReply.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.spotify.backstage.hello.v1alpha1.HelloReply} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string message = 1; - * @return {string} - */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** @param {string} value */ -proto.spotify.backstage.hello.v1alpha1.HelloReply.prototype.setMessage = function(value) { - jspb.Message.setProto3StringField(this, 1, value); -}; - - -goog.object.extend(exports, proto.spotify.backstage.hello.v1alpha1); diff --git a/plugins/hello-world/tsconfig.json b/plugins/hello-world/tsconfig.json deleted file mode 100644 index 596e2cf729..0000000000 --- a/plugins/hello-world/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src"] -}