feat: update remote app integration and enhance package configuration
This commit is contained in:
@@ -2,3 +2,5 @@ import { buildWithBun } from '@kevisual/code-builder';
|
|||||||
|
|
||||||
await buildWithBun({ naming: 'app', entry: 'src/index.ts', dts: true, clean: true });
|
await buildWithBun({ naming: 'app', entry: 'src/index.ts', dts: true, clean: true });
|
||||||
|
|
||||||
|
await buildWithBun({ naming: 'remote', entry: 'src/remote.ts', dts: true });
|
||||||
|
|
||||||
|
|||||||
11
package.json
11
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kevisual/project-search",
|
"name": "@kevisual/project-search",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -18,20 +18,21 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kevisual/code-builder": "^0.0.6",
|
"@kevisual/code-builder": "^0.0.6",
|
||||||
"@kevisual/context": "^0.0.8",
|
"@kevisual/context": "^0.0.8",
|
||||||
|
"@kevisual/dts": "^0.0.4",
|
||||||
"@kevisual/remote-app": "^0.0.7",
|
"@kevisual/remote-app": "^0.0.7",
|
||||||
"@kevisual/router": "^0.1.1",
|
"@kevisual/router": "^0.1.1",
|
||||||
"fast-glob": "^3.3.3",
|
"fast-glob": "^3.3.3",
|
||||||
"meilisearch": "^0.55.0",
|
"meilisearch": "^0.55.0",
|
||||||
"zod": "^4.3.6"
|
"zod": "^4.3.6",
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@parcel/watcher": "^2.5.6",
|
"@parcel/watcher": "^2.5.6",
|
||||||
"es-toolkit": "^1.45.1",
|
"es-toolkit": "^1.45.1",
|
||||||
"eventemitter3": "^5.0.4"
|
"eventemitter3": "^5.0.4"
|
||||||
},
|
},
|
||||||
|
"dependencies": {},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist/app.js",
|
".": "./dist/app.js",
|
||||||
"./route": "./dist/app.js"
|
"./routes": "./dist/app.js",
|
||||||
|
"./remote": "./dist/remote.js"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
import { app, manager } from './index'
|
import { app } from './index'
|
||||||
import { RemoteApp } from '@kevisual/remote-app'
|
import { RemoteApp } from '@kevisual/remote-app'
|
||||||
|
|
||||||
app.createRouteList()
|
app.createRouteList()
|
||||||
const remote = new RemoteApp({
|
|
||||||
app,
|
export const run = async (username: string) => {
|
||||||
id: 'project-search',
|
const remote = new RemoteApp({
|
||||||
username: 'root'
|
app,
|
||||||
});
|
id: 'project-search',
|
||||||
const isConnect = await remote.isConnect();
|
username: username,
|
||||||
if (isConnect) {
|
});
|
||||||
console.log('Remote app connected successfully', isConnect);
|
const isConnect = await remote.isConnect();
|
||||||
remote.listenProxy();
|
if (isConnect) {
|
||||||
|
console.log('Remote app connected successfully', isConnect);
|
||||||
|
remote.listenProxy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user