@riebeckite/plugin-deploy 0.0.34 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +32 -0
  2. package/README_ja.md +24 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -8,6 +8,22 @@ It does not upload anything and never writes to the filesystem.
8
8
 
9
9
  [日本語](./README_ja.md)
10
10
 
11
+ ## What it does
12
+
13
+ - Generates provider-specific redirect and header files during `riebeckite build`.
14
+ - Reads redirects only from `manifest.publicRedirects`.
15
+ - Supports Cloudflare Pages, Cloudflare Workers, Netlify, Vercel, and GitHub
16
+ Pages.
17
+
18
+ ## What it does not do
19
+
20
+ - It does not upload files, authenticate with a provider, or invalidate caches.
21
+ - It does not deploy the site. Upload the build output with your provider's
22
+ normal deploy step, or use the publication workflow's `publish run --execute`
23
+ when your site is configured for it.
24
+ - `riebeckite deploy setup` is a separate CLI helper that prepares Cloudflare
25
+ configuration. It also does not upload anything.
26
+
11
27
  ## Overview
12
28
 
13
29
  `deploy()` reads public redirects from the content manifest and plans the
@@ -53,6 +69,22 @@ GitHub Pages has no `_redirects` syntax, so every redirect becomes an HTML stub
53
69
  with a meta refresh and a `<link rel="canonical">`. A redirect from `/` is
54
70
  skipped because the root cannot be stubbed.
55
71
 
72
+ ## Deploying the generated files
73
+
74
+ Run the normal build:
75
+
76
+ ```sh
77
+ npm exec riebeckite build
78
+ ```
79
+
80
+ The files are written into the build output (for example `dist/_redirects`).
81
+ Upload that directory with your provider's deploy step. This plugin stops at
82
+ file generation; it has no credentials and performs no upload.
83
+
84
+ If your site uses the publication workflow, `publish run --execute` performs
85
+ the configured publication step. `deploy setup` only prepares Cloudflare
86
+ configuration.
87
+
56
88
  ## Public API
57
89
 
58
90
  - `deploy(options: DeployOptions): RiebeckitePlugin`
package/README_ja.md CHANGED
@@ -7,6 +7,18 @@ Riebeckite の静的ホスティング向けの出力ヘルパーです。デプ
7
7
 
8
8
  [English](./README.md)
9
9
 
10
+ ## できること
11
+
12
+ - `riebeckite build` の実行中に、プロバイダ固有のリダイレクトファイルとヘッダーファイルを生成します。
13
+ - リダイレクトは `manifest.publicRedirects` からのみ読み取ります。
14
+ - Cloudflare Pages、Cloudflare Workers、Netlify、Vercel、GitHub Pages に対応します。
15
+
16
+ ## できないこと
17
+
18
+ - ファイルのアップロード、プロバイダ認証、キャッシュ無効化は行いません。
19
+ - サイトをデプロイしません。ビルド出力をプロバイダの通常のデプロイ手順でアップロードするか、設定済みなら公開ワークフローの `publish run --execute` を使ってください。
20
+ - `riebeckite deploy setup` は Cloudflare の設定を準備する別の CLI ヘルパーです。これもアップロードは行いません。
21
+
10
22
  ## 概要
11
23
 
12
24
  `deploy()` はコンテンツマニフェストの公開リダイレクトを読み、
@@ -52,6 +64,18 @@ GitHub Pages には `_redirects` 構文がないため、各リダイレクト
52
64
  `<link rel="canonical">` を持つ HTML スタブになります。`/` からのリダイレクトは
53
65
  ルートをスタブ化できないためスキップします。
54
66
 
67
+ ## 生成したファイルのデプロイ
68
+
69
+ 通常どおりビルドします。
70
+
71
+ ```sh
72
+ npm exec riebeckite build
73
+ ```
74
+
75
+ ファイルはビルド出力(たとえば `dist/_redirects`)へ書き込まれます。そのディレクトリをプロバイダのデプロイ手順でアップロードしてください。このプラグインはファイル生成までを担当し、認証情報を持たず、アップロードも行いません。
76
+
77
+ サイトが公開ワークフローを使っている場合、`publish run --execute` が設定済みの公開処理を実行します。`deploy setup` は Cloudflare の設定を準備するだけです。
78
+
55
79
  ## 公開 API
56
80
 
57
81
  - `deploy(options: DeployOptions): RiebeckitePlugin`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-deploy",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@riebeckite/core": "0.0.34"
17
+ "@riebeckite/core": "0.0.36"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsx": "^4.22.4"