Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
npm-dependencies:
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
checks:
runs-on: ubuntu-slim
Comment thread
Hashory marked this conversation as resolved.
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Check formatting
run: pnpm run format:check

- name: Lint
run: pnpm run lint

- name: Typecheck
run: pnpm run check
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Logs
logs
*.log
vite-preview*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.svelte-kit
build
dist
dist-ssr
*.local
Expand Down
19 changes: 19 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"useTabs": true,
"singleQuote": false,
"sortImports": {
"groups": [
"type-import",
["value-builtin", "value-external"],
"type-internal",
"value-internal",
["type-parent", "type-sibling", "type-index"],
["value-parent", "value-sibling", "value-index"],
"unknown"
]
},
"sortPackageJson": {
"sortScripts": true
}
}
10 changes: 10 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es2024": true,
"node": true
},
"ignorePatterns": ["build/**", ".svelte-kit/**"],
"plugins": ["import", "typescript", "vitest"]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
[A4toA3 - PDF変換ツール](https://a4toa3.hashory.app/)

## 概要

A4toA3は、A4サイズのPDFの2ページ分を1枚のA3用紙に並べて配置した新しいPDFを作成するツールです。

## ライセンス

このプロジェクトは [MITライセンス](LICENSE) のもとで公開されています。
64 changes: 0 additions & 64 deletions biome.json

This file was deleted.

146 changes: 0 additions & 146 deletions index.html

This file was deleted.

41 changes: 28 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,37 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "svelte-kit sync && vite build",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"dev": "vite dev",
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"lint": "oxlint .",
"prepare": "svelte-kit sync",
"preview": "vite preview",
"biome": "biome check --write"
},
"devDependencies": {
"@biomejs/biome": "^2.0.6",
"@types/node": "^24.0.10",
"tsx": "^4.21.0",
"typescript": "~5.7.2",
"vite": "^6.3.1",
"vite-plugin-sitemap": "^0.8.2",
"vitest": "^4.0.15"
"test": "vitest run"
},
"dependencies": {
"pdf-lib": "^1.17.1",
"ts-custom-error": "^3.3.1"
}
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.57.1",
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"@types/node": "^25.6.0",
"oxfmt": "^0.44.0",
"oxlint": "^1.59.0",
"svelte": "^5.55.3",
"svelte-check": "^4.4.6",
"tsx": "^4.21.0",
"typescript": "^6.0.2",
"vite": "^8.0.8",
"vitest": "^4.1.4"
},
"engines": {
"node": ">=22.12.0",
"pnpm": ">=10.33.0"
},
"packageManager": "pnpm@10.33.0"
}
Loading
Loading