cef implementation

This commit is contained in:
Oleksandr Honcharov 2024-06-11 21:34:35 +03:00
parent 39ab22f9aa
commit 17ef98cbd2
5 changed files with 75 additions and 0 deletions

23
cef/package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "rage-fw-cef",
"version": "0.0.16-alpha.0",
"main": "dist/index.js",
"types": "dist/src/index.d.ts",
"files": [
"dist/**/*"
],
"scripts": {
"build": "tsup"
},
"dependencies": {
"rage-fw-shared-types": "workspace:^",
"rage-rpc": "^0.4.0"
},
"peerDependencies": {
"@ragempcommunity/types-cef": "^2.1.8"
},
"keywords": [],
"author": "SashaGoncharov19",
"license": "MIT",
"description": "CEF side for rage-fw"
}

15
cef/src/index.ts Normal file
View File

@ -0,0 +1,15 @@
import rpc from 'rage-rpc'
class Cef {
public register() {}
public trigger() {}
public triggerServer() {}
public triggerClient() {}
}
export const fw = {
event: new Cef(),
}

0
cef/src/types/index.ts Normal file
View File

25
cef/tsconfig.json Normal file
View File

@ -0,0 +1,25 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Base",
"exclude": [
"node_modules"
],
"compilerOptions": {
"incremental": false,
"composite": false,
"target": "ES2022",
"experimentalDecorators": true,
"moduleDetection": "auto",
"module": "CommonJS",
"resolveJsonModule": true,
"declaration": true,
"declarationMap": false,
"sourceMap": false,
"downlevelIteration": false,
"inlineSourceMap": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}

12
cef/tsup.config.ts Normal file
View File

@ -0,0 +1,12 @@
import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
outDir: './dist',
format: ['cjs'],
noExternal: ['rage-rpc'],
experimentalDts: true,
splitting: false,
sourcemap: false,
clean: true,
})