uniweb 0.2.19 → 0.2.21
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 +1 -1
- package/src/templates/processor.js +2 -2
- package/src/templates/resolver.js +2 -2
- package/templates/multi/foundations/default/package.json.hbs +1 -0
- package/templates/single/foundation/package.json.hbs +1 -0
- package/templates/template/template/foundation/package.json.hbs +1 -0
package/package.json
CHANGED
|
@@ -172,8 +172,8 @@ async function processFile(sourcePath, targetPath, data, options = {}) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
await fs.writeFile(targetPath, content)
|
|
175
|
-
} else if (isTextFile
|
|
176
|
-
//
|
|
175
|
+
} else if (isTextFile) {
|
|
176
|
+
// Process text files for simple variable replacements
|
|
177
177
|
let content = await fs.readFile(sourcePath, 'utf8')
|
|
178
178
|
// Simple {{var}} replacement without full Handlebars
|
|
179
179
|
for (const [key, value] of Object.entries(data)) {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Built-in templates (file-based in cli/templates/)
|
|
6
6
|
export const BUILTIN_TEMPLATES = ['single', 'multi', 'template']
|
|
7
7
|
|
|
8
|
-
// Official templates from @uniweb/templates package
|
|
9
|
-
export const OFFICIAL_TEMPLATES = ['marketing', '
|
|
8
|
+
// Official templates from @uniweb/templates package (downloaded from GitHub releases)
|
|
9
|
+
export const OFFICIAL_TEMPLATES = ['marketing', 'academic', 'docs']
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Parse a template identifier and determine its source type
|