Skip to content

Commit b7d4bd9

Browse files
committed
Add initial project structure with build scripts, configuration, and WebSocket bridge for Pyright LSP
0 parents  commit b7d4bd9

File tree

9 files changed

+3543
-0
lines changed

9 files changed

+3543
-0
lines changed

.gitignore

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Optional stylelint cache
57+
.stylelintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Output of 'npm pack'
63+
*.tgz
64+
65+
# Yarn Integrity file
66+
.yarn-integrity
67+
68+
# dotenv environment variable files
69+
.env
70+
.env.*
71+
!.env.example
72+
73+
# parcel-bundler cache (https://parceljs.org/)
74+
.cache
75+
.parcel-cache
76+
77+
# Next.js build output
78+
.next
79+
out
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and not Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# vuepress v2.x temp and cache directory
95+
.temp
96+
.cache
97+
98+
# Sveltekit cache directory
99+
.svelte-kit/
100+
101+
# vitepress build output
102+
**/.vitepress/dist
103+
104+
# vitepress cache directory
105+
**/.vitepress/cache
106+
107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# Firebase cache directory
120+
.firebase/
121+
122+
# TernJS port file
123+
.tern-port
124+
125+
# Stores VSCode versions used for testing VSCode extensions
126+
.vscode-test
127+
128+
# yarn v3
129+
.pnp.*
130+
.yarn/*
131+
!.yarn/patches
132+
!.yarn/plugins
133+
!.yarn/releases
134+
!.yarn/sdks
135+
!.yarn/versions
136+
137+
# Vite logs files
138+
vite.config.js.timestamp-*
139+
vite.config.ts.timestamp-*
140+
141+
# Build artifacts
142+
build/
143+
output/
144+
*.tar.gz
145+
*.zip

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Pyright LSP WebSocket Bridge
2+
3+
WebSocket bridge for Pyright language server with bundled Node.js runtime.
4+
5+
## Build
6+
7+
### Single Platform (Linux x64)
8+
```bash
9+
./build.sh
10+
```
11+
Output: `output/linux-x64.tar.gz` (~34 MB)
12+
13+
### All Platforms
14+
```bash
15+
./build-all.sh
16+
```
17+
Outputs:
18+
- `linux-x64.tar.gz` / `linux-arm64.tar.gz`
19+
- `darwin-x64.tar.gz` / `darwin-arm64.tar.gz`
20+
- `win32-x64.zip`
21+
22+
## Deploy & Run
23+
24+
### Linux/macOS
25+
```bash
26+
# Extract
27+
tar -xzf linux-x64.tar.gz
28+
29+
# Run
30+
cd linux-x64
31+
./start.sh \
32+
--port 9011 \
33+
--project-root /path/to/project \
34+
--jesse-relative-path jesse_folder_name \
35+
--bot-relative-path jesse-bot_folder_name
36+
```
37+
38+
### Windows
39+
```cmd
40+
REM Extract linux-x64.zip, then:
41+
cd linux-x64
42+
start.bat --port 9011 --project-root C:\path\to\project --jesse-relative-path jesse_folder_name --bot-relative-path jesse-bot_folder_nam
43+
```
44+
45+
## Features
46+
47+
- ✅ Bundled Node.js runtime (no system dependencies)
48+
- ✅ Optimized build (~70% size reduction)
49+
- ✅ Cross-platform support (Linux, macOS, Windows)
50+
- ✅ Production-ready dependencies only
51+
52+
## Development
53+
54+
```bash
55+
npm install
56+
npm start -- --port 9011 --project-root /path/to/project ...
57+
```
58+

0 commit comments

Comments
 (0)