ezx 0.0.4 → 0.0.5
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 +48 -13
- package/dist/preprocessor.d.ts +1 -0
- package/dist/preprocessor.d.ts.map +1 -1
- package/dist/preprocessor.js +50 -9
- package/dist/preprocessor.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,21 +25,35 @@ pwd
|
|
|
25
25
|
|
|
26
26
|
### 2. File Extraction
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Extract code blocks to files using a preceding blockquote with the file path. The file path is wrapped in backticks within the blockquote, and an optional emoji can be added for visual clarity.
|
|
29
29
|
|
|
30
30
|
```markdown
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
> `package.json`
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"name": "my-project",
|
|
36
|
+
"version": "1.0.0"
|
|
35
37
|
}
|
|
36
38
|
```
|
|
37
39
|
```
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
Or with an optional emoji:
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
> 📄 `package.json`
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"name": "my-project"
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
```
|
|
40
52
|
|
|
41
53
|
**JSON:**
|
|
42
|
-
|
|
54
|
+
> `my-project/package.json`
|
|
55
|
+
|
|
56
|
+
```json
|
|
43
57
|
{
|
|
44
58
|
"name": "my-project",
|
|
45
59
|
"version": "1.0.0"
|
|
@@ -47,21 +61,38 @@ Extract code blocks to files using the info string syntax on the code fence. The
|
|
|
47
61
|
```
|
|
48
62
|
|
|
49
63
|
**TypeScript/JavaScript:**
|
|
50
|
-
|
|
64
|
+
> `my-project/index.ts`
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
51
67
|
console.log("Hello world")
|
|
52
68
|
```
|
|
53
69
|
|
|
54
70
|
**Bash/Shell:**
|
|
55
|
-
|
|
71
|
+
> `my-project/.npmrc`
|
|
72
|
+
|
|
73
|
+
```bash
|
|
56
74
|
shared-workspace-lockfile=false
|
|
57
75
|
```
|
|
58
76
|
|
|
59
77
|
**Markdown:**
|
|
60
|
-
|
|
78
|
+
> `my-project/README.md`
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
61
81
|
# My Project
|
|
62
82
|
```
|
|
63
83
|
|
|
64
|
-
**Any language:** The file directive works with any language, including unknown languages, because it's specified in
|
|
84
|
+
**Any language:** The file directive works with any language, including unknown languages, because it's specified in a preceding blockquote, not inside the code content.
|
|
85
|
+
|
|
86
|
+
**Note:** zx executes all code blocks in markdown files. If you have code blocks that are for documentation only (examples to show users, not to run or write as files), add the `no-eval` flag to prevent execution:
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
```typescript no-eval
|
|
90
|
+
interface User {
|
|
91
|
+
name: string;
|
|
92
|
+
age: number;
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
```
|
|
65
96
|
|
|
66
97
|
File extraction blocks are transformed to bash heredoc commands that execute in order with the rest of the markdown. If a directory context is active, the heredoc command will prepend `cd`:
|
|
67
98
|
|
|
@@ -149,7 +180,9 @@ cd my-app
|
|
|
149
180
|
npm init -y
|
|
150
181
|
\`\`\`
|
|
151
182
|
|
|
152
|
-
|
|
183
|
+
> `my-app/package.json`
|
|
184
|
+
|
|
185
|
+
\`\`\`json
|
|
153
186
|
{
|
|
154
187
|
"name": "my-app",
|
|
155
188
|
"version": "1.0.0",
|
|
@@ -159,7 +192,9 @@ npm init -y
|
|
|
159
192
|
}
|
|
160
193
|
\`\`\`
|
|
161
194
|
|
|
162
|
-
|
|
195
|
+
> `my-app/index.ts`
|
|
196
|
+
|
|
197
|
+
\`\`\`typescript
|
|
163
198
|
console.log('Hello from ezx!')
|
|
164
199
|
\`\`\`
|
|
165
200
|
|
package/dist/preprocessor.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preprocessor.d.ts","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"preprocessor.d.ts","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAChC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,cAAc,EAAE,CAAC;CACjC;AA8GD;;GAEG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAM,GAC1B,gBAAgB,CAwKlB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAM,GAC1B,gBAAgB,CAGlB"}
|
package/dist/preprocessor.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
|
+
/**
|
|
3
|
+
* Extract file path from a blockquote line
|
|
4
|
+
* Supports: > `path/to/file.json` or > 📄 `path/to/file.json`
|
|
5
|
+
*/
|
|
6
|
+
function extractFilePathFromBlockquote(line) {
|
|
7
|
+
const trimmed = line.trim();
|
|
8
|
+
// Match blockquote followed by optional emoji and backtick-wrapped path
|
|
9
|
+
// e.g., > `package.json` or > 📄 `package.json` or > file: package.json
|
|
10
|
+
const match = trimmed.match(/^>\s*(?:[\p{Emoji}]?\s*)?`([^`]+)`/u);
|
|
11
|
+
if (match) {
|
|
12
|
+
return match[1].trim();
|
|
13
|
+
}
|
|
14
|
+
// Also support: > file: package.json (for backward compatibility with comment style)
|
|
15
|
+
const fileMatch = trimmed.match(/^>\s*(?:[\p{Emoji}]?\s*)?file[:=]\s*(.+)$/iu);
|
|
16
|
+
if (fileMatch) {
|
|
17
|
+
return fileMatch[1].trim();
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
2
21
|
/**
|
|
3
22
|
* Parse markdown and extract all code blocks with their line numbers
|
|
4
|
-
* Also extracts file path from
|
|
23
|
+
* Also extracts file path from preceding blockquote if present
|
|
5
24
|
*/
|
|
6
25
|
function parseCodeBlocks(markdown) {
|
|
7
26
|
const codeBlocks = [];
|
|
@@ -9,23 +28,26 @@ function parseCodeBlocks(markdown) {
|
|
|
9
28
|
let inCodeBlock = false;
|
|
10
29
|
let currentBlock = {};
|
|
11
30
|
let blockStartLine = 0;
|
|
31
|
+
let precedingBlockquoteLine;
|
|
32
|
+
let pendingFilePath;
|
|
12
33
|
for (let i = 0; i < lines.length; i++) {
|
|
13
34
|
const line = lines[i];
|
|
14
35
|
// Check for code block start
|
|
15
36
|
if (line.match(/^```/)) {
|
|
16
37
|
if (!inCodeBlock) {
|
|
17
|
-
// Starting a new code block
|
|
18
|
-
|
|
19
|
-
// Formats: ```json, ```json file:path, ```json file=path
|
|
20
|
-
const match = line.match(/^```(\w*)\s*(?:file[:=](\S+))?/i);
|
|
38
|
+
// Starting a new code block - assign any pending file path
|
|
39
|
+
const languageMatch = line.match(/^```(\w*)/);
|
|
21
40
|
currentBlock = {
|
|
22
|
-
language:
|
|
23
|
-
filePath:
|
|
41
|
+
language: languageMatch?.[1] || '',
|
|
42
|
+
filePath: pendingFilePath,
|
|
43
|
+
precedingBlockquoteLine: precedingBlockquoteLine,
|
|
24
44
|
content: '',
|
|
25
45
|
startLine: i,
|
|
26
46
|
};
|
|
27
47
|
inCodeBlock = true;
|
|
28
48
|
blockStartLine = i;
|
|
49
|
+
precedingBlockquoteLine = undefined;
|
|
50
|
+
pendingFilePath = undefined; // Reset for next block
|
|
29
51
|
}
|
|
30
52
|
else {
|
|
31
53
|
// Ending the current code block
|
|
@@ -38,12 +60,21 @@ function parseCodeBlocks(markdown) {
|
|
|
38
60
|
startLine: currentBlock.startLine,
|
|
39
61
|
endLine: i,
|
|
40
62
|
filePath: currentBlock.filePath,
|
|
63
|
+
precedingBlockquoteLine: currentBlock.precedingBlockquoteLine,
|
|
41
64
|
});
|
|
42
65
|
}
|
|
43
66
|
inCodeBlock = false;
|
|
44
67
|
currentBlock = {};
|
|
45
68
|
}
|
|
46
69
|
}
|
|
70
|
+
else if (!inCodeBlock) {
|
|
71
|
+
// Look for blockquote with file path (only outside code blocks)
|
|
72
|
+
const filePath = extractFilePathFromBlockquote(line);
|
|
73
|
+
if (filePath) {
|
|
74
|
+
precedingBlockquoteLine = i;
|
|
75
|
+
pendingFilePath = filePath;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
47
78
|
else if (inCodeBlock && currentBlock.content !== undefined) {
|
|
48
79
|
// Add line to current block content
|
|
49
80
|
currentBlock.content += (currentBlock.content ? '\n' : '') + line;
|
|
@@ -76,7 +107,7 @@ export function preprocessMarkdown(input, options = {}) {
|
|
|
76
107
|
for (let i = 0; i < codeBlocks.length; i++) {
|
|
77
108
|
const block = codeBlocks[i];
|
|
78
109
|
const isBash = block.language === 'bash' || block.language === 'sh' || block.language === 'shell';
|
|
79
|
-
// Check if this is a file extraction block (file path
|
|
110
|
+
// Check if this is a file extraction block (file path from preceding blockquote)
|
|
80
111
|
if (block.filePath) {
|
|
81
112
|
// This is a file extraction block - transform to heredoc
|
|
82
113
|
const fileContent = block.content.trim();
|
|
@@ -140,9 +171,19 @@ export function preprocessMarkdown(input, options = {}) {
|
|
|
140
171
|
}
|
|
141
172
|
// Build preprocessed markdown
|
|
142
173
|
const preprocessedLines = [];
|
|
143
|
-
|
|
174
|
+
// Track lines to skip (blockquote lines that contained file paths)
|
|
175
|
+
const linesToSkip = new Set();
|
|
176
|
+
for (const block of codeBlocks) {
|
|
177
|
+
if (block.precedingBlockquoteLine !== undefined && block.filePath) {
|
|
178
|
+
linesToSkip.add(block.precedingBlockquoteLine);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
144
181
|
for (let i = 0; i < lines.length; i++) {
|
|
145
182
|
const line = lines[i];
|
|
183
|
+
// Skip blockquote lines that contained file paths (they were consumed)
|
|
184
|
+
if (linesToSkip.has(i)) {
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
146
187
|
// Check if this is the start of a code block
|
|
147
188
|
if (line.match(/^```/)) {
|
|
148
189
|
const blockIndex = codeBlocks.findIndex((b) => b.startLine === i);
|
package/dist/preprocessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preprocessor.js","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"preprocessor.js","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAgCrC;;;GAGG;AACH,SAAS,6BAA6B,CAAC,IAAY;IAClD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,wEAAwE;IACxE,wEAAwE;IACxE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAA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