Skip to main content

tssetup

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

🚀 特徴

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

🛠️ インストール方法

npm(推奨):

npm i -g @lapius/tssetup

tssetup コマンドが使えるようになります(Node.js 18 以降が必要。本体はシステムの Python 3.9+ で動きます)。

pip:

pip install tssetup

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

ツール 用途 インストール
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 を実行すれば開発を始められます。


🔄 アップデート

npm で入れた場合:

npm i -g @lapius/tssetup

pip で入れた場合:

pip install --upgrade tssetup

どちらの場合も tssetup --update で、入れた方法に合わせて更新できます。


✉️ 問い合わせ先


⚠️ 免責事項

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


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

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

Copyright (c) 2026 Lapius7

Metadata

Release files for tssetup 1.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tssetup 1.3.8
File Size Uploaded
tssetup-1.3.8.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tssetup 1.3.8
File Interpreter ABI Platform
tssetup-1.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 33.0 kB

Release files / tssetup-1.3.8.tar.gz

Download URL tssetup-1.3.8.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cf36f620bd91ccfc9ea6101e38f6937260ca118bd66e69b033f9f19e3837ca17
BLAKE2b-256 checksum
How to use checksums
2818ee0edfdd3083dd18920ddd0f0b8e3a2276923bb4121cda07ecf8d9a20934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / tssetup-1.3.8-py3-none-any.whl

Download URL tssetup-1.3.8-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9045cfeeb15d2c2ebf6cbac1b83330906cf01e5c31ed349fc1c0f6f89d06d930
BLAKE2b-256 checksum
How to use checksums
37410b8723b702cf23c908ce9af81f9ff76cdb33c24185205b62e5461d67d1e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.8 This release

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page