ReactPy static site generation (SSG)

オープン
#1,272 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
bun, python, react

調査の方向性

Start by reviewing the client-side components introduced in PR #1269 and the proposed reactpy CLI and reactpy.pyscript API boundaries. Done means defining and implementing a path from *.py or Jinja-compatible *.html inputs to equivalently named static pages in the requested output directory, including the stated base URL behavior.

索引モデルが issue の本文から書いたものです。

説明

priority-2-moderate
Current Situation

Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s).

Proposed Actions

Create some sort of reactpy CLI (or maybe a Bun plugin?) that allows ReactPy to be compiled down into flatpage(s).

This function should compile client-side components *.py files into equivalently named *.html files. Alternatively, if the user provides a glob pattern with *.html, these templates are assumed to be Jinja compatible.

For example, a CLI command might looks like this:

reactpy ssg "glob_pattern/to/my_components_*.py" --outdir "dist/" --base_url "example/"

We should also have a Python API equivalent for people wanting to perform SSG via scripts. It might look like this:

from reactpy.pyscript import compile_static_site

compile_static_site( "glob_pattern/to/my_components_*.py", outdir="dist/")
主要言語
Python
スター
8.1k
フォーク
332
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

reactive-python/reactpy のほかの issue

reactive-python/reactpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。