@uniweb/build 0.6.14 → 0.6.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"sharp": "^0.33.2"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@uniweb/
|
|
54
|
-
"@uniweb/
|
|
55
|
-
"@uniweb/
|
|
53
|
+
"@uniweb/runtime": "0.5.21",
|
|
54
|
+
"@uniweb/schemas": "0.2.1",
|
|
55
|
+
"@uniweb/content-reader": "1.1.2"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -179,10 +179,25 @@ async function readYamlFile(filePath) {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
* Check if a file is a markdown file
|
|
182
|
+
* Check if a file is a markdown file that should be processed.
|
|
183
|
+
* Excludes:
|
|
184
|
+
* - Files not ending in .md
|
|
185
|
+
* - Files starting with _ (drafts/private)
|
|
186
|
+
* - README.md (repo documentation, not site content)
|
|
183
187
|
*/
|
|
184
188
|
function isMarkdownFile(filename) {
|
|
185
|
-
|
|
189
|
+
if (!filename.endsWith('.md')) return false
|
|
190
|
+
if (filename.startsWith('_')) return false
|
|
191
|
+
if (filename.toLowerCase() === 'readme.md') return false
|
|
192
|
+
return true
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Check if a folder should be ignored.
|
|
197
|
+
* Excludes folders starting with _ (drafts/private).
|
|
198
|
+
*/
|
|
199
|
+
function isIgnoredFolder(name) {
|
|
200
|
+
return name.startsWith('_')
|
|
186
201
|
}
|
|
187
202
|
|
|
188
203
|
/**
|
|
@@ -763,6 +778,7 @@ async function collectPagesRecursive(dirPath, parentRoute, siteRoot, orderConfig
|
|
|
763
778
|
// First pass: discover all page folders and read their config
|
|
764
779
|
const pageFolders = []
|
|
765
780
|
for (const entry of entries) {
|
|
781
|
+
if (isIgnoredFolder(entry)) continue // Skip _prefixed folders
|
|
766
782
|
const entryPath = join(dirPath, entry)
|
|
767
783
|
const stats = await stat(entryPath)
|
|
768
784
|
if (!stats.isDirectory()) continue
|