Skip to content

Commit

Permalink
build: get tsc running in CI (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Aug 23, 2024
1 parent 853b19a commit 1144ae6
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/nested-messages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: nested-messages

on:
push:
branches: [main]
paths:
- 'nested-messages/packages/**'
pull_request:
branches: [main]
paths:
- 'nested-messages/packages/**'

jobs:
tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.0.6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: npm run build
working-directory: nested-messages/

29 changes: 29 additions & 0 deletions .github/workflows/react-colyseus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: react-colyseus

on:
push:
branches: [main]
paths:
- 'react-colyseus/packages/**'
pull_request:
branches: [main]
paths:
- 'react-colyseus/packages/**'

jobs:
tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.0.6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: npm run build
working-directory: react-colyseus/packages/server
- run: npm run build
working-directory: react-colyseus/packages/client
29 changes: 29 additions & 0 deletions .github/workflows/sdk-playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: sdk-playground

on:
push:
branches: [main]
paths:
- 'sdk-playground/packages/**'
pull_request:
branches: [main]
paths:
- 'sdk-playground/packages/**'

jobs:
tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.0.6
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: npm run build
working-directory: sdk-playground/packages/server
- run: npm run build
working-directory: sdk-playground/packages/client
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Embedded App SDK Examples

<p align="center">
<img src="/assets/discord-embedded-apps.svg" alt="Discord Embedded App SDK" width="500" />
<img src="https://github.com/discord/embedded-app-sdk/raw/main/assets/discord-embedded-apps.svg" alt="Discord Embedded App SDK" width="500" />
<p>

This repository contains a collection of examples for the [Discord Embedded App SDK](https://github.com/discord/embedded-app-sdk). To get started, visit [discord.dev](https://discord.dev).

### [Discord Activity Starter](/examples/discord-activity-starter)

This starter app will get you up and running quickly with the basic skeleton of an Embedded App using Node.js, React, and Vite.
Expand Down
4 changes: 2 additions & 2 deletions discord-activity-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dev": "pnpm run --filter \"./packages/**\" --parallel dev",
"tunnel": "cloudflared tunnel --url http://localhost:3000"
},
"author": "",
"license": "ISC",
"author": "Discord",
"license": "MIT",
"dependencies": {
"express": "^4.19.2"
},
Expand Down
3 changes: 2 additions & 1 deletion discord-activity-starter/packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"debug:start": "npm-run-all build debug:start:prod",
"debug:start:prod": "node --nolazy --inspect-brk=9229 ./dist/app.js"
},
"license": "ISC",
"author": "Discord",
"license": "MIT",
"dependencies": {
"dotenv": "^16.0.1",
"nodemon": "^3.1.0"
Expand Down
4 changes: 2 additions & 2 deletions nested-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"start": "node server/index.js",
"dev": "nodemon --watch client -e ts,html --exec \"$npm_execpath run build && $npm_execpath run start\""
},
"author": "",
"license": "ISC",
"author": "Discord",
"license": "MIT",
"dependencies": {
"@discord/embedded-app-sdk": "^1.4.2",
"dotenv": "^16.0.3",
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions react-colyseus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"dev": "pnpm run --filter \"./packages/**\" --parallel dev",
"tunnel": "cloudflared tunnel --url http://localhost:3000"
},
"author": "",
"license": "ISC"
"author": "Discord",
"license": "MIT"
}
3 changes: 2 additions & 1 deletion react-colyseus/packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"debug:start": "npm-run-all build debug:start:prod",
"debug:start:prod": "node --nolazy --inspect-brk=9229 ./dist/app.js"
},
"license": "ISC",
"license": "MIT",
"author": "Discord",
"dependencies": {
"@colyseus/monitor": "^0.15.6",
"@colyseus/schema": "^2.0.30",
Expand Down
4 changes: 2 additions & 2 deletions sdk-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "A project for exploring and testing embedded app features",
"private": true,
"version": "0.1.0",
"author": "",
"license": "ISC",
"author": "Discord",
"license": "MIT",
"scripts": {
"dev": "pnpm run --filter \"./packages/**\" --parallel dev",
"tunnel": "cloudflared tunnel --url http://localhost:3000"
Expand Down
5 changes: 4 additions & 1 deletion sdk-playground/packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
"deploy": "./handle-wrangler-secrets.sh production local && wrangler publish src/index.ts --env production",
"dev": "./handle-wrangler-secrets.sh dev local && wrangler dev src/index.ts --env dev",
"staging": "./handle-wrangler-secrets.sh staging local && wrangler dev src/index.ts --env staging",
"test": "uvu -r tsm test"
"test": "uvu -r tsm test",
"build": "tsc"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240405.0",
"@types/jest": "^29.5.12",
"@types/service-worker-mock": "^2.0.1",
"service-worker-mock": "^2.0.5",
"tsm": "^2.2.1",
"typescript": "~5.5.0",
"uvu": "^0.5.3",
"wrangler": "^3.50.0"
}
Expand Down

0 comments on commit 1144ae6

Please sign in to comment.