diff --git a/package-lock.json b/package-lock.json index bfeb7c28264..390e70e1568 100644 --- a/package-lock.json +++ b/package-lock.json @@ -521,6 +521,9 @@ "@kui-shell/plugin-core-themes": { "version": "file:plugins/plugin-core-themes" }, + "@kui-shell/plugin-skeleton": { + "version": "file:plugins/plugin-skeleton" + }, "@kui-shell/plugin-git": { "version": "file:plugins/plugin-git", "requires": { diff --git a/package.json b/package.json index ef821ad7b65..58b32041f31 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/plugins/plugin-skeleton/.gitignore b/plugins/plugin-skeleton/.gitignore new file mode 100644 index 00000000000..45bbbb07f94 --- /dev/null +++ b/plugins/plugin-skeleton/.gitignore @@ -0,0 +1,3 @@ +dist/ +mdist/ +build \ No newline at end of file diff --git a/plugins/plugin-skeleton/.npmignore b/plugins/plugin-skeleton/.npmignore new file mode 100644 index 00000000000..889f599078c --- /dev/null +++ b/plugins/plugin-skeleton/.npmignore @@ -0,0 +1,6 @@ +build +src +tests +dist/test +tsconfig* +/*.tgz diff --git a/plugins/plugin-skeleton/Readme.md b/plugins/plugin-skeleton/Readme.md new file mode 100644 index 00000000000..cb6231de502 --- /dev/null +++ b/plugins/plugin-skeleton/Readme.md @@ -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! diff --git a/plugins/plugin-skeleton/package.json b/plugins/plugin-skeleton/package.json new file mode 100644 index 00000000000..cf76420e78a --- /dev/null +++ b/plugins/plugin-skeleton/package.json @@ -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" + } +} diff --git a/plugins/plugin-skeleton/src/index.ts b/plugins/plugin-skeleton/src/index.ts new file mode 100644 index 00000000000..175a9b3df2e --- /dev/null +++ b/plugins/plugin-skeleton/src/index.ts @@ -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. + */ diff --git a/plugins/plugin-skeleton/src/plugin.ts b/plugins/plugin-skeleton/src/plugin.ts new file mode 100644 index 00000000000..175a9b3df2e --- /dev/null +++ b/plugins/plugin-skeleton/src/plugin.ts @@ -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. + */ diff --git a/plugins/plugin-skeleton/src/preload.ts b/plugins/plugin-skeleton/src/preload.ts new file mode 100644 index 00000000000..175a9b3df2e --- /dev/null +++ b/plugins/plugin-skeleton/src/preload.ts @@ -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. + */ diff --git a/plugins/plugin-skeleton/tsconfig.json b/plugins/plugin-skeleton/tsconfig.json new file mode 100644 index 00000000000..42a4d4d0fcb --- /dev/null +++ b/plugins/plugin-skeleton/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../packages/builder/tsconfig-base.json", + "include": ["src/**/*"], + "compilerOptions": { + "noImplicitAny": true, + "composite": true, + "jsx": "react", + "outDir": "mdist", + "rootDir": "src" + } +} diff --git a/tsconfig.json b/tsconfig.json index da2bd3b322f..fb54cc97121 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,6 +31,9 @@ { "path": "plugins/plugin-proxy-support" }, + { + "path": "plugins/plugin-skeleton" + }, { "path": "plugins/plugin-client-default" },