Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(base): client + server #1177

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21,632 changes: 9,776 additions & 11,856 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
packages:
- 'apps/**'
- 'packages/**'
- 'src/**'
- 'core/**'
10 changes: 10 additions & 0 deletions src/client/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let isFocused = false;
const exps = global.exports;

RegisterCommand(
'mock-command',
() => {
console.log('calling mock command');
},
false,
);
17 changes: 17 additions & 0 deletions src/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "@npwd/client",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "node index.js",
"dev": "tsx index.ts"
},
"devDependencies": {
"tsx": "^4.19.0"
},
"dependencies": {
"@citizenfx/client": "^2.0.4170-1",
"@types/node": "^22.5.2"
}
}
13 changes: 13 additions & 0 deletions src/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"types": ["@citizenfx/client", "@types/node"],
"moduleResolution": "node",
"resolveJsonModule": true,
"esModuleInterop": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"allowJs": true,
"lib": ["es2017"]
}
}
1 change: 1 addition & 0 deletions src/server/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Server started.');
16 changes: 16 additions & 0 deletions src/server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@npwd/server",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "node index.js",
"dev": "tsx index.ts"
},
"devDependencies": {
"tsx": "^4.19.0"
},
"dependencies": {
"@citizenfx/server": "2.0.9655-1"
}
}
5 changes: 5 additions & 0 deletions src/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"types": ["@citizenfx/server"]
}
}
Loading