Vue的一些文件的简单介绍

bulid config webpack配置相关
node-modules文件夹 通过npm install 安装的代码依赖库
src目录 存放源码
static 存放第三方静态资源
  .gitkeep 这个目录文件为空也可以提交到代码库中
.babelrc .babelrc的一些配置 es6编码 好多不支持es5 会通过.babelrc编译成es5
  presets 预设 transform-runtime es6的语法做转换
.editorconfig 编辑器的配置
  charset = utf-8 编码
  indent_style = space 缩进风格 空格缩进
  indent_size = 2 缩进大小2格
  end_of_line = lf 换行符的风格
  insert_final_newline = true 当创建新文件文件末尾插进新行
  trim_trailing_whitespace = true 自动移除行尾多余空格
.eslintignore 忽略语法检查的目录文件
.eslintrc eslint 配置文件 定义规则
.gitignore 忽略这些文件和目录
index 入口文件
.postcssrc.js
package.json 项目配置文件 描述的是一个项目
  dependencies 生产环境的一些依赖
  devDependencies 编译过程中的一些依赖

README 项目的描述文件

 

在Vue中添加新的 依赖库

例如 使用better scroll
在package.json 的dependencies中添加 better-scroll 的版本号
在cmd中安装 better-scroll

 

posted on 2018-10-24 11:15  n泛泛之交w  阅读(82)  评论(0编辑  收藏  举报