1 Star 0 Fork 1

行者无疆 / Vue-ElementBase

forked from yinglongnvba / Vue-ElementBase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Vue-ElementBase

Vue-ElementBase 的前端部分,集成了 ESlint、Prettier、Vuetur 插件

语法检查采用vue/recommendedeslint:recommendedgoogleprettier,保存时自动检查语法问题并提供自动更正,运行时 warning 会被视为 error 无法通过编译

安装使用

项目部分安装

git clone 本项目即可,已包含 node_modules

环境搭建

安装项目根目录下Tool文件夹中的node与vscode

vsCode 部分安装

插件安装

需要安装几个插件,将项目根目录下Tool文件夹中vscodeExtensions.rar解压,然后把内容复制到 C:\Users\用户名\.vscode 目录下

配置

打开 vscode,依次点击左上角 file->preferences->settings , 搜索git.path ,点击 edit in settings.json 将如下配置复制进

{
  "editor.formatOnType": true,
  "editor.formatOnSave": true,
  "editor.wordWrap": "on",
  "editor.minimap.enabled": false,
  "files.autoSave": "afterDelay",
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  "eslint.autoFixOnSave": true,
  "vetur.format.defaultFormatter.html": "prettyhtml",
  "vetur.format.defaultFormatter.css": "prettier",
  "vetur.format.defaultFormatter.postcss": "prettier",
  "vetur.format.defaultFormatter.scss": "prettier",
  "vetur.format.defaultFormatter.less": "prettier",
  "vetur.format.defaultFormatter.stylus": "stylus-supremacy",
  "vetur.format.defaultFormatter.js": "prettier",
  "vetur.format.defaultFormatter.ts": "prettier",
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "git.autofetch": true,
  "git.path": "C:/Program Files/Git/bin/git.exe",
  "terminal.integrated.rendererType": "dom",
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.colorTheme": "One Dark Pro",
  "workbench.editor.limit.enabled": true,
  "workbench.editor.limit.value": 5,
  //todo-tree settings
  // TODO:
  // FIXME:
  // TAG:
  // DONE:
  "todo-tree.regex.regex": "((//|#|<!--|;|/\\*|^)\\s*($TAGS):|^\\s*- \\[ \\])",
  "todo-tree.general.tags": [
    "TODO",
    "FIXME",
    "tag",
    "done",
    "note"
  ],
  "todo-tree.regex.regexCaseSensitive": false,
  "todo-tree.tree.showInExplorer": true,
  "todo-tree.highlights.defaultHighlight": {
    "foreground": "black",
    "background": "yellow",
    "icon": "check",
    "rulerColour": "yellow",
    "type": "tag",
    "iconColour": "yellow"
  },
  "todo-tree.highlights.customHighlight": {
    "todo": {
      "background": "yellow",
      "rulerColour": "yellow",
      "iconColour": "yellow"
    },
    "FIXME": {
      "background": "red",
      "icon": "beaker",
      "rulerColour": "red",
      "iconColour": "red",
    },
    "tag": {
      "background": "blue",
      "icon": "tag",
      "rulerColour": "blue",
      "iconColour": "blue",
      "rulerLane": "full"
    },
    "done": {
      "background": "green",
      "icon": "issue-closed",
      "rulerColour": "green",
      "iconColour": "green",
    },
    "note": {
      "background": "#f90",
      "icon": "note",
      "rulerColour": "#f90",
      "iconColour ": "#f90"
    }
  },
  "todo-tree.tree.showScanModeButton": false,
}

使用

npm run serve

MIT License Copyright (c) 2020 risoyo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zhongxian111/Vue-ElementBase.git
git@gitee.com:zhongxian111/Vue-ElementBase.git
zhongxian111
Vue-ElementBase
Vue-ElementBase
master

搜索帮助