Skip to content

Commit

Permalink
Merge pull request #23 from p-society/main
Browse files Browse the repository at this point in the history
Syncing api basketball
  • Loading branch information
zakhaev26 authored Jan 6, 2024
2 parents c13b829 + 2768bd3 commit 90a3c9b
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 29 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/check_chess_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: BUILD_CHESS_API[RUNTIME:BUN]

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2


- name: Install Bun Runtime
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.20

- name: Install deps
run: |
cd src/api/chess
echo pwd
bun install
- name: Build API
run: bun run src/api/chess/index.ts


2 changes: 1 addition & 1 deletion .github/workflows/check_go_build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: BUILD_BASKETBALL_API

on:
push:
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/lint-go-ci.yml

This file was deleted.

175 changes: 175 additions & 0 deletions src/api/chess/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# Logs

logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Caches

.cache

# Diagnostic reports (https://nodejs.org/api/report.html)

report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Runtime data

pids
_.pid
_.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
*.lcov

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)

.parcel-cache

# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist

# Gatsby files

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IntelliJ based IDEs
.idea

# Finder (MacOS) folder config
.DS_Store
15 changes: 15 additions & 0 deletions src/api/chess/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# chess-api

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.0.20. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
Binary file added src/api/chess/bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions src/api/chess/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
console.log("Hello via Bun!");

11 changes: 11 additions & 0 deletions src/api/chess/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "chess-api",
"module": "index.ts",
"type": "module",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}
22 changes: 22 additions & 0 deletions src/api/chess/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

/* Linting */
"skipLibCheck": true,
"strict": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
}
}

0 comments on commit 90a3c9b

Please sign in to comment.