uniweb 0.2.0 → 0.2.2
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/index.js +3 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -87,7 +87,7 @@ async function main() {
|
|
|
87
87
|
|
|
88
88
|
// Parse arguments
|
|
89
89
|
let projectName = args[1]
|
|
90
|
-
let templateType = null
|
|
90
|
+
let templateType = "single"; // or null for iteractive selection
|
|
91
91
|
|
|
92
92
|
// Check for --template flag
|
|
93
93
|
const templateIndex = args.indexOf('--template')
|
|
@@ -347,6 +347,7 @@ Each markdown file specifies which component to use:
|
|
|
347
347
|
\`\`\`markdown
|
|
348
348
|
---
|
|
349
349
|
component: Hero
|
|
350
|
+
theme: dark
|
|
350
351
|
---
|
|
351
352
|
|
|
352
353
|
# Your Title
|
|
@@ -719,6 +720,7 @@ order: 1
|
|
|
719
720
|
// pages/home/1-hero.md
|
|
720
721
|
writeFile(join(projectDir, 'pages/home/1-hero.md'), `---
|
|
721
722
|
component: Hero
|
|
723
|
+
theme: dark
|
|
722
724
|
---
|
|
723
725
|
|
|
724
726
|
# Welcome to ${projectName}
|