Skip to content

Commit f09bf5a

Browse files
committed
Initial infrastructure
0 parents  commit f09bf5a

9 files changed

+236
-0
lines changed

Diff for: .gitignore

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Output directory
2+
js/
3+
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
11+
# Runtime data
12+
pids
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
23+
# nyc test coverage
24+
.nyc_output
25+
26+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
27+
.grunt
28+
29+
# Bower dependency directory (https://bower.io/)
30+
bower_components
31+
32+
# node-waf configuration
33+
.lock-wscript
34+
35+
# Compiled binary addons (https://nodejs.org/api/addons.html)
36+
build/Release
37+
38+
# Dependency directories
39+
node_modules/
40+
jspm_packages/
41+
42+
# TypeScript v1 declaration files
43+
typings/
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional eslint cache
49+
.eslintcache
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
61+
.env
62+
63+
# next.js build output
64+
.next

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## 0.0.1
4+
5+
* Initial placeholder release

Diff for: CONTRIBUTING.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
2+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
3+
the rights to use your contribution. For details, visit https://cla.microsoft.com.
4+
5+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
6+
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
7+
provided by the bot. You will only need to do this once across all repos using our CLA.
8+
9+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
10+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
11+
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

Diff for: LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
VS Code Kubernetes Tools API
4+
5+
Copyright (c) Microsoft Corporation. All rights reserved.
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE

Diff for: README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Kubectl Output Parser
2+
3+
A NPM package containing utility functions for parsing output from the Kubernetes `kubectl` command
4+
line tool.
5+
6+
# Contributing
7+
8+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
9+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
10+
the rights to use your contribution. For details, visit https://cla.microsoft.com.
11+
12+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
13+
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
14+
provided by the bot. You will only need to do this once across all repos using our CLA.
15+
16+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
17+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
18+
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

Diff for: package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "kubectl-output-parser",
3+
"version": "0.1.0",
4+
"description": "Functions for parsing kubectl output",
5+
"main": "js/index.js",
6+
"types": "js/index.d.ts",
7+
"files": [
8+
"js/**/*"
9+
],
10+
"scripts": {
11+
"compile": "tsc -p ./",
12+
"watch": "tsc -watch -p ./",
13+
"prepare": "node ./node_modules/vscode/bin/install && npm run compile",
14+
"test": "echo \"Error: no test specified\" && exit 1"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/deislabs/kubectl-output-parser"
19+
},
20+
"keywords": [
21+
"kubernetes"
22+
],
23+
"author": "[email protected]",
24+
"license": "MIT",
25+
"bugs": {
26+
"url": "https://github.com/deislabs/kubectl-output-parser/issues"
27+
},
28+
"homepage": "https://github.com/deislabs/kubectl-output-parser#readme"
29+
}

Diff for: ts/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function hello(msg: string): string {
2+
return `hello ${msg}`;
3+
}

Diff for: tsconfig.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es6",
5+
"moduleResolution": "node",
6+
"lib": [
7+
"es6"
8+
],
9+
"esModuleInterop": true,
10+
"sourceMap": true,
11+
"outDir": "./js",
12+
"rootDir": "./ts",
13+
"declaration": true,
14+
"strict": true,
15+
"alwaysStrict": true,
16+
"noFallthroughCasesInSwitch": true,
17+
"noImplicitReturns": true,
18+
"noUnusedLocals": true,
19+
"noUnusedParameters": true,
20+
"noImplicitAny": true,
21+
"strictFunctionTypes": true,
22+
"strictNullChecks": true,
23+
"noImplicitThis": true
24+
},
25+
"exclude": [
26+
"node_modules",
27+
"js",
28+
".vscode-test"
29+
]
30+
}

Diff for: tslint.json

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"rules": {
3+
"encoding": true,
4+
"only-arrow-functions": [
5+
true, "allow-declarations", "allow-named-functions"
6+
],
7+
"no-var-keyword": true,
8+
"no-unused-variable": true,
9+
"object-literal-key-quotes": [
10+
true, "as-needed"
11+
],
12+
"comment-format": [true, "check-space"],
13+
"curly": [true, "ignore-same-line"],
14+
"triple-equals": true,
15+
"prefer-const": true,
16+
"prefer-for-of": true,
17+
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
18+
"switch-final-break": [true, "always"],
19+
"prefer-template": [true, "allow-single-concat"],
20+
"semicolon": [true, "always"],
21+
"arrow-parens": true,
22+
"no-consecutive-blank-lines": true,
23+
"no-boolean-literal-compare": true,
24+
"whitespace": [
25+
true,
26+
"check-branch",
27+
"check-decl",
28+
"check-module",
29+
"check-separator",
30+
"check-type",
31+
"check-preblock"
32+
],
33+
"typedef-whitespace": [
34+
true,
35+
{
36+
"call-signature": "nospace",
37+
"index-signature": "nospace",
38+
"parameter": "nospace",
39+
"property-declaration": "nospace",
40+
"variable-declaration": "nospace"
41+
},
42+
{
43+
"call-signature": "onespace",
44+
"index-signature": "onespace",
45+
"parameter": "onespace",
46+
"property-declaration": "onespace",
47+
"variable-declaration": "onespace"
48+
}
49+
],
50+
"no-trailing-whitespace": true,
51+
"no-debugger": true
52+
}
53+
}

0 commit comments

Comments
 (0)