chore(global): install more deps and add debugging stuff for VS Code

Also updated the gitignore file to ignore npm stuff if people chose to do `npm install` themselves.

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-03-22 15:15:05 +00:00
parent be85d12555
commit cc9004b433
74 changed files with 705 additions and 69 deletions

6
.gitignore vendored
View File

@ -12,4 +12,8 @@
# State files
rpcState.json
gameStatus.json
gameStatus.json
# npm stuff
package-lock.json
node_modules

5
.gitpod.Dockerfile vendored
View File

@ -9,4 +9,7 @@ RUN wget "https://discord.com/api/download?platform=linux&format=tar.gz" -O /tmp
# Then install Xfce4 goodies and deps for Electron-based apps
RUN sudo install-packages xfce4 xfce4-goodies libnss3 xubuntu-default-settings xubuntu-icon-theme firefox dbus dbus-x11 libgbm-dev
ENV WINDOW_MANAGER=startxfce4
ENV WINDOW_MANAGER=startxfce4
# Finally install HTTPie for testing API endpoints
RUN brew update && brew install httpie hadolint

View File

@ -5,8 +5,19 @@
image:
file: .gitpod.Dockerfile
tasks:
- name: Start Discord
- name: Discord
# This script will be run during workspac startup to ensure that your
before: |
if [[ ! -d "/workspace/.discordappdata" ]]; then
mkdir /workspace/.discordappdata
fi
ln -s /workspace/.discordappdata ~/.config/discord
command: ~/.local/lib/discord/Discord
ports:
# VNC server
- port: 5900
onOpen: ignore
onOpen: ignore
# Ignore Discord's RPC local server for Rich Presence
- port: 6463-6472
onOpen: ignore
visibility: private

725
.pnp.cjs generated

File diff suppressed because it is too large Load Diff

17
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch via Yarn",
"runtimeExecutable": "yarn",
"cwd": "${workspaceFolder}",
"runtimeArgs": ["start:debug"],
"port": 5858
}
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -12,7 +12,7 @@
}
],
"dependencies": {
"discord-rpc": "^4.0.1",
"discord-auto-rpc": "^1.0.16",
"express": "^4.17.3"
},
"devDependencies": {
@ -21,12 +21,14 @@
"commitizen": "^4.2.4",
"commitlint": "^16.2.3",
"cz-conventional-changelog": "^3.3.0",
"nodemon": "^2.0.15",
"pm2": "^5.2.0",
"typescript": "^4.6.2"
},
"scripts": {
"start": "node app.js",
"commit": "cz --signoff"
"commit": "cz --signoff",
"start:debug": "node --inspect-brk=5858 app.js"
},
"license": "MIT",
"version": "0.1.0",