Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 0d0dd34

Browse files
committed
chore(template): fix alphabetical order of UI options
1 parent 37bfea3 commit 0d0dd34

File tree

3 files changed

+58
-57
lines changed

3 files changed

+58
-57
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ yarn create nuxt-app <my-project>
4545
- [Chakra UI](https://github.com/chakra-ui/chakra-ui-vue)
4646
- [Element](https://github.com/ElemeFE/element)
4747
- [Framevuerk](https://github.com/framevuerk/framevuerk)
48-
- [View UI](https://www.iviewui.com/)
48+
- [Oruga](https://oruga.io/)
4949
- [Tachyons](https://github.com/tachyons-css/tachyons)
5050
- [Tailwind CSS](https://github.com/tailwindcss/tailwindcss)
5151
- [Vant](https://github.com/youzan/vant)
52+
- [View UI](https://www.iviewui.com/)
5253
- [Vuesax](https://github.com/lusaxweb/vuesax)
5354
- [Vuetify](https://github.com/vuetifyjs/vuetify)
5455
1. Nuxt.js modules:

Diff for: packages/create-nuxt-app/lib/prompts.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ module.exports = [
3838
{ name: 'Chakra UI', value: 'chakra-ui' },
3939
{ name: 'Element', value: 'element-ui' },
4040
{ name: 'Framevuerk', value: 'framevuerk' },
41-
{ name: 'View UI', value: 'view-ui' },
41+
{ name: 'Oruga', value: 'oruga' },
4242
{ name: 'Tachyons', value: 'tachyons' },
4343
{ name: 'Tailwind CSS', value: 'tailwind' },
4444
{ name: 'Vant', value: 'vant' },
45+
{ name: 'View UI', value: 'view-ui' },
4546
{ name: 'Vuesax', value: 'vuesax' },
46-
{ name: 'Vuetify.js', value: 'vuetify' },
47-
{ name: 'Oruga', value: 'oruga' }
47+
{ name: 'Vuetify.js', value: 'vuetify' }
4848
],
4949
default: 'none'
5050
},

Diff for: packages/create-nuxt-app/test/snapshots/index.test.js.md

+53-53
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ Generated by [AVA](https://avajs.dev).
11601160
}␊
11611161
`
11621162

1163-
## verify ui: View UI
1163+
## verify ui: Oruga
11641164

11651165
> Generated files
11661166
@@ -1169,6 +1169,7 @@ Generated by [AVA](https://avajs.dev).
11691169
'.gitignore',
11701170
'README.md',
11711171
'assets/README.md',
1172+
'assets/oruga.png',
11721173
'components/Logo.vue',
11731174
'components/README.md',
11741175
'layouts/README.md',
@@ -1179,7 +1180,6 @@ Generated by [AVA](https://avajs.dev).
11791180
'pages/README.md',
11801181
'pages/index.vue',
11811182
'plugins/README.md',
1182-
'plugins/view-ui.js',
11831183
'static/README.md',
11841184
'static/favicon.ico',
11851185
'store/README.md',
@@ -1189,9 +1189,9 @@ Generated by [AVA](https://avajs.dev).
11891189
11901190
{
11911191
dependencies: {
1192+
'@oruga-ui/oruga': '^0.2.2',
11921193
'core-js': '^3.8.3',
11931194
nuxt: '^2.14.12',
1194-
'view-design': '^4.0.0',
11951195
},
11961196
devDependencies: {},
11971197
private: true,
@@ -1224,12 +1224,10 @@ Generated by [AVA](https://avajs.dev).
12241224
12251225
// Global CSS: https://go.nuxtjs.dev/config-css␊
12261226
css: [␊
1227-
'view-design/dist/styles/iview.css'␊
12281227
],␊
12291228
12301229
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins␊
12311230
plugins: [␊
1232-
'@/plugins/view-ui'␊
12331231
],␊
12341232
12351233
// Auto import components: https://go.nuxtjs.dev/config-components␊
@@ -1241,6 +1239,8 @@ Generated by [AVA](https://avajs.dev).
12411239
12421240
// Modules: https://go.nuxtjs.dev/config-modules␊
12431241
modules: [␊
1242+
// Doc: https://oruga.io/documentation/#nuxt␊
1243+
'@oruga-ui/oruga/nuxt',␊
12441244
],␊
12451245
12461246
// Build Configuration: https://go.nuxtjs.dev/config-build␊
@@ -1514,7 +1514,7 @@ Generated by [AVA](https://avajs.dev).
15141514
}␊
15151515
`
15161516

1517-
## verify ui: Vuesax
1517+
## verify ui: View UI
15181518

15191519
> Generated files
15201520
@@ -1525,7 +1525,6 @@ Generated by [AVA](https://avajs.dev).
15251525
'assets/README.md',
15261526
'components/Logo.vue',
15271527
'components/README.md',
1528-
'components/VuesaxLogo.vue',
15291528
'layouts/README.md',
15301529
'layouts/default.vue',
15311530
'middleware/README.md',
@@ -1534,7 +1533,7 @@ Generated by [AVA](https://avajs.dev).
15341533
'pages/README.md',
15351534
'pages/index.vue',
15361535
'plugins/README.md',
1537-
'plugins/vuesax.js',
1536+
'plugins/view-ui.js',
15381537
'static/README.md',
15391538
'static/favicon.ico',
15401539
'store/README.md',
@@ -1546,7 +1545,7 @@ Generated by [AVA](https://avajs.dev).
15461545
dependencies: {
15471546
'core-js': '^3.8.3',
15481547
nuxt: '^2.14.12',
1549-
vuesax: '^4.0.1-alpha.25',
1548+
'view-design': '^4.0.0',
15501549
},
15511550
devDependencies: {},
15521551
private: true,
@@ -1579,12 +1578,12 @@ Generated by [AVA](https://avajs.dev).
15791578
15801579
// Global CSS: https://go.nuxtjs.dev/config-css␊
15811580
css: [␊
1582-
'vuesax/dist/vuesax.css'␊
1581+
'view-design/dist/styles/iview.css'␊
15831582
],␊
15841583
15851584
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins␊
15861585
plugins: [␊
1587-
'@/plugins/vuesax'␊
1586+
'@/plugins/view-ui'␊
15881587
],␊
15891588
15901589
// Auto import components: https://go.nuxtjs.dev/config-components␊
@@ -1604,7 +1603,7 @@ Generated by [AVA](https://avajs.dev).
16041603
}␊
16051604
`
16061605

1607-
## verify ui: Vuetify.js
1606+
## verify ui: Vuesax
16081607

16091608
> Generated files
16101609
@@ -1613,24 +1612,20 @@ Generated by [AVA](https://avajs.dev).
16131612
'.gitignore',
16141613
'README.md',
16151614
'assets/README.md',
1616-
'assets/variables.scss',
16171615
'components/Logo.vue',
16181616
'components/README.md',
1619-
'components/VuetifyLogo.vue',
1617+
'components/VuesaxLogo.vue',
16201618
'layouts/README.md',
16211619
'layouts/default.vue',
1622-
'layouts/error.vue',
16231620
'middleware/README.md',
16241621
'nuxt.config.js',
16251622
'package.json',
16261623
'pages/README.md',
16271624
'pages/index.vue',
1628-
'pages/inspire.vue',
16291625
'plugins/README.md',
1626+
'plugins/vuesax.js',
16301627
'static/README.md',
16311628
'static/favicon.ico',
1632-
'static/v.png',
1633-
'static/vuetify-logo.svg',
16341629
'store/README.md',
16351630
]
16361631

@@ -1640,10 +1635,9 @@ Generated by [AVA](https://avajs.dev).
16401635
dependencies: {
16411636
'core-js': '^3.8.3',
16421637
nuxt: '^2.14.12',
1638+
vuesax: '^4.0.1-alpha.25',
16431639
},
1644-
devDependencies: {
1645-
'@nuxtjs/vuetify': '^1.11.3',
1646-
},
1640+
devDependencies: {},
16471641
private: true,
16481642
scripts: {
16491643
build: 'nuxt build',
@@ -1655,12 +1649,9 @@ Generated by [AVA](https://avajs.dev).
16551649

16561650
> Generated nuxt.config.js
16571651
1658-
`import colors from 'vuetify/es5/util/colors'␊
1659-
1660-
export default {␊
1652+
`export default {␊
16611653
// Global page headers: https://go.nuxtjs.dev/config-head␊
16621654
head: {␊
1663-
titleTemplate: '%s - output',␊
16641655
title: 'output',␊
16651656
htmlAttrs: {␊
16661657
lang: 'en'␊
@@ -1677,51 +1668,32 @@ Generated by [AVA](https://avajs.dev).
16771668
16781669
// Global CSS: https://go.nuxtjs.dev/config-css␊
16791670
css: [␊
1671+
'vuesax/dist/vuesax.css'␊
16801672
],␊
16811673
16821674
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins␊
16831675
plugins: [␊
1676+
'@/plugins/vuesax'␊
16841677
],␊
16851678
16861679
// Auto import components: https://go.nuxtjs.dev/config-components␊
16871680
components: true,␊
16881681
16891682
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊
16901683
buildModules: [␊
1691-
// https://go.nuxtjs.dev/vuetify␊
1692-
'@nuxtjs/vuetify',␊
16931684
],␊
16941685
16951686
// Modules: https://go.nuxtjs.dev/config-modules␊
16961687
modules: [␊
16971688
],␊
1698-
1699-
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify␊
1700-
vuetify: {␊
1701-
customVariables: ['~/assets/variables.scss'],␊
1702-
theme: {␊
1703-
dark: true,␊
1704-
themes: {␊
1705-
dark: {␊
1706-
primary: colors.blue.darken2,␊
1707-
accent: colors.grey.darken3,␊
1708-
secondary: colors.amber.darken3,␊
1709-
info: colors.teal.lighten1,␊
1710-
warning: colors.amber.base,␊
1711-
error: colors.deepOrange.accent4,␊
1712-
success: colors.green.accent3␊
1713-
}␊
1714-
}␊
1715-
}␊
1716-
},␊
17171689
17181690
// Build Configuration: https://go.nuxtjs.dev/config-build␊
17191691
build: {␊
17201692
}␊
17211693
}␊
17221694
`
17231695

1724-
## verify ui: Oruga
1696+
## verify ui: Vuetify.js
17251697

17261698
> Generated files
17271699
@@ -1730,31 +1702,37 @@ Generated by [AVA](https://avajs.dev).
17301702
'.gitignore',
17311703
'README.md',
17321704
'assets/README.md',
1733-
'assets/oruga.png',
1705+
'assets/variables.scss',
17341706
'components/Logo.vue',
17351707
'components/README.md',
1708+
'components/VuetifyLogo.vue',
17361709
'layouts/README.md',
17371710
'layouts/default.vue',
1711+
'layouts/error.vue',
17381712
'middleware/README.md',
17391713
'nuxt.config.js',
17401714
'package.json',
17411715
'pages/README.md',
17421716
'pages/index.vue',
1717+
'pages/inspire.vue',
17431718
'plugins/README.md',
17441719
'static/README.md',
17451720
'static/favicon.ico',
1721+
'static/v.png',
1722+
'static/vuetify-logo.svg',
17461723
'store/README.md',
17471724
]
17481725

17491726
> package.json
17501727
17511728
{
17521729
dependencies: {
1753-
'@oruga-ui/oruga': '^0.2.2',
17541730
'core-js': '^3.8.3',
17551731
nuxt: '^2.14.12',
17561732
},
1757-
devDependencies: {},
1733+
devDependencies: {
1734+
'@nuxtjs/vuetify': '^1.11.3',
1735+
},
17581736
private: true,
17591737
scripts: {
17601738
build: 'nuxt build',
@@ -1766,9 +1744,12 @@ Generated by [AVA](https://avajs.dev).
17661744

17671745
> Generated nuxt.config.js
17681746
1769-
`export default {␊
1747+
`import colors from 'vuetify/es5/util/colors'␊
1748+
1749+
export default {␊
17701750
// Global page headers: https://go.nuxtjs.dev/config-head␊
17711751
head: {␊
1752+
titleTemplate: '%s - output',␊
17721753
title: 'output',␊
17731754
htmlAttrs: {␊
17741755
lang: 'en'␊
@@ -1796,13 +1777,32 @@ Generated by [AVA](https://avajs.dev).
17961777
17971778
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊
17981779
buildModules: [␊
1780+
// https://go.nuxtjs.dev/vuetify␊
1781+
'@nuxtjs/vuetify',␊
17991782
],␊
18001783
18011784
// Modules: https://go.nuxtjs.dev/config-modules␊
18021785
modules: [␊
1803-
// Doc: https://oruga.io/documentation/#nuxt␊
1804-
'@oruga-ui/oruga/nuxt',␊
18051786
],␊
1787+
1788+
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify␊
1789+
vuetify: {␊
1790+
customVariables: ['~/assets/variables.scss'],␊
1791+
theme: {␊
1792+
dark: true,␊
1793+
themes: {␊
1794+
dark: {␊
1795+
primary: colors.blue.darken2,␊
1796+
accent: colors.grey.darken3,␊
1797+
secondary: colors.amber.darken3,␊
1798+
info: colors.teal.lighten1,␊
1799+
warning: colors.amber.base,␊
1800+
error: colors.deepOrange.accent4,␊
1801+
success: colors.green.accent3␊
1802+
}␊
1803+
}␊
1804+
}␊
1805+
},␊
18061806
18071807
// Build Configuration: https://go.nuxtjs.dev/config-build␊
18081808
build: {␊

0 commit comments

Comments
 (0)