Skip to content

Commit 8d84b48

Browse files
committed
refactor: move node-client package to repo root
This allows installing directly from git via npm. Closes #76
1 parent ecf72ff commit 8d84b48

32 files changed

+13
-19
lines changed

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dist
22
node_modules
3-
node-client/src/.gitignore
4-
node-client/src/package.json
5-
node-client/src/git_push.sh
6-
node-client/src/tsconfig.json
7-
node-client/src/typings.json
8-
node-client/coverage/*
3+
src/.gitignore
4+
src/package.json
5+
src/git_push.sh
6+
src/tsconfig.json
7+
src/typings.json
8+
coverage/*
99
.vscode/*
1010
examples/package-lock.json
11-
node-client/.nyc_output
11+
.nyc_output
1212

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ node_js:
33
- "8"
44
- "10"
55

6-
before_install:
7-
- 'cd node-client'
86
install:
9-
- 'npm install typescript'
10-
- 'npm install tslint'
117
- 'npm install'
128
script:
139
- 'npm test'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ There are several more examples in the [examples](https://github.com/kubernetes-
7676
# Development
7777

7878
All dependencies of this project are expressed in its
79-
[`package.json` file](node-client/package.json). Before you start developing, ensure
79+
[`package.json` file](package.json). Before you start developing, ensure
8080
that you have [NPM](https://www.npmjs.com/) installed, then run:
8181

8282
```console
@@ -89,7 +89,7 @@ npm install
8989
cd ../
9090
git clone https://github.com/kubernetes-client/gen
9191
cd javascript
92-
../gen/openapi/typescript.sh node-client/src settings
92+
../gen/openapi/typescript.sh src settings
9393
```
9494

9595
# Testing

build-package.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
tsc
4+
npm pack

node-client/build-package.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)