Skip to content

Commit

Permalink
[public-api] Publish to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ committed May 17, 2022
1 parent cf2c0aa commit c887240
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 7 deletions.
1 change: 1 addition & 0 deletions components/BUILD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ packages:
- components/supervisor-api/typescript-grpc:publish
- components/supervisor-api/typescript-grpcweb:publish
- components/ide/jetbrains/gateway-plugin:publish
- components/public-api/typescript:publish
- name: all-apps
type: generic
deps:
Expand Down
17 changes: 15 additions & 2 deletions components/public-api/typescript/BUILD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,26 @@ packages:
deps:
- components/gitpod-protocol:lib
srcs:
- "src/*.ts"
- "src/*.js"
- src/**
- package.json
- tsconfig.json
config:
packaging: library
dontTest: true
commands:
build: ["yarn", "build"]
yarnLock: ${coreYarnLockBase}/../yarn.lock
tsconfig: tsconfig.json

- name: publish
type: generic
env:
- DO_PUBLISH=${publishToNPM}
argdeps:
- npmPublishTrigger
deps:
- :lib
- components/gitpod-protocol:scripts
config:
commands:
- ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-public-api-typescript--lib/package"]
4 changes: 0 additions & 4 deletions components/public-api/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"private": true,
"name": "@gitpod/public-api",
"version": "0.1.5",
"license": "UNLICENSED",
"files": [
"client",
"lib"
],
"scripts": {
Expand All @@ -14,11 +12,9 @@
"test:brk": "yarn test --inspect-brk"
},
"dependencies": {
"@gitpod/content-service": "0.1.5",
"@gitpod/gitpod-protocol": "0.1.5",
"@grpc/grpc-js": "^1.3.7",
"google-protobuf": "^3.19.1",
"inversify": "^5.0.1",
"opentracing": "^0.14.4"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
// GENERATED CODE -- NO SERVICES IN PROTO
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// GENERATED CODE -- NO SERVICES IN PROTO
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// package: gitpod.v1
// file: gitpod/v1/pagination.proto

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// source: gitpod/v1/pagination.proto
/**
* @fileoverview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// package: gitpod.v1
// file: gitpod/v1/prebuilds.proto

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// GENERATED CODE -- DO NOT EDIT!

'use strict';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// package: gitpod.v1
// file: gitpod/v1/prebuilds.proto

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// source: gitpod/v1/prebuilds.proto
/**
* @fileoverview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// package: gitpod.v1
// file: gitpod/v1/workspaces.proto

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// GENERATED CODE -- DO NOT EDIT!

'use strict';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// package: gitpod.v1
// file: gitpod/v1/workspaces.proto

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/

// source: gitpod/v1/workspaces.proto
/**
* @fileoverview
Expand Down

0 comments on commit c887240

Please sign in to comment.