5 个版本
0.2.2 | 2023 年 12 月 11 日 |
---|---|
0.2.1 | 2023 年 12 月 4 日 |
0.2.0 | 2023 年 12 月 4 日 |
0.1.1 | 2023 年 11 月 30 日 |
0.1.0 | 2023 年 11 月 29 日 |
在 HTTP 服务器 中排名 543
每月下载 46 次
26KB
316 行
Forest Server
forester 的实时更新开发服务器。
使用方法
要使用实时重新加载功能,您需要将以下 JavaScript 片段添加到 forest.xsl
的根模板中
...
<script type="module" src="forester.js"></script>
<script src="reload.js"></script>
运行 forest watch -- "$args"
,其中 $args
是您想要传递给 forester
的参数。例如
forest wach-- "build --dev --root index trees/"
安装和设置
cargoinstall forest-server
需要 forester
在 $PATH
中可用。
使用 Nix 安装
{
inputs = {
forester.url = "sourcehut:~jonsterling/ocaml-forester";
forest-server.url = "github:kentookura/forest-server";
forester.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, forester, forest-server, nixpkgs }:
let
system = "x86_64-linux"; # Only works on linux so far, PRs welcome!
pkgs = import nixpkgs { inherit system inputs; };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
forester.packages.${system}.default
forest-server.packages.${system}.default
];
};
};
}
待办事项
- 添加类似于 vite 的漂亮的覆盖层。
贡献
欢迎贡献!请随意打开一个 PR。
依赖项
~23–36MB
~574K SLoC