Skip to content

Commit a5b033d

Browse files
committed
feat: vueform template for builder
1 parent 7140b2f commit a5b033d

File tree

7 files changed

+43
-19
lines changed

7 files changed

+43
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v1.0.14
2+
3+
> `2025-06-04`
4+
5+
### 🎉 Feature
6+
- Support Vueform theme for the builder.
7+
18
## v1.0.13
29

310
> `2025-02-07`

dist/index.mjs

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-vueform",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"type": "module",
55
"license": "MIT",
66
"author": "Adam Berecz",

src/index.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ const frameworks = [
5555

5656
const themes = [
5757
{ title: 'Vueform', value: 'vueform' },
58-
{ title: 'Tailwind', value: 'tailwind' },
58+
{ title: 'Tailwind 3', value: 'tailwind' },
5959
{ title: 'Bootstrap', value: 'bootstrap' },
6060
{ title: 'Material', value: 'material' },
61-
{ title: 'Tailwind Material', value: 'tailwind-material' },
61+
{ title: 'Tailwind 3 Material', value: 'tailwind-material' },
62+
]
63+
64+
const builderThemes = [
65+
{ title: 'Vueform', value: 'vueform' },
66+
{ title: 'Tailwind 3', value: 'tailwind' },
6267
]
6368

6469
const tailwind = {
@@ -157,10 +162,10 @@ async function main() {
157162
inactive: 'no',
158163
},
159164
{
160-
type: (prev, { builder }) => !!argv.builder || !!argv.b || builder === 'builder' ? null : 'select',
165+
type: 'select',
161166
name: 'theme',
162167
message: 'Select a theme for your project:',
163-
choices: themes
168+
choices: (prev, { builder }) => !!argv.builder || !!argv.b || builder === 'builder' ? builderThemes : themes,
164169
}
165170
],
166171
{
@@ -175,9 +180,9 @@ async function main() {
175180
* Variables
176181
*/
177182
const isBuilder = !!argv.builder || !!argv.b || response.builder === 'builder'
178-
const theme = isBuilder ? 'tailwind' : response.theme
183+
const theme = response.theme
179184
const isAstro = framework === 'astro'
180-
const isTailwind = ['tailwind', 'tailwind-material'].indexOf(theme) !== -1 || isBuilder
185+
const isTailwind = ['tailwind', 'tailwind-material'].indexOf(theme) !== -1
181186
const isBootstrap = ['bootstrap'].indexOf(theme) !== -1
182187
const isLaravel = framework === 'laravel'
183188

@@ -240,7 +245,7 @@ async function main() {
240245
status('\nInstalling Tailwind...')
241246
await Promise.all(tailwind[framework].install.map(async (script) => {
242247
const command = script.split(' ')
243-
await runCommand(command[0], command.slice(1), 'install Tailwind CSS')
248+
await runCommand(command[0], command.slice(1), 'install Tailwind CSS v3')
244249
}))
245250
}
246251

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
2+
3+
body {
4+
margin: 0;
5+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
2+
3+
body {
4+
margin: 0;
5+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
2+
3+
body {
4+
margin: 0;
5+
}

0 commit comments

Comments
 (0)