Skip to main content

Bun + TypeScript フロントエンド環境を1コマンドで構築するツール

Project description

tssetup

PowerShellやCMDから1コマンドで、Bun + TypeScript の高速なフロントエンド開発環境(ホットリロードサーバー内蔵)を初期構築するツールです。

🚀 特徴

  • 瞬時にプロジェクト開始: フォルダ作成、bun inittsconfig.json の設定、ホットリロードサーバースクリプトの作成を自動で一括実行します。
  • 多彩な初期テンプレート:
    • default: Destyle.css を内包したシンプルな構成(ダークモード対応)。
    • tailwind: CDN版 Tailwind CSS が即座に使えるレイアウト構成。
    • router: ライブラリを使わずに HTML5 History API を利用した、自作の超軽量 SPA ルーティング構成。
    • empty: 最少構成(空の TypeScript ファイルとシンプルな HTML)。
  • エディタ連携: --code オプションを付けるだけで、作成したプロジェクトフォルダを VS Code で即座に開きます。
  • 自動バージョン確認: 実行時に最新バージョンを確認し、更新がある場合は通知します。

🛠️ インストール方法

pip(推奨):

pip install tssetup

[!NOTE]

  • PowerShell・CMD・Windows Terminal どれからでも使えます。
  • 動作には Python 3.9+Bun が必要です。

⚙️ 動作に必要な環境(依存関係)

ツール 用途 インストール
Python 3.9+ tssetup 本体の実行 python.org
Bun プロジェクト初期化・TSコンパイル powershell -c "irm bun.sh/install.ps1 | iex"
VS Code (任意) --code オプション使用時 code.visualstudio.com

⚡ 使い方と全パラメータ一覧

tssetup <プロジェクト名> [--mode <モード名>] [--title <タイトル名>] [--code]

引数なしで実行するとバージョン情報・開発者情報のインフォ画面が表示されます。

パラメータ(引数)詳細

パラメータ 短縮形 必須 デフォルト値 説明
project_name - string はい - 作成するプロジェクトのフォルダ名
--mode -m string いいえ default テンプレートモード(default / tailwind / router / empty
--title -t string いいえ "Bun + TS App" <title> タグに埋め込むテキスト
--code -c flag いいえ - セットアップ完了後に VS Code で開く
--version -v flag いいえ - バージョンを表示
--help -h flag いいえ - ヘルプを表示

コマンド実行例

# 標準テンプレートで作成
tssetup my-app

# Tailwind CSS 組み込み + VS Code で開く
tssetup my-app --mode tailwind --code

# 自作 SPA ルーター構成
tssetup my-app --mode router --title "マイSPAサイト"

# 最小構成
tssetup my-app --mode empty

📁 作成されるファイル構成

my-app/
├── src/
│   └── index.ts        ← エントリポイント(--mode で内容が変わる)
├── dist/               ← tsc が自動生成するJS出力先
├── node_modules/       ← bun install が自動生成
├── index.html          ← フロントエンドのHTML
├── server.ts           ← ホットリロード対応の開発用Webサーバー
├── tsconfig.json       ← TypeScript コンパイラ設定
└── package.json        ← Bun プロジェクト設定

プロジェクト作成後は自動的にそのディレクトリへ移動します。そのまま tsbuild を実行すれば開発を始められます。


🔄 アップデート

pip install --upgrade tssetup

✉️ 問い合わせ先


⚠️ 免責事項

本ソフトウェアの使用によって生じた直接的・間接的な損害について、作者は一切の責任を負いません。自己責任のもとでご使用ください。


📄 ライセンス & コピーライト

本プロジェクトは MIT License のもとで公開されています。

Copyright (c) 2026 Lapius7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tssetup-1.3.3.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tssetup-1.3.3-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file tssetup-1.3.3.tar.gz.

File metadata

  • Download URL: tssetup-1.3.3.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tssetup-1.3.3.tar.gz
Algorithm Hash digest
SHA256 52439c003a2cc00a42b096f77ff4285cce3d027b4deaafee0c200f82268111f8
MD5 90cae8f3111a7e081c1949acde3175a6
BLAKE2b-256 26a3a1d044cea757e1ba68be110ffc6d54bd14caeee60a6afb3a329742bcd254

See more details on using hashes here.

Provenance

The following attestation bundles were made for tssetup-1.3.3.tar.gz:

Publisher: publish.yml on Lapius7/tssetup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tssetup-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: tssetup-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tssetup-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4b3816af155c8e463c46cec56bd8a77f8c8b2469032cc978b3bf515ff0432a
MD5 86d9124aeba3c280b50b15af3f926976
BLAKE2b-256 fd7f244b4ba8b1d43f697344b40c15157dd71aec93a6c28ef84fa2ddf3d20a95

See more details on using hashes here.

Provenance

The following attestation bundles were made for tssetup-1.3.3-py3-none-any.whl:

Publisher: publish.yml on Lapius7/tssetup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page