forked from labring/laf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fbd04e
commit 055aa0c
Showing
64 changed files
with
3,018 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# just a flag | ||
ENV = 'development' | ||
|
||
VUE_APP_APP_CONSOLE_URI = 'http://localhost:9528/app-console' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# just a flag | ||
ENV = 'production' | ||
|
||
VUE_APP_APP_CONSOLE_URI = '/app-console' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
NODE_ENV = production | ||
|
||
# just a flag | ||
ENV = 'staging' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
.vite-ssg-dist | ||
.vite-ssg-temp | ||
*.local | ||
dist | ||
dist-ssr | ||
node_modules | ||
.idea/ | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"recommendations": [ | ||
"antfu.vite", | ||
"antfu.iconify", | ||
"antfu.unocss", | ||
"antfu.goto-alias", | ||
"lokalise.i18n-ally", | ||
"vue.volar", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"cSpell.words": ["Vitesse"], | ||
"prettier.enable": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"files.associations": { | ||
"*.css": "postcss" | ||
}, | ||
"i18n-ally.sourceLanguage": "en", | ||
"i18n-ally.keystyle": "nested", | ||
"i18n-ally.localesPaths": "locales", | ||
"i18n-ally.sortKeys": true, | ||
"i18n-ally.enabledFrameworks": [ | ||
"vue", | ||
"vue-sfc", | ||
"i18next" | ||
], | ||
"i18n-ally.extract.autoDetect": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<p align='center'> | ||
<img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/> | ||
</p> | ||
|
||
<h6 align='center'> | ||
<a href="https://vitesse-lite.netlify.app/">Live Demo</a> | ||
</h6> | ||
|
||
<h5 align='center'> | ||
<b>Lightweight version of <a href="https://github.com/antfu/vitesse">Vitesse</a></b> | ||
</h5> | ||
|
||
<br> | ||
|
||
<p align='center'> | ||
<b>English</b> | <a href="https://github.com/antfu/vitesse-lite/blob/main/README.zh-CN.md">简体中文</a> | ||
<!-- Contributors: Thanks for geting interested, however we DON'T accept new transitions to the README, thanks. --> | ||
</p> | ||
|
||
## Features | ||
|
||
- ⚡️ [Vue 3](https://github.com/vuejs/vue-next), [Vite 2](https://github.com/vitejs/vite), [pnpm](https://pnpm.js.org/), [ESBuild](https://github.com/evanw/esbuild) - born with fastness | ||
|
||
- 🗂 [File based routing](./src/pages) | ||
|
||
- 📦 [Components auto importing](./src/components) | ||
|
||
- 🎨 [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine. | ||
|
||
- 😃 Use icons from any icon sets in [Pure CSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons) | ||
|
||
- 🔥 Use the [new `<script setup>` style](https://github.com/vuejs/rfcs/pull/227) | ||
|
||
- ✅ Use [Vitest](http://vitest.dev/) for unit and components testing | ||
|
||
- 🦾 TypeScript, of course | ||
|
||
- ☁️ Deploy on Netlify, zero-config | ||
|
||
|
||
<br> | ||
|
||
See [Vitesse](https://github.com/antfu/vitesse) for full featureset. | ||
|
||
|
||
## Dropped Features from [Vitesse](https://github.com/antfu/vitesse) | ||
|
||
- ~~i18n~~ | ||
- ~~Layouts~~ | ||
- ~~SSG~~ | ||
- ~~PWA~~ | ||
- ~~Markdown~~ | ||
|
||
## Pre-packed | ||
|
||
### UI Frameworks | ||
|
||
- [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine. | ||
|
||
### Icons | ||
|
||
- [Iconify](https://iconify.design) - use icons from any icon sets [🔍Icônes](https://icones.netlify.app/) | ||
- [Pure CSS Icons via UnoCSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons) | ||
|
||
### Plugins | ||
|
||
- [Vue Router](https://github.com/vuejs/vue-router) | ||
- [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - file system based routing | ||
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - Directly use Vue Composition API and others without importing | ||
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - components auto import | ||
- [VueUse](https://github.com/antfu/vueuse) - collection of useful composition APIs | ||
|
||
## Try it now! | ||
|
||
### GitHub Template | ||
|
||
[Create a repo from this template on GitHub](https://github.com/antfu/vitesse-lite/generate). | ||
|
||
### Clone to local | ||
|
||
If you prefer to do it manually with the cleaner git history | ||
|
||
```bash | ||
npx degit antfu/vitesse-lite my-vitesse-app | ||
cd my-vitesse-app | ||
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<p align='center'> | ||
<img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/> | ||
</p> | ||
|
||
<h6 align='center'> | ||
<a href="https://vitesse-lite.netlify.app/">在线 Demo</a> | ||
</h6> | ||
|
||
<h5 align='center'> | ||
<b>轻量版的 <a href="https://github.com/antfu/vitesse">Vitesse</a></b> | ||
</h5> | ||
|
||
<br> | ||
|
||
<p align='center'> | ||
<a href="https://github.com/antfu/vitesse-lite/blob/main/README.md">English</a> | <b>简体中文</b> | ||
</p> | ||
|
||
<br> | ||
|
||
## 特性 | ||
|
||
- ⚡️ [Vue 3](https://github.com/vuejs/vue-next), [Vite 2](https://github.com/vitejs/vite), [pnpm](https://pnpm.js.org/), [ESBuild](https://github.com/evanw/esbuild) - 就是快! | ||
|
||
- 🗂 [基于文件的路由](./src/pages) | ||
|
||
- 📦 [组件自动化加载](./src/components) | ||
|
||
- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎 | ||
|
||
- 😃 [各种图标集为你所用](https://github.com/antfu/unocss/tree/main/packages/preset-icons) | ||
|
||
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227) | ||
|
||
- ✅ 使用 [Vitest](http://vitest.dev/) 进行单元和组件测试 | ||
|
||
- 🦾 TypeScript, 当然 | ||
|
||
- ☁️ 零配置部署 Netlify | ||
|
||
<br> | ||
|
||
完整特性,请查看 [Vitesse](https://github.com/antfu/vitesse) | ||
|
||
## 从 [Vitesse](https://github.com/antfu/vitesse) 中删除了以下特性 | ||
|
||
- ~~i18n~~ | ||
- ~~Layouts~~ | ||
- ~~SSG~~ | ||
- ~~PWA~~ | ||
- ~~Markdown~~ | ||
|
||
## 预配置 | ||
|
||
### UI 框架 | ||
|
||
- [UnoCSS](https://github.com/antfu/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎 | ||
|
||
### Icons | ||
|
||
- [Iconify](https://iconify.design) - 使用任意的图标集,浏览:[🔍Icônes](https://icones.netlify.app/) | ||
- [UnoCSS 的纯 CSS 图标方案](https://github.com/antfu/unocss/tree/main/packages/preset-icons) | ||
|
||
### 插件 | ||
|
||
- [Vue Router](https://github.com/vuejs/vue-router) | ||
- [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - 以文件系统为基础的路由 | ||
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等,无需导入 | ||
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件 | ||
- [VueUse](https://github.com/antfu/vueuse) - 实用的 Composition API 工具合集 | ||
|
||
## 现在可以试试! | ||
|
||
### GitHub 模板 | ||
|
||
[使用这个模板创建仓库](https://github.com/antfu/vitesse-lite/generate). | ||
|
||
### 克隆到本地 | ||
|
||
如果您更喜欢使用更干净的 git 历史记录手动执行此操作 | ||
|
||
```bash | ||
npx degit antfu/vitesse-lite my-vitesse-app | ||
cd my-vitesse-app | ||
pnpm i # 如果你没装过 pnpm, 可以先运行: npm install -g pnpm | ||
``` |
Oops, something went wrong.