@burger-editor/local 4.0.0-alpha.47 → 4.0.0-alpha.49
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.md +55 -1
- package/dist/client.js +205 -144
- package/dist/client.js.map +1 -1
- package/package.json +10 -9
- package/server/commands/search.d.ts +45 -0
- package/server/commands/search.d.ts.map +1 -0
- package/server/commands/search.js +140 -0
- package/server/commands/server.d.ts +5 -0
- package/server/commands/server.d.ts.map +1 -0
- package/server/commands/server.js +36 -0
- package/server/index.js +16 -30
- package/server/search/output-formatter.d.ts +22 -0
- package/server/search/output-formatter.d.ts.map +1 -0
- package/server/search/output-formatter.js +27 -0
package/README.md
CHANGED
|
@@ -16,10 +16,18 @@ yarn install
|
|
|
16
16
|
npm install
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## CLIコマンド
|
|
20
|
+
|
|
21
|
+
### サーバー起動
|
|
20
22
|
|
|
21
23
|
```bash
|
|
24
|
+
# 開発モード
|
|
22
25
|
yarn dev
|
|
26
|
+
|
|
27
|
+
# 本番モード
|
|
28
|
+
npx bge
|
|
29
|
+
# または
|
|
30
|
+
yarn bge
|
|
23
31
|
```
|
|
24
32
|
|
|
25
33
|
開発サーバーが起動したら、ブラウザで以下にアクセスしてください:
|
|
@@ -28,6 +36,52 @@ yarn dev
|
|
|
28
36
|
http://localhost:3000
|
|
29
37
|
```
|
|
30
38
|
|
|
39
|
+
### 検索コマンド
|
|
40
|
+
|
|
41
|
+
HTMLファイル内のCSS変数(bge-options)を検索します。
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# 基本的な検索
|
|
45
|
+
npx bge search "margin=normal"
|
|
46
|
+
|
|
47
|
+
# ワイルドカード検索(任意の値)
|
|
48
|
+
npx bge search "margin=*"
|
|
49
|
+
|
|
50
|
+
# OR検索(複数の値のいずれか)
|
|
51
|
+
npx bge search "margin=normal,large,xlarge"
|
|
52
|
+
|
|
53
|
+
# AND検索(すべての条件を満たす要素)
|
|
54
|
+
npx bge search "margin=normal" "bg-color=blue"
|
|
55
|
+
|
|
56
|
+
# URL形式で出力
|
|
57
|
+
npx bge search "margin=normal" --url
|
|
58
|
+
|
|
59
|
+
# ヘルプ表示
|
|
60
|
+
npx bge search --help
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### 検索クエリフォーマット
|
|
64
|
+
|
|
65
|
+
- **シンプル**: `{category}={value}` - 例: `"margin=normal"`
|
|
66
|
+
- **ワイルドカード**: `{category}=*` - 例: `"margin=*"`(任意の値にマッチ)
|
|
67
|
+
- **OR値**: `{category}={v1,v2,...}` - 例: `"margin=normal,large"`(いずれかの値)
|
|
68
|
+
|
|
69
|
+
複数のクエリを指定すると、すべてのクエリに同時にマッチする要素のみを検索します(AND検索)。
|
|
70
|
+
|
|
71
|
+
#### 出力形式
|
|
72
|
+
|
|
73
|
+
デフォルトでは絶対パスと行番号を出力します:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
/path/to/file.html:354
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`--url` フラグを使用すると、localhost URLで出力します:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
http://localhost:5255/file.html:354
|
|
83
|
+
```
|
|
84
|
+
|
|
31
85
|
## 設定ファイル
|
|
32
86
|
|
|
33
87
|
プロジェクトルートに `burgereditor.config.js` ファイルを作成することで、BurgerEditorの動作をカスタマイズできます。
|