@matra/cli 0.3.3 → 0.5.0
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.
- package/README.ja.md +3 -3
- package/README.md +3 -3
- package/package.json +6 -6
package/README.ja.md
CHANGED
|
@@ -126,14 +126,14 @@ contentを置いて、`matra site install`と`matra site build`を実行する
|
|
|
126
126
|
`dist/`配下にrouteが生成されます。設定schemaと制限は
|
|
127
127
|
[site-generation契約](../../spec/site-generation.ja.md)を参照してください。
|
|
128
128
|
|
|
129
|
-
CLI `0.
|
|
129
|
+
CLI `0.5.0`では`matra init --template blog my-blog`でブログを開始できます。`cd my-blog`して
|
|
130
130
|
`matra site dev`を実行してください。記事一覧・共通レイアウト・記事テンプレート・
|
|
131
131
|
本文専用のCSS・公開ファイル・ルートの`404.html`を含むCloudflare Pages設定がそろいます。
|
|
132
132
|
プレビューは設定、記事、テンプレート、部品、画像などの追加・変更・削除を監視します。
|
|
133
133
|
`basePath`と404を反映し、生成したルートとファイルだけを配信します。
|
|
134
134
|
出力先にある未追跡ファイルは配信しません。編集後はブラウザーを再読み込みしてください。
|
|
135
|
-
CLIはsite-generation
|
|
136
|
-
利用する場合だけ**ブログ内**で`npm install @matra/markdown-unified@^0.1.
|
|
135
|
+
CLIはsite-generation `0.4.0`とstyles `0.2.1`に依存しますが、unifiedは同梱しません。
|
|
136
|
+
利用する場合だけ**ブログ内**で`npm install @matra/markdown-unified@^0.1.3`を実行し、`site.markdown: unified`を指定します。
|
|
137
137
|
|
|
138
138
|
## セキュリティ上の注意
|
|
139
139
|
|
package/README.md
CHANGED
|
@@ -128,14 +128,14 @@ routes under `dist/`. See the
|
|
|
128
128
|
[site-generation contract](../../spec/site-generation.md) for the
|
|
129
129
|
configuration schema and limits.
|
|
130
130
|
|
|
131
|
-
With CLI `0.
|
|
131
|
+
With CLI `0.5.0`, run `matra init --template blog my-blog`, `cd my-blog`, then `matra site dev`.
|
|
132
132
|
The starter includes a post index, shared shell, article template and scoped stylesheet, public
|
|
133
133
|
files, and Cloudflare Pages configuration for `dist/404.html`. Preview watches the configuration
|
|
134
134
|
and its article, template, component and asset directories, including additions and deletions.
|
|
135
135
|
Only generated routes and files are served (including the configured `basePath` and custom 404);
|
|
136
136
|
untracked files in the output directory are not exposed. Refresh the browser after editing.
|
|
137
|
-
The CLI includes site-generation and styles `0.2.
|
|
138
|
-
run `npm install @matra/markdown-unified@^0.1.
|
|
137
|
+
The CLI includes site-generation `0.4.0` and styles `0.2.1`, but not unified. For the preset,
|
|
138
|
+
run `npm install @matra/markdown-unified@^0.1.3` **inside the blog**, then set `site.markdown: unified`.
|
|
139
139
|
|
|
140
140
|
## Security notes
|
|
141
141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matra/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Matra project initialization and HTML build tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"templates"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@matra/command": "0.
|
|
15
|
-
"@matra/core": "0.
|
|
16
|
-
"@matra/html": "0.
|
|
17
|
-
"@matra/site-generation": "0.
|
|
18
|
-
"@matra/styles": "0.2.
|
|
14
|
+
"@matra/command": "0.2.0",
|
|
15
|
+
"@matra/core": "0.4.0",
|
|
16
|
+
"@matra/html": "0.4.1",
|
|
17
|
+
"@matra/site-generation": "0.4.0",
|
|
18
|
+
"@matra/styles": "0.2.1",
|
|
19
19
|
"mime-types": "^3.0.2"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|