init
This commit is contained in:
commit
8ca9b01243
30 changed files with 1885 additions and 0 deletions
16
packages/cli/package.json
Normal file
16
packages/cli/package.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "cli",
|
||||
"dependencies": {
|
||||
"foxchat.js": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsx": "^3.12.7",
|
||||
"typescript": "^5.1.6"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsx --watch --conditions=development src/index.ts",
|
||||
"start": "node build/index.js"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
11
packages/cli/src/index.ts
Normal file
11
packages/cli/src/index.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Client } from "foxchat.js";
|
||||
|
||||
const client = new Client({
|
||||
instance: "id.fox.localhost",
|
||||
token: "NbV7gaEZaTnhJFF19tt5IkOsscAWkKhuLk7WdkIPfmM",
|
||||
debug: true,
|
||||
});
|
||||
|
||||
(async () => {
|
||||
await client.connect();
|
||||
})();
|
10
packages/cli/tsconfig.json
Normal file
10
packages/cli/tsconfig.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "NodeNext",
|
||||
"module": "NodeNext",
|
||||
"outDir": "build",
|
||||
"strict": true,
|
||||
"target": "ES2022",
|
||||
"allowSyntheticDefaultImports": true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue