create-isotope-app 1.0.3 → 1.0.4
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/index.js +5 -0
- package/package.json +1 -1
- package/src/templates/configs/extension.js +31 -0
package/index.js
CHANGED
|
@@ -33,6 +33,7 @@ import { readmeMd } from "./src/templates/configs/readme.js";
|
|
|
33
33
|
import {
|
|
34
34
|
extensionPackageJson,
|
|
35
35
|
extensionGrammarJson,
|
|
36
|
+
extensionReadmeMd,
|
|
36
37
|
} from "./src/templates/configs/extension.js";
|
|
37
38
|
|
|
38
39
|
const rl = readline.createInterface({
|
|
@@ -177,6 +178,10 @@ async function init() {
|
|
|
177
178
|
),
|
|
178
179
|
extensionGrammarJson(),
|
|
179
180
|
);
|
|
181
|
+
fs.writeFileSync(
|
|
182
|
+
path.join(root, ".vscode/extensions/isotope-support-v0.1/README.md"),
|
|
183
|
+
extensionReadmeMd(),
|
|
184
|
+
);
|
|
180
185
|
|
|
181
186
|
// コンポーネント・ページ
|
|
182
187
|
fs.writeFileSync(path.join(root, "src/components/Link.tsx"), linkTsx());
|
package/package.json
CHANGED
|
@@ -64,3 +64,34 @@ export const extensionGrammarJson = () => {
|
|
|
64
64
|
2,
|
|
65
65
|
);
|
|
66
66
|
};
|
|
67
|
+
|
|
68
|
+
export const extensionReadmeMd = () => {
|
|
69
|
+
return `# Isotope Support for VS Code
|
|
70
|
+
|
|
71
|
+
Isotope framework (.isx) において、\`proton\` タグ内の PHP コードのシンタックスハイライトを提供します。
|
|
72
|
+
|
|
73
|
+
## 特長
|
|
74
|
+
|
|
75
|
+
- **Proton Highlighting**: \`proton\`\\\`...\`\\\` ブロック内を PHP として認識し、色を付けます。
|
|
76
|
+
- **Non-destructive**: 標準の TypeScript React (TSX) の文法に介入(Injection)するため、React 側のハイライトを壊いません。
|
|
77
|
+
|
|
78
|
+
## インストール(手動セットアップ)
|
|
79
|
+
|
|
80
|
+
このディレクトリを VS Code の拡張機能フォルダに配置してください。
|
|
81
|
+
|
|
82
|
+
\`\`\`bash
|
|
83
|
+
cp -r .vscode/extensions/isotope-support-v0.1 ~/.vscode/extensions/
|
|
84
|
+
\`\`\`
|
|
85
|
+
|
|
86
|
+
その後、VS Code を再起動(または \`Developer: Reload Window\`)すると有効になります。
|
|
87
|
+
|
|
88
|
+
## 制限事項
|
|
89
|
+
|
|
90
|
+
- **シンタックスハイライトのみ**: 現在のバージョンは色の表示のみをサポートしています。
|
|
91
|
+
- **Intellisense (Hover/F12)**: テンプレートリテラル内の PHP に対する「定義へ移動」や「ホバー説明」は、標準的な PHP Language Server の制限により機能しません。将来的なアップデートで仮想ドキュメント方式によるサポートを検討しています。
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
Produced by **ATOMS GAMING**
|
|
96
|
+
`;
|
|
97
|
+
};
|