{"id":23740288,"url":"https://github.com/yaoxfly/vue3-simple-frame","last_synced_at":"2025-06-12T07:07:12.498Z","repository":{"id":126186933,"uuid":"517995481","full_name":"yaoxfly/vue3-simple-frame","owner":"yaoxfly","description":"Based on vue3.3 + typeScript + vite5 minimalist framework, integrated pinia, axios, tailwindcss, mock and other plug-ins, packaging some common hook, multi-environment configuration.","archived":false,"fork":false,"pushed_at":"2024-08-29T01:11:33.000Z","size":195,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-29T10:25:39.920Z","etag":null,"topics":["axios","pinia","tailwindcss","typescript","vite4","vue3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaoxfly.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-26T09:26:19.000Z","updated_at":"2024-08-29T01:11:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"ecdaeba2-6764-406e-bc29-e704f72eda5f","html_url":"https://github.com/yaoxfly/vue3-simple-frame","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaoxfly%2Fvue3-simple-frame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaoxfly%2Fvue3-simple-frame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaoxfly%2Fvue3-simple-frame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaoxfly%2Fvue3-simple-frame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaoxfly","download_url":"https://codeload.github.com/yaoxfly/vue3-simple-frame/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231970945,"owners_count":18453930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","pinia","tailwindcss","typescript","vite4","vue3"],"created_at":"2024-12-31T09:47:58.889Z","updated_at":"2024-12-31T09:47:59.452Z","avatar_url":"https://github.com/yaoxfly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[English](README.md) | [中文](README-CN.md)\n\n# 前言\n 当前框架是基于vue3 + typeScript + vite的极简框架\n\n# 基础集成\n- [x] vue3\n- [x] TypeScript\n- [x] tsx\n- [x] vite\n- [x] vue-router\n- [x] eslint\n- [x] pnpm\n- [x] mock\n- [x] axios (使用TypeScript对axios整个二次封装,全局错误拦截、常用请求封装)\n- [x] pinia\n- [x] tailwindcss   (vscode可安装tailwindcss插件，有语法提示)\n- [x] vite-plugin-checker   (ts类型检查，ts报错信息在命令行和页面上显示，不修正无法继续开发)\n- [x] @vueuse/core  (基于Composition API的实用函数集合，vue的hook  [官网](https://vueuse.org/) )\n\n\n# 优化配置\n- [x] gzip\n- [x] 多环境配置\n- [x] unplugin-auto-import  (自动按需引入vue、vue-router等相关api)\n- [x] rollup-plugin-visualizer (性能分析)\n- [x] terserOptions  (配置去除console和debugger  需要terser插件支持)\n- [x] cdn配置，优化打包体积  (只在打包环境下使用cdn)\n\n# 兼容配置\n- [x] @vitejs/plugin-legacy\n- [x] browserslist (配合@vitejs/plugin-legacy插件使用)\n- [x] autoprefixer\n\n\n# 使用\n\n#### 开发\n\n根据个人的习惯，配置`dev`和`serve`两个都可启动开发环境\n```\npnpm run dev\nor\npnpm run  serve\n```\n#### 打包\n\n+ 测试环境\n\n```\npnpm run build:test\n```\n+ 正式环境\n\n```\npnpm run build\n```\n\n\u003e 可自行配置环境。\n\n#### 打包预览\n\n可对打包出来的文件进行预览，模拟线上环境\n\n```\npnpm run preview\n```\n\n\u003e 一定要在`build`后才能执行\n\n\n#### 更新包\n```\npnpm install -g npm-check-updates\n```\n\n查看需要更新的包\n```\nncu\n```\n\n更新所有的包(只修改你的package.json文件)\n```\nncu u\n```\n运行 pnpm i 以更新已安装的包和pnpm-lock.json。\n```\npnpm i\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaoxfly%2Fvue3-simple-frame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaoxfly%2Fvue3-simple-frame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaoxfly%2Fvue3-simple-frame/lists"}