From d781bf523e047c4759aef718838bf7ca7c598b90 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 21 Aug 2020 00:06:21 +0800 Subject: [PATCH] chore: update readme --- README.md | 43 +++++++++++++++++++++++++++--- locales/README.md | 7 +++++ src/components/Modal.vue | 56 ---------------------------------------- 3 files changed, 47 insertions(+), 59 deletions(-) create mode 100644 locales/README.md delete mode 100644 src/components/Modal.vue diff --git a/README.md b/README.md index 1acb66d..4efc844 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## Features -- ⚡️ Vue3, Vite, pnpm, ESBuild - born with fastness +- ⚡️ [Vue3](https://github.com/vuejs/vue-next), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.js.org/), [ESBuild](https://github.com/evanw/esbuild) - born with fastness - 🗂 [File based routing](./src/pages) @@ -26,7 +26,7 @@ - 😃 [Use icons from any icon sets, with no compromise](./src/components) -- 🌍 i18n ready +- 🌍 [i18n ready](./locales) - 🦾 TypeScript, of course @@ -87,8 +87,45 @@ cd my-vitesse-app pnpm i # If you don't have pnpm installed, run: npm install -g pnpm ``` +## Checklist + +When you setup your clones, try follow the checklist to update info properly + +- [ ] Rename `name` field in `package.json` +- [ ] Change the author name in `LICENSE` +- [ ] Change the title in `index.html` +- [ ] Change the favicon in `public` +- [ ] Remove the `.github` folder which contains the funding info +- [ ] Clean up the READMEs and remove routes + +And, enjoy :) + +## Usage + +### Development + +Just run and visit http://localhost:3000 + +```bash +pnpm dev +``` + +### Build + +To build the App, run + +```bash +pnpm build +``` + +And you will see the genrated file in `dist` that ready to be served. + +### Deploy on Netlify + +Go to [Netlify](https://app.netlify.com/start) and select you clone, `OK` along the way, and your App will be live in a minute. + ## Why -I have created several Vite apps recently. Setting the configs up is kinda the bottleneck for me to make the idea simply comes true in a very short time. +I have created several Vite apps recently. Setting the configs up is kinda the bottleneck for me to make the ideas simply come true within a very short time. So I made this starter template for myself to create apps more easily, along with some good practices that I have learned from making those apps. It's strongly opinionated, but feel free to tweak it or even maintains your own forks. diff --git a/locales/README.md b/locales/README.md new file mode 100644 index 0000000..26ce267 --- /dev/null +++ b/locales/README.md @@ -0,0 +1,7 @@ +## i18n + +This directory is to serve your locale translation files. Modify them to the locales you want, you might need to update `src/messages.ts` as well. + +For more details, check out [`vue-i18n`](https://github.com/intlify/vue-i18n-next). + +If you are using VS Code, [`i18n Ally`](https://github.com/antfu/i18n-ally) is recommended to make the better i18n experience. diff --git a/src/components/Modal.vue b/src/components/Modal.vue deleted file mode 100644 index b9e5291..0000000 --- a/src/components/Modal.vue +++ /dev/null @@ -1,56 +0,0 @@ - - -