mirror of https://github.com/msgbyte/tailchat
feat: cli增加前端插件模板
parent
e90cc6bc3b
commit
c63ad3735c
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"label": "{{name}}",
|
||||||
|
"name": "{{id}}",
|
||||||
|
"url": "/plugins/{{id}}/index.js",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"author": "{{author}}",
|
||||||
|
"description": "{{desc}}",
|
||||||
|
"requireRestart": true
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "@plugins/{{id}}",
|
||||||
|
"main": "src/index.tsx",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "{{desc}}",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"sync:declaration": "tailchat declaration github"
|
||||||
|
},
|
||||||
|
"dependencies": {},
|
||||||
|
"devDependencies": {
|
||||||
|
"react": "18.2.0"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
console.log('Plugin {{name}} is loaded');
|
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"jsx": "react",
|
||||||
|
"importsNotUsedAsValues": "error"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
declare module '@capital/common';
|
||||||
|
declare module '@capital/component';
|
Loading…
Reference in New Issue