diff --git a/build/esbuild-build.ts b/build/esbuild-build.ts deleted file mode 100644 index 980b829..0000000 --- a/build/esbuild-build.ts +++ /dev/null @@ -1,33 +0,0 @@ -import esbuild from "esbuild"; -const typescriptEntries = ["src/worker.ts"]; -// const cssEntries = ["static/style.css"]; -const entries = [ - ...typescriptEntries, - // ...cssEntries -]; - -export const esBuildContext: esbuild.BuildOptions = { - sourcemap: true, - entryPoints: entries, - bundle: true, - minify: false, - loader: { - ".png": "dataurl", - ".woff": "dataurl", - ".woff2": "dataurl", - ".eot": "dataurl", - ".ttf": "dataurl", - ".svg": "dataurl", - }, - outdir: "dist", -}; - -esbuild - .build(esBuildContext) - .then(() => { - console.log("\tesbuild complete"); - }) - .catch((err) => { - console.error(err); - process.exit(1); - }); diff --git a/build/esbuild-server.ts b/build/esbuild-server.ts deleted file mode 100644 index 8ca9853..0000000 --- a/build/esbuild-server.ts +++ /dev/null @@ -1,18 +0,0 @@ -import esbuild from "esbuild"; -import { esBuildContext } from "./esbuild-build"; - -(async () => { - await server(); -})().catch((error) => { - console.error("Unhandled error:", error); - process.exit(1); -}); - -export async function server() { - const _context = await esbuild.context(esBuildContext); - const { port } = await _context.serve({ - servedir: "dist", - port: 8080, - }); - console.log(`http://localhost:${port}`); -} diff --git a/src/research/examples/GitHubComment.ts b/src/research/examples/GitHubComment.ts deleted file mode 100644 index 00136d4..0000000 --- a/src/research/examples/GitHubComment.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { PlaceHolder } from "./IssueCommentEventExample"; - -export interface GitHubComment { - url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/comments/1858754659"; - html_url: "https://github.com/pavlovcik/ubiquibot-sandbox/issues/10#issuecomment-1858754659"; - issue_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/10"; - id: 1858754659; - node_id: "IC_kwDOK2eNBc5uylhj"; - user: PlaceHolder[]; - created_at: "2023-12-16T07:59:54Z"; - updated_at: "2023-12-16T07:59:54Z"; - author_association: "OWNER"; - body: "test"; - reactions: PlaceHolder[]; - performed_via_github_app: null; -} diff --git a/src/research/examples/GitHubInstallation.ts b/src/research/examples/GitHubInstallation.ts deleted file mode 100644 index 9a58c2c..0000000 --- a/src/research/examples/GitHubInstallation.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface GitHubInstallation { - id: 42230030; - node_id: "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uNDIyMzAwMzA="; -} diff --git a/src/research/examples/GitHubIssue.ts b/src/research/examples/GitHubIssue.ts deleted file mode 100644 index 01e3182..0000000 --- a/src/research/examples/GitHubIssue.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { PlaceHolder } from "./IssueCommentEventExample"; - -export interface GitHubIssue { - url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/10"; - repository_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox"; - labels_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/10/labels{/name}"; - comments_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/10/comments"; - events_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/10/events"; - html_url: "https://github.com/pavlovcik/ubiquibot-sandbox/issues/10"; - id: 2044648858; - node_id: "I_kwDOK2eNBc553t2a"; - number: 10; - title: "test"; - user: PlaceHolder[]; - labels: PlaceHolder[][]; - state: "open"; - locked: false; - assignee: null; - assignees: []; - milestone: null; - comments: 9; - created_at: "2023-12-16T07:37:46Z"; - updated_at: "2023-12-16T07:59:55Z"; - closed_at: null; - author_association: "OWNER"; - active_lock_reason: null; - body: "test"; - reactions: PlaceHolder[]; - timeline_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/10/timeline"; - performed_via_github_app: null; - state_reason: null; -} diff --git a/src/research/examples/GitHubRepository.ts b/src/research/examples/GitHubRepository.ts deleted file mode 100644 index dbfa2e3..0000000 --- a/src/research/examples/GitHubRepository.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { PlaceHolder } from "./IssueCommentEventExample"; - -export interface GitHubRepository { - id: 728206597; - node_id: "R_kgDOK2eNBQ"; - name: "ubiquibot-sandbox"; - full_name: "pavlovcik/ubiquibot-sandbox"; - private: false; - owner: PlaceHolder[]; - html_url: "https://github.com/pavlovcik/ubiquibot-sandbox"; - description: null; - fork: false; - url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox"; - forks_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/forks"; - keys_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/keys{/key_id}"; - collaborators_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/collaborators{/collaborator}"; - teams_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/teams"; - hooks_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/hooks"; - issue_events_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/events{/number}"; - events_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/events"; - assignees_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/assignees{/user}"; - branches_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/branches{/branch}"; - tags_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/tags"; - blobs_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/git/blobs{/sha}"; - git_tags_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/git/tags{/sha}"; - git_refs_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/git/refs{/sha}"; - trees_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/git/trees{/sha}"; - statuses_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/statuses/{sha}"; - languages_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/languages"; - stargazers_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/stargazers"; - contributors_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/contributors"; - subscribers_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/subscribers"; - subscription_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/subscription"; - commits_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/commits{/sha}"; - git_commits_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/git/commits{/sha}"; - comments_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/comments{/number}"; - issue_comment_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues/comments{/number}"; - contents_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/contents/{+path}"; - compare_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/compare/{base}...{head}"; - merges_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/merges"; - archive_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/{archive_format}{/ref}"; - downloads_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/downloads"; - issues_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/issues{/number}"; - pulls_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/pulls{/number}"; - milestones_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/milestones{/number}"; - notifications_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/notifications{?since,all,participating}"; - labels_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/labels{/name}"; - releases_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/releases{/id}"; - deployments_url: "https://api.github.com/repos/pavlovcik/ubiquibot-sandbox/deployments"; - created_at: "2023-12-06T13:05:45Z"; - updated_at: "2023-12-06T13:05:46Z"; - pushed_at: "2023-12-06T13:05:45Z"; - git_url: "git://github.com/pavlovcik/ubiquibot-sandbox.git"; - ssh_url: "git@github.com:pavlovcik/ubiquibot-sandbox.git"; - clone_url: "https://github.com/pavlovcik/ubiquibot-sandbox.git"; - svn_url: "https://github.com/pavlovcik/ubiquibot-sandbox"; - homepage: null; - size: 0; - stargazers_count: 0; - watchers_count: 0; - language: null; - has_issues: true; - has_projects: true; - has_downloads: true; - has_wiki: true; - has_pages: false; - has_discussions: false; - forks_count: 0; - mirror_url: null; - archived: false; - disabled: false; - open_issues_count: 4; - license: null; - allow_forking: true; - is_template: false; - web_commit_signoff_required: false; - topics: []; - visibility: "public"; - forks: 0; - open_issues: 4; - watchers: 0; - default_branch: "development"; -} diff --git a/src/research/examples/GitHubSender.ts b/src/research/examples/GitHubSender.ts deleted file mode 100644 index 54f5c52..0000000 --- a/src/research/examples/GitHubSender.ts +++ /dev/null @@ -1,20 +0,0 @@ -export interface GitHubSender { - login: "pavlovcik"; - id: 4975670; - node_id: "MDQ6VXNlcjQ5NzU2NzA="; - avatar_url: "https://avatars.githubusercontent.com/u/4975670?v=4"; - gravatar_id: ""; - url: "https://api.github.com/users/pavlovcik"; - html_url: "https://github.com/pavlovcik"; - followers_url: "https://api.github.com/users/pavlovcik/followers"; - following_url: "https://api.github.com/users/pavlovcik/following{/other_user}"; - gists_url: "https://api.github.com/users/pavlovcik/gists{/gist_id}"; - starred_url: "https://api.github.com/users/pavlovcik/starred{/owner}{/repo}"; - subscriptions_url: "https://api.github.com/users/pavlovcik/subscriptions"; - organizations_url: "https://api.github.com/users/pavlovcik/orgs"; - repos_url: "https://api.github.com/users/pavlovcik/repos"; - events_url: "https://api.github.com/users/pavlovcik/events{/privacy}"; - received_events_url: "https://api.github.com/users/pavlovcik/received_events"; - type: "User"; - site_admin: false; -} diff --git a/src/research/examples/IssueCommentEventExample.ts b/src/research/examples/IssueCommentEventExample.ts deleted file mode 100644 index ce1a5e1..0000000 --- a/src/research/examples/IssueCommentEventExample.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { GitHubComment } from "./GitHubComment"; -import { GitHubInstallation } from "./GitHubInstallation"; -import { GitHubIssue } from "./GitHubIssue"; -import { GitHubRepository } from "./GitHubRepository"; -import { GitHubSender } from "./GitHubSender"; - -export interface IssueCommentEventExample { - id: "19a60520-9be9-11ee-9c05-47ece081390b"; - name: "issue_comment"; - payload: { - action: "created"; - issue: GitHubIssue; - comment: GitHubComment; - repository: GitHubRepository; - sender: GitHubSender; - installation: GitHubInstallation; - }; -} - -export interface PlaceHolder {}