Skip to content

Commit

Permalink
feat: add plugin-skeleton for new contributors to prototype code
Browse files Browse the repository at this point in the history
  • Loading branch information
myan9 authored and starpit committed Apr 17, 2020
1 parent aa833b1 commit 8145c99
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@kui-shell/client": "file:plugins/plugin-client-default",
"@kui-shell/plugin-kubectl": "file:plugins/plugin-kubectl",
"@kui-shell/plugin-ibmcloud": "file:plugins/plugin-ibmcloud",
"@kui-shell/plugin-skeleton": "file:plugins/plugin-skeleton",
"@kui-shell/plugin-wskflow": "file:plugins/plugin-wskflow"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions plugins/plugin-skeleton/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
mdist/
build
6 changes: 6 additions & 0 deletions plugins/plugin-skeleton/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
src
tests
dist/test
tsconfig*
/*.tgz
1 change: 1 addition & 0 deletions plugins/plugin-skeleton/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hi! If you came from [wiki](https://github.com/IBM/kui/wiki), please note that plugin-skeleton is the place to prototype your code, so any pull request from plugin-sandbox won't be accepted. Thank you!
16 changes: 16 additions & 0 deletions plugins/plugin-skeleton/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@kui-shell/plugin-skeleton",
"version": "8.4.2",
"description": "",
"main": "mdist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public"
}
}
15 changes: 15 additions & 0 deletions plugins/plugin-skeleton/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright 2020 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
15 changes: 15 additions & 0 deletions plugins/plugin-skeleton/src/plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright 2020 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
15 changes: 15 additions & 0 deletions plugins/plugin-skeleton/src/preload.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright 2020 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
11 changes: 11 additions & 0 deletions plugins/plugin-skeleton/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../packages/builder/tsconfig-base.json",
"include": ["src/**/*"],
"compilerOptions": {
"noImplicitAny": true,
"composite": true,
"jsx": "react",
"outDir": "mdist",
"rootDir": "src"
}
}
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
{
"path": "plugins/plugin-proxy-support"
},
{
"path": "plugins/plugin-skeleton"
},
{
"path": "plugins/plugin-client-default"
},
Expand Down

0 comments on commit 8145c99

Please sign in to comment.