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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniweb",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 && options.processAllText) {
176
- // Optionally process non-hbs text files for simple replacements
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', 'docs', 'learning']
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
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tailwindcss/vite": "^4.0.0",
29
+ "@uniweb/build": "{{version "@uniweb/build"}}",
29
30
  "@vitejs/plugin-react": "^5.0.0",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0",
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tailwindcss/vite": "^4.0.0",
29
+ "@uniweb/build": "{{version "@uniweb/build"}}",
29
30
  "@vitejs/plugin-react": "^5.0.0",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0",
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tailwindcss/vite": "^4.0.0",
29
+ "@uniweb/build": "{{version "@uniweb/build"}}",
29
30
  "@vitejs/plugin-react": "^5.0.0",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0",