Skip to content

Commit 16c7a5d

Browse files
committed
Some improvements for the overall project layout (see #3)
- renamed ‘node’ to ‘node-client’ to better match the package name - moved source code to src folder - removed some unneeded libs from package.json - fixed some imports - updated .gitignore
1 parent f4cd2fb commit 16c7a5d

14 files changed

+68
-37
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
tmp/
1+
dist
2+
node_modules

node/package-lock.json renamed to node-client/package-lock.json

Lines changed: 58 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/package.json renamed to node-client/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@
1414
"scripts": {
1515
"clean": "rm -Rf node_modules/ dist/",
1616
"build": "tsc",
17-
"test": "mocha -r ts-node/register *_test.ts"
17+
"test": "mocha -r ts-node/register src/**/*_test.ts"
1818
},
1919
"author": "Kubernetes Authors",
2020
"license": "Apache-2.0",
2121
"dependencies": {
2222
"base-64": "^0.1.0",
2323
"bluebird": "^3.3.5",
2424
"byline": "^5.0.0",
25-
"chai": "^4.1.0",
2625
"js-yaml": "^3.5.2",
2726
"jsonpath": "^0.2.11",
28-
"mocha": "^3.4.2",
2927
"request": "^2.72.0",
3028
"shelljs": "^0.7.8 ",
3129
"underscore": "^1.8.3",
File renamed without changes.

node/attach.ts renamed to node-client/src/attach.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import querystring = require('querystring');
22
import stream = require('stream');
33

44
import { WebSocketHandler } from './web-socket-handler';
5-
import { KubeConfig } from '@kubernetes/client-node';
5+
import { KubeConfig } from './config';
66

77
export class Attach {
88
'handler': WebSocketHandler;
File renamed without changes.
File renamed without changes.

node/config_test.ts renamed to node-client/src/config_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { KubeConfig, Config } from './config';
22
import { expect } from 'chai';
3-
import { describe, it } from 'jasmine';
3+
import 'mocha';
44

55
const kcFileName = "testdata/kubeconfig.yaml";
66

File renamed without changes.

node/exec.ts renamed to node-client/src/exec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import querystring = require('querystring');
22
import stream = require('stream');
33

44
import { WebSocketHandler } from './web-socket-handler';
5-
import { KubeConfig } from '@kubernetes/client-node';
5+
import { KubeConfig } from './config';
66

77
export class Exec {
88
'handler': WebSocketHandler;

0 commit comments

Comments
 (0)