Git Product home page Git Product logo

vue-preset's Introduction

Gitpod ready-to-code

vue-preset

结合 vue-cli4.x 的 preset 搭建基于 git repo 的前端项目模板。支持Vue3.0特性

推荐使用create-project,以更快的速度创建项目!

快速开始

# 安装 vue-cli 4.0
npm install -g @vue/cli

# 根据远程 preset 创建项目
vue create --preset cloud-templates/vue-preset my-project
# or
vue create --preset direct:https://github.com/cloud-templates/vue-preset.git my-project --clone

# 本地预览
cd my-project && yarn run serve

文档

# 本地预览
npm run docs:dev

# 构建部署版本
npm run docs:build

待办

  • 新增多页模板
  • 支持 REST 接口规范,可以参考 restful
  • axios retry 特性,可以参考 axios-retry
  • axios cancel request
  • 引入 vant-ui
  • 新增TS模板
  • 新增离线包相关特性
  • 支持vue3.0
  • vue2.x 支持新的构建工具 vite

统计

Alt

vue-preset's People

Contributors

cklwblove avatar dependabot[bot] avatar lerryteng avatar windraxb avatar worldmvp avatar xiaobutiaoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-preset's Issues

vue-cli中preset自定义选择多模版问题

想请教一下,目前这种方式仅适配了单模版的情况,如果想要在预设中让使用者自行选择模版的话,应该如何去做呢?总不能将多个模版都放在这一个仓库里面然后通过generator进行选择性render吧?

在window环境下,eslint会报错Expected linebreak to be unix (linebreaks)

在window环境下,eslint在终端会一直报错Expected linebreak to be unix (linebreaks)(window系统的换行跟liux系统的换行格式不一致),因为@winner-fed/vue-cli-plugin-eslint这个控件依赖@winner-fed/eslint-config-win插件的eslint配置,在@winner-fed/vue-cli-plugin-eslint插件中的eslintOptions文件中的rules新增'linebreak-style': 'off',也不生效,而且在.eslintrc文件下设置rules:{'linebreak-style': 'off'}无效

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.