Skip to content

Commit

Permalink
chore(base): client + server
Browse files Browse the repository at this point in the history
  • Loading branch information
antonstjernquist committed Sep 3, 2024
1 parent ed92d30 commit b9247fa
Show file tree
Hide file tree
Showing 8 changed files with 9,839 additions and 11,856 deletions.
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"]
}
}

0 comments on commit b9247fa

Please sign in to comment.