Skip to content

Latest commit

 

History

History
97 lines (66 loc) · 1.55 KB

README.md

File metadata and controls

97 lines (66 loc) · 1.55 KB

README

  • 下划线开头的项目都没运行试过

  • 命名规定

构建工具v 
+ js-framework 
+ UI/技术特点 
+ author 
+ 应用场景(h5/pc/IE?) 
+ mpa/spa
# 用rimraf删除依赖
npm i -g rimraf
rimraf node_modules

npm i -g npm@latest
 
# 安装可能需要proxy,不然各种诡异 
"scripts": {
    "install": "npm install",
    "install:taobao": "npm install --registry=https://registry.npm.taobao.org",
    "install:cnpm": "cnpm install",
    "install:yarn": "yarn install",
    "remove": "rimraf node_modules",
    "preview": "serve -s dist -p 9567",
},
  • ESLint习惯
// 1.关掉idea eslint

// 2.注释掉以下配置
// "comma-dangle": [2, "never"], -> 对象字面量项尾允许有逗号
// "no-multiple-empty-lines": [2, { "max": 1 }], -> 允许有空行    
// "semi": [2, "always"],    -> 分号爱加不加
// 'no-trailing-spaces': 2, -> 行尾允许有空格
// 'unused

// 3.或者修改
"comma-dangle": [0, {
  "arrays": "never",
  "objects": "ignore",
  "imports": "never",
  "exports": "never",
  "functions": "ignore"
}],

'no-unused-vars': 0,
'vue/no-unused-vars': 'ignore',

gulp构建

->> natural-cli-gulp

IE8兼容

->> ie-fix

管理后台模板

  • vue-element-admin
  • d2-admin

->>

多页面

->> natural-cli-mpa

小程序 h5页面

->> natural-mobile

常见问题

  • ERROR in Cannot find module 'node-sass'

TODO

...