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.4.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.4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tssetup-1.3.4.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.4.tar.gz
Algorithm Hash digest
SHA256 9f752c9e31d40a743b027ea159f55957c3aa4392668077232c5bb17396b56a9e
MD5 5dc30ee8e95a167f7eada37492ab1e03
BLAKE2b-256 c362befe3f82b92745cd4e9c7c3bf3e2514fdc1cd9d750b76152388496a74a40

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tssetup-1.3.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 110d9a47f661aa4600e19069e6d1ee3ee2f70a2f5454d72c8a18fc6c2e749aa6
MD5 db5177002aee33618e718bd0752fd20f
BLAKE2b-256 d85f959f814a4f9818aff211f36ca7830533598bf3209c8c73914fd6256f3ce4

See more details on using hashes here.

Provenance

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