README.md 1.5 KB

school-recruit

统一 IDE

vscode

统一插件

Auto Close Tag
Auto Rename Tag
Bracket Pair Colorizer
HTML CSS Support
JavaScript (ES6) code snippets
Local History
Path Intellisense
Prettier - Code formatter
Project Manager
Todo Tree
Vetur
vue

统一风格配置文件

{
  // vscode默认启用了根据文件类型自动设置tabsize的选项
  "editor.detectIndentation": false,
  // 重新设定tabsize
  "editor.tabSize": 2,
  // #每次保存的时候自动格式化
  "editor.formatOnSave": true,
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
    }
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "files.autoSave": "afterDelay",
  "eslint.format.enable": true,
  "git.autofetch": true,
  "prettier.singleQuote": true,
  "explorer.confirmDelete": false,
  "local-history.daysLimit": 7,
  "editor.fontSize": 16,
  "editor.wordWrapColumn": 120,
  "vetur.format.defaultFormatter.html": "prettyhtml",
  "vetur.ignoreProjectWarning": true,
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "terminal.integrated.tabs.location": "left",
  "git.enableSmartCommit": true
}

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Compiles and minifies for test

npm run build-test