@huberyyang/create-todo-vue 1.0.1 → 1.2.0
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/README.md +38 -8
- package/bin/index.js +3 -1
- package/dist/index.js +49 -63
- package/package.json +21 -24
- package/template-vitesse-base/.dockerignore +0 -2
- package/template-vitesse-base/.editorconfig +0 -9
- package/template-vitesse-base/.github/FUNDING.yml +0 -2
- package/template-vitesse-base/.github/workflows/ci.yml +0 -96
- package/template-vitesse-base/.vscode/extensions.json +0 -13
- package/template-vitesse-base/.vscode/settings.json +0 -48
- package/template-vitesse-base/Dockerfile +0 -18
- package/template-vitesse-base/LICENSE +0 -21
- package/template-vitesse-base/README.md +0 -216
- package/template-vitesse-base/README.zh-CN.md +0 -185
- package/template-vitesse-base/_gitignore +0 -11
- package/template-vitesse-base/cypress/e2e/basic.spec.ts +0 -36
- package/template-vitesse-base/cypress/tsconfig.json +0 -12
- package/template-vitesse-base/cypress.config.ts +0 -14
- package/template-vitesse-base/eslint.config.js +0 -10
- package/template-vitesse-base/index.html +0 -23
- package/template-vitesse-base/locales/README.md +0 -7
- package/template-vitesse-base/locales/ar.yml +0 -14
- package/template-vitesse-base/locales/de.yml +0 -14
- package/template-vitesse-base/locales/en.yml +0 -14
- package/template-vitesse-base/locales/es.yml +0 -14
- package/template-vitesse-base/locales/fr.yml +0 -14
- package/template-vitesse-base/locales/id.yml +0 -14
- package/template-vitesse-base/locales/it.yml +0 -13
- package/template-vitesse-base/locales/ja.yml +0 -13
- package/template-vitesse-base/locales/ka.yml +0 -14
- package/template-vitesse-base/locales/ko.yml +0 -13
- package/template-vitesse-base/locales/pl.yml +0 -14
- package/template-vitesse-base/locales/pt-BR.yml +0 -14
- package/template-vitesse-base/locales/ru.yml +0 -13
- package/template-vitesse-base/locales/tr.yml +0 -14
- package/template-vitesse-base/locales/uk.yml +0 -13
- package/template-vitesse-base/locales/uz.yml +0 -14
- package/template-vitesse-base/locales/vi.yml +0 -13
- package/template-vitesse-base/locales/zh-CN.yml +0 -14
- package/template-vitesse-base/netlify.toml +0 -17
- package/template-vitesse-base/package.json +0 -81
- package/template-vitesse-base/public/_headers +0 -3
- package/template-vitesse-base/public/favicon-dark.svg +0 -3
- package/template-vitesse-base/public/favicon.svg +0 -3
- package/template-vitesse-base/public/pwa-192x192.png +0 -0
- package/template-vitesse-base/public/pwa-512x512.png +0 -0
- package/template-vitesse-base/public/safari-pinned-tab.svg +0 -41
- package/template-vitesse-base/src/App.vue +0 -29
- package/template-vitesse-base/src/auto-imports.d.ts +0 -624
- package/template-vitesse-base/src/components/README.md +0 -9
- package/template-vitesse-base/src/components/TheCounter.vue +0 -19
- package/template-vitesse-base/src/components/TheFooter.vue +0 -37
- package/template-vitesse-base/src/components/TheInput.vue +0 -20
- package/template-vitesse-base/src/components.d.ts +0 -17
- package/template-vitesse-base/src/composables/dark.ts +0 -4
- package/template-vitesse-base/src/layouts/404.vue +0 -21
- package/template-vitesse-base/src/layouts/README.md +0 -14
- package/template-vitesse-base/src/layouts/default.vue +0 -12
- package/template-vitesse-base/src/layouts/home.vue +0 -12
- package/template-vitesse-base/src/main.ts +0 -25
- package/template-vitesse-base/src/modules/README.md +0 -11
- package/template-vitesse-base/src/modules/i18n.ts +0 -50
- package/template-vitesse-base/src/modules/nprogress.ts +0 -14
- package/template-vitesse-base/src/modules/pinia.ts +0 -17
- package/template-vitesse-base/src/modules/pwa.ts +0 -14
- package/template-vitesse-base/src/pages/README.md +0 -20
- package/template-vitesse-base/src/pages/[...all].vue +0 -14
- package/template-vitesse-base/src/pages/about.md +0 -26
- package/template-vitesse-base/src/pages/hi/[name].vue +0 -50
- package/template-vitesse-base/src/pages/index.vue +0 -59
- package/template-vitesse-base/src/shims.d.ts +0 -18
- package/template-vitesse-base/src/stores/user.ts +0 -34
- package/template-vitesse-base/src/styles/main.css +0 -29
- package/template-vitesse-base/src/styles/markdown.css +0 -25
- package/template-vitesse-base/src/typed-router.d.ts +0 -27
- package/template-vitesse-base/src/types.ts +0 -3
- package/template-vitesse-base/test/__snapshots__/component.test.ts.snap +0 -3
- package/template-vitesse-base/test/basic.test.ts +0 -7
- package/template-vitesse-base/test/component.test.ts +0 -28
- package/template-vitesse-base/tsconfig.json +0 -38
- package/template-vitesse-base/uno.config.ts +0 -41
- package/template-vitesse-base/vite.config.ts +0 -167
- package/template-vitesse-lite/.editorconfig +0 -9
- package/template-vitesse-lite/.github/FUNDING.yml +0 -2
- package/template-vitesse-lite/.github/workflows/test.yml +0 -47
- package/template-vitesse-lite/.vscode/extensions.json +0 -11
- package/template-vitesse-lite/.vscode/settings.json +0 -48
- package/template-vitesse-lite/LICENSE +0 -21
- package/template-vitesse-lite/README.md +0 -86
- package/template-vitesse-lite/README.zh-CN.md +0 -87
- package/template-vitesse-lite/_gitignore +0 -9
- package/template-vitesse-lite/auto-imports.d.ts +0 -603
- package/template-vitesse-lite/components.d.ts +0 -17
- package/template-vitesse-lite/eslint.config.js +0 -9
- package/template-vitesse-lite/index.html +0 -25
- package/template-vitesse-lite/netlify.toml +0 -11
- package/template-vitesse-lite/package.json +0 -53
- package/template-vitesse-lite/public/favicon.svg +0 -9
- package/template-vitesse-lite/shims.d.ts +0 -6
- package/template-vitesse-lite/src/App.vue +0 -6
- package/template-vitesse-lite/src/components/README.md +0 -9
- package/template-vitesse-lite/src/components/TheCounter.vue +0 -19
- package/template-vitesse-lite/src/components/TheFooter.vue +0 -15
- package/template-vitesse-lite/src/components/TheInput.vue +0 -18
- package/template-vitesse-lite/src/composables/dark.ts +0 -2
- package/template-vitesse-lite/src/composables/index.ts +0 -1
- package/template-vitesse-lite/src/main.ts +0 -15
- package/template-vitesse-lite/src/pages/README.md +0 -20
- package/template-vitesse-lite/src/pages/[...all].vue +0 -5
- package/template-vitesse-lite/src/pages/hi/[name].vue +0 -22
- package/template-vitesse-lite/src/pages/index.vue +0 -46
- package/template-vitesse-lite/src/styles/main.css +0 -11
- package/template-vitesse-lite/test/__snapshots__/component.test.ts.snap +0 -3
- package/template-vitesse-lite/test/basic.test.ts +0 -7
- package/template-vitesse-lite/test/component.test.ts +0 -22
- package/template-vitesse-lite/tsconfig.json +0 -32
- package/template-vitesse-lite/typed-router.d.ts +0 -25
- package/template-vitesse-lite/uno.config.ts +0 -29
- package/template-vitesse-lite/vite.config.ts +0 -68
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { mount } from '@vue/test-utils'
|
|
2
|
-
import { describe, expect, it } from 'vitest'
|
|
3
|
-
import TheCounter from '../src/components/TheCounter.vue'
|
|
4
|
-
|
|
5
|
-
describe('component TheCounter.vue', () => {
|
|
6
|
-
it('should render', () => {
|
|
7
|
-
const wrapper = mount(TheCounter, { props: { initial: 10 } })
|
|
8
|
-
expect(wrapper.text()).toContain('10')
|
|
9
|
-
expect(wrapper.html()).toMatchSnapshot()
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
it('should be interactive', async () => {
|
|
13
|
-
const wrapper = mount(TheCounter, { props: { initial: 0 } })
|
|
14
|
-
expect(wrapper.text()).toContain('0')
|
|
15
|
-
|
|
16
|
-
expect(wrapper.find('.inc').exists()).toBe(true)
|
|
17
|
-
|
|
18
|
-
expect(wrapper.find('.dec').exists()).toBe(true)
|
|
19
|
-
|
|
20
|
-
await wrapper.get('.inc').trigger('click')
|
|
21
|
-
|
|
22
|
-
expect(wrapper.text()).toContain('1')
|
|
23
|
-
|
|
24
|
-
await wrapper.get('.dec').trigger('click')
|
|
25
|
-
|
|
26
|
-
expect(wrapper.text()).toContain('0')
|
|
27
|
-
})
|
|
28
|
-
})
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"jsx": "preserve",
|
|
5
|
-
"lib": ["DOM", "ESNext"],
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"moduleResolution": "Bundler",
|
|
9
|
-
"paths": {
|
|
10
|
-
"~/*": ["src/*"]
|
|
11
|
-
},
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"types": [
|
|
14
|
-
"vitest",
|
|
15
|
-
"vite/client",
|
|
16
|
-
"vite-plugin-vue-layouts/client",
|
|
17
|
-
"vite-plugin-pwa/client",
|
|
18
|
-
"unplugin-vue-macros/macros-global",
|
|
19
|
-
"unplugin-vue-router/client"
|
|
20
|
-
],
|
|
21
|
-
"allowJs": true,
|
|
22
|
-
"strict": true,
|
|
23
|
-
"strictNullChecks": true,
|
|
24
|
-
"noUnusedLocals": true,
|
|
25
|
-
"noEmit": true,
|
|
26
|
-
"esModuleInterop": true,
|
|
27
|
-
"forceConsistentCasingInFileNames": true,
|
|
28
|
-
"isolatedModules": true,
|
|
29
|
-
"skipLibCheck": true
|
|
30
|
-
},
|
|
31
|
-
"vueCompilerOptions": {
|
|
32
|
-
"plugins": [
|
|
33
|
-
"@vue-macros/volar/define-models",
|
|
34
|
-
"@vue-macros/volar/define-slots"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"exclude": ["dist", "node_modules", "cypress"]
|
|
38
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createLocalFontProcessor,
|
|
3
|
-
} from '@unocss/preset-web-fonts/local'
|
|
4
|
-
import {
|
|
5
|
-
defineConfig,
|
|
6
|
-
presetAttributify,
|
|
7
|
-
presetIcons,
|
|
8
|
-
presetTypography,
|
|
9
|
-
presetUno,
|
|
10
|
-
presetWebFonts,
|
|
11
|
-
transformerDirectives,
|
|
12
|
-
transformerVariantGroup,
|
|
13
|
-
} from 'unocss'
|
|
14
|
-
|
|
15
|
-
export default defineConfig({
|
|
16
|
-
shortcuts: [
|
|
17
|
-
['btn', 'px-4 py-1 rounded inline-block bg-teal-700 text-white cursor-pointer !outline-none hover:bg-teal-800 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
|
|
18
|
-
['icon-btn', 'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600'],
|
|
19
|
-
],
|
|
20
|
-
presets: [
|
|
21
|
-
presetUno(),
|
|
22
|
-
presetAttributify(),
|
|
23
|
-
presetIcons({
|
|
24
|
-
scale: 1.2,
|
|
25
|
-
}),
|
|
26
|
-
presetTypography(),
|
|
27
|
-
presetWebFonts({
|
|
28
|
-
fonts: {
|
|
29
|
-
sans: 'DM Sans',
|
|
30
|
-
serif: 'DM Serif Display',
|
|
31
|
-
mono: 'DM Mono',
|
|
32
|
-
},
|
|
33
|
-
processors: createLocalFontProcessor(),
|
|
34
|
-
}),
|
|
35
|
-
],
|
|
36
|
-
transformers: [
|
|
37
|
-
transformerDirectives(),
|
|
38
|
-
transformerVariantGroup(),
|
|
39
|
-
],
|
|
40
|
-
safelist: 'prose prose-sm m-auto text-left'.split(' '),
|
|
41
|
-
})
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
|
|
3
|
-
import Shiki from '@shikijs/markdown-it'
|
|
4
|
-
import { unheadVueComposablesImports } from '@unhead/vue'
|
|
5
|
-
import Vue from '@vitejs/plugin-vue'
|
|
6
|
-
import LinkAttributes from 'markdown-it-link-attributes'
|
|
7
|
-
import Unocss from 'unocss/vite'
|
|
8
|
-
import AutoImport from 'unplugin-auto-import/vite'
|
|
9
|
-
import Components from 'unplugin-vue-components/vite'
|
|
10
|
-
import VueMacros from 'unplugin-vue-macros/vite'
|
|
11
|
-
import Markdown from 'unplugin-vue-markdown/vite'
|
|
12
|
-
import { VueRouterAutoImports } from 'unplugin-vue-router'
|
|
13
|
-
import VueRouter from 'unplugin-vue-router/vite'
|
|
14
|
-
import { defineConfig } from 'vite'
|
|
15
|
-
import { VitePWA } from 'vite-plugin-pwa'
|
|
16
|
-
import VueDevTools from 'vite-plugin-vue-devtools'
|
|
17
|
-
import Layouts from 'vite-plugin-vue-layouts'
|
|
18
|
-
import generateSitemap from 'vite-ssg-sitemap'
|
|
19
|
-
import 'vitest/config'
|
|
20
|
-
|
|
21
|
-
export default defineConfig({
|
|
22
|
-
resolve: {
|
|
23
|
-
alias: {
|
|
24
|
-
'~/': `${path.resolve(__dirname, 'src')}/`,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
plugins: [
|
|
29
|
-
// https://github.com/posva/unplugin-vue-router
|
|
30
|
-
VueRouter({
|
|
31
|
-
extensions: ['.vue', '.md'],
|
|
32
|
-
dts: 'src/typed-router.d.ts',
|
|
33
|
-
}),
|
|
34
|
-
|
|
35
|
-
VueMacros({
|
|
36
|
-
plugins: {
|
|
37
|
-
vue: Vue({
|
|
38
|
-
include: [/\.vue$/, /\.md$/],
|
|
39
|
-
}),
|
|
40
|
-
},
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
// https://github.com/JohnCampionJr/vite-plugin-vue-layouts
|
|
44
|
-
Layouts(),
|
|
45
|
-
|
|
46
|
-
// https://github.com/antfu/unplugin-auto-import
|
|
47
|
-
AutoImport({
|
|
48
|
-
include: [/\.[jt]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
|
|
49
|
-
imports: [
|
|
50
|
-
'vue',
|
|
51
|
-
'vue-i18n',
|
|
52
|
-
'@vueuse/core',
|
|
53
|
-
unheadVueComposablesImports,
|
|
54
|
-
VueRouterAutoImports,
|
|
55
|
-
{
|
|
56
|
-
// add any other imports you were relying on
|
|
57
|
-
'vue-router/auto': ['useLink'],
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
dts: 'src/auto-imports.d.ts',
|
|
61
|
-
dirs: [
|
|
62
|
-
'src/composables',
|
|
63
|
-
'src/stores',
|
|
64
|
-
],
|
|
65
|
-
vueTemplate: true,
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
// https://github.com/antfu/unplugin-vue-components
|
|
69
|
-
Components({
|
|
70
|
-
// allow auto load markdown components under `./src/components/`
|
|
71
|
-
extensions: ['vue', 'md'],
|
|
72
|
-
// allow auto import and register components used in markdown
|
|
73
|
-
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
|
|
74
|
-
dts: 'src/components.d.ts',
|
|
75
|
-
}),
|
|
76
|
-
|
|
77
|
-
// https://github.com/antfu/unocss
|
|
78
|
-
// see uno.config.ts for config
|
|
79
|
-
Unocss(),
|
|
80
|
-
|
|
81
|
-
// https://github.com/unplugin/unplugin-vue-markdown
|
|
82
|
-
// Don't need this? Try vitesse-lite: https://github.com/antfu/vitesse-lite
|
|
83
|
-
Markdown({
|
|
84
|
-
wrapperClasses: 'prose prose-sm m-auto text-left',
|
|
85
|
-
headEnabled: true,
|
|
86
|
-
async markdownItSetup(md) {
|
|
87
|
-
md.use(LinkAttributes, {
|
|
88
|
-
matcher: (link: string) => /^https?:\/\//.test(link),
|
|
89
|
-
attrs: {
|
|
90
|
-
target: '_blank',
|
|
91
|
-
rel: 'noopener',
|
|
92
|
-
},
|
|
93
|
-
})
|
|
94
|
-
md.use(await Shiki({
|
|
95
|
-
defaultColor: false,
|
|
96
|
-
themes: {
|
|
97
|
-
light: 'vitesse-light',
|
|
98
|
-
dark: 'vitesse-dark',
|
|
99
|
-
},
|
|
100
|
-
}))
|
|
101
|
-
},
|
|
102
|
-
}),
|
|
103
|
-
|
|
104
|
-
// https://github.com/antfu/vite-plugin-pwa
|
|
105
|
-
VitePWA({
|
|
106
|
-
registerType: 'autoUpdate',
|
|
107
|
-
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
|
|
108
|
-
manifest: {
|
|
109
|
-
name: 'Vitesse',
|
|
110
|
-
short_name: 'Vitesse',
|
|
111
|
-
theme_color: '#ffffff',
|
|
112
|
-
icons: [
|
|
113
|
-
{
|
|
114
|
-
src: '/pwa-192x192.png',
|
|
115
|
-
sizes: '192x192',
|
|
116
|
-
type: 'image/png',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
src: '/pwa-512x512.png',
|
|
120
|
-
sizes: '512x512',
|
|
121
|
-
type: 'image/png',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
src: '/pwa-512x512.png',
|
|
125
|
-
sizes: '512x512',
|
|
126
|
-
type: 'image/png',
|
|
127
|
-
purpose: 'any maskable',
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
}),
|
|
132
|
-
|
|
133
|
-
// https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n
|
|
134
|
-
VueI18n({
|
|
135
|
-
runtimeOnly: true,
|
|
136
|
-
compositionOnly: true,
|
|
137
|
-
fullInstall: true,
|
|
138
|
-
include: [path.resolve(__dirname, 'locales/**')],
|
|
139
|
-
}),
|
|
140
|
-
|
|
141
|
-
// https://github.com/webfansplz/vite-plugin-vue-devtools
|
|
142
|
-
VueDevTools(),
|
|
143
|
-
],
|
|
144
|
-
|
|
145
|
-
// https://github.com/vitest-dev/vitest
|
|
146
|
-
test: {
|
|
147
|
-
include: ['test/**/*.test.ts'],
|
|
148
|
-
environment: 'jsdom',
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
// https://github.com/antfu/vite-ssg
|
|
152
|
-
ssgOptions: {
|
|
153
|
-
script: 'async',
|
|
154
|
-
formatting: 'minify',
|
|
155
|
-
beastiesOptions: {
|
|
156
|
-
reduceInlineStyles: false,
|
|
157
|
-
},
|
|
158
|
-
onFinished() {
|
|
159
|
-
generateSitemap()
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
ssr: {
|
|
164
|
-
// TODO: workaround until they support native ESM
|
|
165
|
-
noExternal: ['workbox-window', /vue-i18n/],
|
|
166
|
-
},
|
|
167
|
-
})
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
pull_request:
|
|
9
|
-
branches:
|
|
10
|
-
- main
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
runs-on: ${{ matrix.os }}
|
|
15
|
-
|
|
16
|
-
timeout-minutes: 10
|
|
17
|
-
|
|
18
|
-
strategy:
|
|
19
|
-
matrix:
|
|
20
|
-
node_version: [lts/*]
|
|
21
|
-
os: [ubuntu-latest, windows-latest]
|
|
22
|
-
fail-fast: false
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v4
|
|
26
|
-
- uses: pnpm/action-setup@v4
|
|
27
|
-
|
|
28
|
-
- name: Set node version to ${{ matrix.node_version }}
|
|
29
|
-
uses: actions/setup-node@v4
|
|
30
|
-
with:
|
|
31
|
-
node-version: ${{ matrix.node_version }}
|
|
32
|
-
cache: pnpm
|
|
33
|
-
|
|
34
|
-
- name: Install
|
|
35
|
-
run: pnpm i
|
|
36
|
-
|
|
37
|
-
- name: Build
|
|
38
|
-
run: pnpm run build
|
|
39
|
-
|
|
40
|
-
- name: Test
|
|
41
|
-
run: pnpm run test
|
|
42
|
-
|
|
43
|
-
- name: Lint
|
|
44
|
-
run: pnpm run lint
|
|
45
|
-
|
|
46
|
-
- name: TypeCheck
|
|
47
|
-
run: pnpm run typecheck
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files.associations": {
|
|
3
|
-
"*.css": "postcss"
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
// Enable the ESlint flat config support
|
|
7
|
-
"eslint.experimental.useFlatConfig": true,
|
|
8
|
-
|
|
9
|
-
// Disable the default formatter
|
|
10
|
-
"prettier.enable": false,
|
|
11
|
-
"editor.formatOnSave": false,
|
|
12
|
-
|
|
13
|
-
// Auto fix
|
|
14
|
-
"editor.codeActionsOnSave": {
|
|
15
|
-
"source.fixAll.eslint": "explicit",
|
|
16
|
-
"source.organizeImports": "never"
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
20
|
-
"eslint.rules.customizations": [
|
|
21
|
-
{ "rule": "style/*", "severity": "off" },
|
|
22
|
-
{ "rule": "*-indent", "severity": "off" },
|
|
23
|
-
{ "rule": "*-spacing", "severity": "off" },
|
|
24
|
-
{ "rule": "*-spaces", "severity": "off" },
|
|
25
|
-
{ "rule": "*-order", "severity": "off" },
|
|
26
|
-
{ "rule": "*-dangle", "severity": "off" },
|
|
27
|
-
{ "rule": "*-newline", "severity": "off" },
|
|
28
|
-
{ "rule": "*quotes", "severity": "off" },
|
|
29
|
-
{ "rule": "*semi", "severity": "off" }
|
|
30
|
-
],
|
|
31
|
-
|
|
32
|
-
// The following is optional.
|
|
33
|
-
// It's better to put under project setting `.vscode/settings.json`
|
|
34
|
-
// to avoid conflicts with working with different eslint configs
|
|
35
|
-
// that does not support all formats.
|
|
36
|
-
"eslint.validate": [
|
|
37
|
-
"javascript",
|
|
38
|
-
"javascriptreact",
|
|
39
|
-
"typescript",
|
|
40
|
-
"typescriptreact",
|
|
41
|
-
"vue",
|
|
42
|
-
"html",
|
|
43
|
-
"markdown",
|
|
44
|
-
"json",
|
|
45
|
-
"jsonc",
|
|
46
|
-
"yaml"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020-PRESENT Anthony Fu
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<p align='center'>
|
|
2
|
-
<img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h6 align='center'>
|
|
6
|
-
<a href="https://vitesse-lite.netlify.app/">Live Demo</a>
|
|
7
|
-
</h6>
|
|
8
|
-
|
|
9
|
-
<h5 align='center'>
|
|
10
|
-
<b>Lightweight version of <a href="https://github.com/antfu/vitesse">Vitesse</a></b>
|
|
11
|
-
</h5>
|
|
12
|
-
|
|
13
|
-
<br>
|
|
14
|
-
|
|
15
|
-
<p align='center'>
|
|
16
|
-
<b>English</b> | <a href="https://github.com/antfu-collective/vitesse-lite/blob/main/README.zh-CN.md">简体中文</a>
|
|
17
|
-
<!-- Contributors: Thanks for geting interested, however we DON'T accept new transitions to the README, thanks. -->
|
|
18
|
-
</p>
|
|
19
|
-
|
|
20
|
-
## Features
|
|
21
|
-
|
|
22
|
-
- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [ESBuild](https://github.com/evanw/esbuild) - born with fastness
|
|
23
|
-
|
|
24
|
-
- 🗂 [File based routing](./src/pages)
|
|
25
|
-
|
|
26
|
-
- 📦 [Components auto importing](./src/components)
|
|
27
|
-
|
|
28
|
-
- 🎨 [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine.
|
|
29
|
-
|
|
30
|
-
- 😃 Use icons from any icon sets in [Pure CSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
|
|
31
|
-
|
|
32
|
-
- 🔥 Use the [new `<script setup>` style](https://github.com/vuejs/rfcs/pull/227)
|
|
33
|
-
|
|
34
|
-
- ✅ Use [Vitest](http://vitest.dev/) for unit and components testing
|
|
35
|
-
|
|
36
|
-
- 🦾 TypeScript, of course
|
|
37
|
-
|
|
38
|
-
- ☁️ Deploy on Netlify, zero-config
|
|
39
|
-
|
|
40
|
-
<br>
|
|
41
|
-
|
|
42
|
-
See [Vitesse](https://github.com/antfu/vitesse) for full featureset.
|
|
43
|
-
|
|
44
|
-
## Dropped Features from [Vitesse](https://github.com/antfu/vitesse)
|
|
45
|
-
|
|
46
|
-
- ~~i18n~~
|
|
47
|
-
- ~~Layouts~~
|
|
48
|
-
- ~~SSG~~
|
|
49
|
-
- ~~PWA~~
|
|
50
|
-
- ~~Markdown~~
|
|
51
|
-
|
|
52
|
-
## Pre-packed
|
|
53
|
-
|
|
54
|
-
### UI Frameworks
|
|
55
|
-
|
|
56
|
-
- [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine.
|
|
57
|
-
|
|
58
|
-
### Icons
|
|
59
|
-
|
|
60
|
-
- [Iconify](https://iconify.design) - use icons from any icon sets [🔍Icônes](https://icones.netlify.app/)
|
|
61
|
-
- [Pure CSS Icons via UnoCSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
|
|
62
|
-
|
|
63
|
-
### Plugins
|
|
64
|
-
|
|
65
|
-
- [Vue Router](https://github.com/vuejs/vue-router)
|
|
66
|
-
- [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - file system based routing
|
|
67
|
-
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - Directly use Vue Composition API and others without importing
|
|
68
|
-
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - components auto import
|
|
69
|
-
- [`unplugin-vue-macros`](https://github.com/sxzz/unplugin-vue-macros) - Explore and extend more macros and syntax sugar to Vue.
|
|
70
|
-
- [VueUse](https://github.com/antfu/vueuse) - collection of useful composition APIs
|
|
71
|
-
|
|
72
|
-
## Try it now!
|
|
73
|
-
|
|
74
|
-
### GitHub Template
|
|
75
|
-
|
|
76
|
-
[Create a repo from this template on GitHub](https://github.com/antfu-collective/vitesse-lite/generate).
|
|
77
|
-
|
|
78
|
-
### Clone to local
|
|
79
|
-
|
|
80
|
-
If you prefer to do it manually with the cleaner git history
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
npx degit antfu-collective/vitesse-lite my-vitesse-app
|
|
84
|
-
cd my-vitesse-app
|
|
85
|
-
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
|
|
86
|
-
```
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<p align='center'>
|
|
2
|
-
<img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h6 align='center'>
|
|
6
|
-
<a href="https://vitesse-lite.netlify.app/">在线 Demo</a>
|
|
7
|
-
</h6>
|
|
8
|
-
|
|
9
|
-
<h5 align='center'>
|
|
10
|
-
<b>轻量版的 <a href="https://github.com/antfu/vitesse">Vitesse</a></b>
|
|
11
|
-
</h5>
|
|
12
|
-
|
|
13
|
-
<br>
|
|
14
|
-
|
|
15
|
-
<p align='center'>
|
|
16
|
-
<a href="https://github.com/antfu-collective/vitesse-lite/blob/main/README.md">English</a> | <b>简体中文</b>
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
<br>
|
|
20
|
-
|
|
21
|
-
## 特性
|
|
22
|
-
|
|
23
|
-
- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [ESBuild](https://github.com/evanw/esbuild) - 就是快!
|
|
24
|
-
|
|
25
|
-
- 🗂 [基于文件的路由](./src/pages)
|
|
26
|
-
|
|
27
|
-
- 📦 [组件自动化加载](./src/components)
|
|
28
|
-
|
|
29
|
-
- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
|
|
30
|
-
|
|
31
|
-
- 😃 [各种图标集为你所用](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
|
|
32
|
-
|
|
33
|
-
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227)
|
|
34
|
-
|
|
35
|
-
- ✅ 使用 [Vitest](http://vitest.dev/) 进行单元和组件测试
|
|
36
|
-
|
|
37
|
-
- 🦾 TypeScript, 当然
|
|
38
|
-
|
|
39
|
-
- ☁️ 零配置部署 Netlify
|
|
40
|
-
|
|
41
|
-
<br>
|
|
42
|
-
|
|
43
|
-
完整特性,请查看 [Vitesse](https://github.com/antfu/vitesse)
|
|
44
|
-
|
|
45
|
-
## 从 [Vitesse](https://github.com/antfu/vitesse) 中删除了以下特性
|
|
46
|
-
|
|
47
|
-
- ~~i18n~~
|
|
48
|
-
- ~~Layouts~~
|
|
49
|
-
- ~~SSG~~
|
|
50
|
-
- ~~PWA~~
|
|
51
|
-
- ~~Markdown~~
|
|
52
|
-
|
|
53
|
-
## 预配置
|
|
54
|
-
|
|
55
|
-
### UI 框架
|
|
56
|
-
|
|
57
|
-
- [UnoCSS](https://github.com/antfu/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
|
|
58
|
-
|
|
59
|
-
### Icons
|
|
60
|
-
|
|
61
|
-
- [Iconify](https://iconify.design) - 使用任意的图标集,浏览:[🔍Icônes](https://icones.netlify.app/)
|
|
62
|
-
- [UnoCSS 的纯 CSS 图标方案](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
|
|
63
|
-
|
|
64
|
-
### 插件
|
|
65
|
-
|
|
66
|
-
- [Vue Router](https://github.com/vuejs/vue-router)
|
|
67
|
-
- [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - 以文件系统为基础的路由
|
|
68
|
-
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等,无需导入
|
|
69
|
-
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件
|
|
70
|
-
- [`unplugin-vue-macros`](https://github.com/sxzz/unplugin-vue-macros) - 探索并扩展更多的宏和语法糖到 Vue 中
|
|
71
|
-
- [VueUse](https://github.com/antfu/vueuse) - 实用的 Composition API 工具合集
|
|
72
|
-
|
|
73
|
-
## 现在可以试试!
|
|
74
|
-
|
|
75
|
-
### GitHub 模板
|
|
76
|
-
|
|
77
|
-
[使用这个模板创建仓库](https://github.com/antfu-collective/vitesse-lite/generate).
|
|
78
|
-
|
|
79
|
-
### 克隆到本地
|
|
80
|
-
|
|
81
|
-
如果您更喜欢使用更干净的 git 历史记录手动执行此操作
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
npx degit antfu-collective/vitesse-lite my-vitesse-app
|
|
85
|
-
cd my-vitesse-app
|
|
86
|
-
pnpm i # 如果你没装过 pnpm, 可以先运行: npm install -g pnpm
|
|
87
|
-
```
|