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.1.tar.gz (18.3 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.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tssetup-1.3.1.tar.gz
  • Upload date:
  • Size: 18.3 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.1.tar.gz
Algorithm Hash digest
SHA256 7982dee74e01fc61ab8dc30815b646880b2eb27e14bdf92a80d66e5d27af434b
MD5 14215e340ad0335b51920197735053d3
BLAKE2b-256 7fa407c2d8e99a7c46af8927164764aca22e73ad4fc1bef7a146498a25ce22f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tssetup-1.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: tssetup-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8adefce21cbecc0e1b6e092778df39ac2137f6130356f774ac286c5193f207d0
MD5 9df0d8f87a80f5dc289670007f712f6d
BLAKE2b-256 5b8fbe38a0ed47695378e83d362405fa885aa7a19086bbbe5bc46988d42832a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tssetup-1.3.1-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