Skip to content

Commit

Permalink
Release (v2) (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: ぎがへるつ <67816580+GIGAHERTZ00@users.noreply.github.com>
Co-authored-by: KtaK721 <138202999+KtaK721@users.noreply.github.com>
Co-authored-by: GIGAHERTZ00 <gigahertz00@gmail.com>
Co-authored-by: KtaK <KtaK721@users.noreply.github.com>
  • Loading branch information
5 people authored Oct 14, 2024
1 parent 0a73c9c commit c6617f7
Show file tree
Hide file tree
Showing 126 changed files with 4,045 additions and 421 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
uses: oven-sh/setup-bun@v2

- name: Install dependencies
working-directory: apps/frontend
run: bun install --frozen-lockfile

- name: Build
Expand Down
54 changes: 36 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
strategy:
matrix:
include:
- target: bun-linux-x64
outfile: solver-linux-x64
- target: bun-windows-x64
outfile: solver-windows-x64.exe
- target: bun-darwin-x64
outfile: solver-macos-x64
- target: bun-darwin-arm64
outfile: solver-macos-arm64

name: Build solver (${{ matrix.target }})
- target: linux-x64
outfile: linux-x64
- target: windows-x64
outfile: windows-x64.exe
- target: darwin-x64
outfile: macos-x64
- target: darwin-arm64
outfile: macos-arm64

name: Build (${{ matrix.target }})
runs-on: ubuntu-latest

steps:
Expand All @@ -42,27 +42,38 @@ jobs:

- name: Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.29 # 1.1.30 breaks bytecode compilation (see oven-sh/bun#12508)

- name: Install dependencies
working-directory: apps/solver
run: bun install --frozen-lockfile

- name: Build
- name: Build solver
working-directory: apps/solver
run: bun run build

- name: Build (standalone)
- name: Build solver (standalone)
working-directory: apps/solver
run: bun build --sourcemap=inline --compile --target=${{ matrix.target }} --outfile=dist/${{ matrix.outfile }} src/index.ts
run: bun build --minify --sourcemap --compile --bytecode --target=bun-${{ matrix.target }} --outfile=dist/solver-${{ matrix.outfile }} $(find dist -name '*.js')

- name: Build mock server
working-directory: apps/mock-server
run: bun run build

- name: Build mock server (standalone)
working-directory: apps/mock-server
run: bun build --minify --sourcemap --compile --bytecode --target=bun-${{ matrix.target }} --outfile=dist/server-${{ matrix.outfile }} dist/index.js

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: solver-${{ matrix.target }}
path: apps/solver/dist/${{ matrix.outfile }}
path: |
apps/solver/dist/solver-${{ matrix.outfile }}
apps/mock-server/dist/server-${{ matrix.outfile }}
test:
name: Test schemas
name: Test
runs-on: ubuntu-latest

steps:
Expand All @@ -73,9 +84,16 @@ jobs:
uses: oven-sh/setup-bun@v2

- name: Install dependencies
working-directory: packages/schemas
run: bun install --frozen-lockfile

- name: Test
- name: Test (schemas)
working-directory: packages/schemas
run: bun test

- name: Test (algorithm)
working-directory: packages/algorithm
run: bun test

- name: Test (mock server)
working-directory: apps/mock-server
run: bun test
171 changes: 171 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,174 @@ styled-system-studio

### Wrangler ###
.wrangler

*.local

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

### Python Patch ###
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
poetry.toml

# ruff
.ruff_cache/

# LSP config files
pyrightconfig.json
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
## Apps and Packages

- `frontend`: a Remix frontend
- `solver`: a Hono solver
- `mock-server`: a Hono mock server
- `@data-maki/schemas`: Typia schemas used throughout the monorepo
- `@data-maki/biome-config`: `biome` configurations
- `@data-maki/typescript-config`: `tsconfig.json`s used throughout the monorepo
- [`frontend`](apps/frontend): a Remix frontend
- [`solver`](apps/solver): a Hono solver
- [`mock-server`](apps/mock-server): a Hono mock server
- [`@data-maki/algorithm`](packages/algorithm): Main algorithm implementation
- [`@data-maki/schemas`](packages/schemas): Typia schemas used throughout the monorepo
- [`@data-maki/biome-config`](packages/biome-config): `biome` configurations
- [`@data-maki/typescript-config`](packages/typescript-config): `tsconfig.json`s used throughout the monorepo

Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

Expand Down
7 changes: 6 additions & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@
"@remix-run/cloudflare": "2.12.0",
"@remix-run/cloudflare-pages": "2.12.0",
"@remix-run/react": "2.12.0",
"@tanstack/react-virtual": "^3.10.8",
"@yamada-ui/react": "^1.5.3",
"dataclass": "^2.1.1",
"eventsource-parser": "^2.0.1",
"hono": "^4.6.3",
"isbot": "^4.4.0",
"jotai": "^2.10.0",
"luxon": "^3.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"scroll-sync-react": "^1.2.0"
"scroll-sync-react": "^1.2.0",
"use-debounce": "^10.0.4"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240925.0",
Expand All @@ -40,6 +44,7 @@
"@pandacss/dev": "^0.42.0",
"@remix-run/dev": "2.12.0",
"@ryoppippi/unplugin-typia": "npm:@jsr/ryoppippi__unplugin-typia",
"@types/luxon": "^3.4.2",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"browserslist": "^4.24.0",
Expand Down
Loading

0 comments on commit c6617f7

Please sign in to comment.