Skip to content

Commit

Permalink
setup to migrate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Aug 23, 2024
1 parent 56449a5 commit 853b19a
Show file tree
Hide file tree
Showing 15 changed files with 6,484 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.json

This file was deleted.

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

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test-ci:
name: test-ci
runs-on: ubuntu-latest
timeout-minutes: 5
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
29 changes: 29 additions & 0 deletions .github/workflows/discord-activity-starter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: discord-activity-starter

on:
push:
branches: [main]
paths:
- 'discord-activity-starter/packages/**'
pull_request:
branches: [main]
paths:
- 'discord-activity-starter/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: discord-activity-starter/packages/server
- run: npm run build
working-directory: discord-activity-starter/packages/client
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
output
*.log
.DS_Store
tmp
*.tsbuildinfo
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2024 Discord Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 21 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"include": ["./**/*.js", "./**/*.ts"],
"ignore": ["**/node_modules"]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}
2 changes: 1 addition & 1 deletion discord-activity-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_modules
.DS_Store
build
dist
.env
.env
2 changes: 1 addition & 1 deletion discord-activity-starter/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "vite build"
},
"dependencies": {
"@discord/embedded-app-sdk": "workspace:@discord/embedded-app-sdk@*"
"@discord/embedded-app-sdk": "^1.4.2"
},
"devDependencies": {
"vite": "^5.2.9"
Expand Down
2 changes: 1 addition & 1 deletion nested-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@discord/embedded-app-sdk": "workspace:@discord/embedded-app-sdk@*",
"@discord/embedded-app-sdk": "^1.4.2",
"dotenv": "^16.0.3",
"esbuild": "^0.23.0",
"eventemitter3": "^5.0.0",
Expand Down
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "embedded-app-sdk-examples",
"version": "0.0.0",
"private": true,
"description": "Examples for the Discord Embedded App SDK",
"keywords": [
"Embedded App SDK",
"Examples"
],
"author": "Discord",
"license": "MIT",
"scripts": {
"fix": "biome check --write .",
"lint": "biome check ."
},
"devDependencies": {
"@biomejs/biome": "^1.8.3"
}
}
Loading

0 comments on commit 853b19a

Please sign in to comment.