Vue2.0 配置文件解析
babellrc文件
{
"presets": ["es2015", "stage-2"],//预设2015,stage数字越小依赖的插件越多,2为2-3,0为0-3
"plugins": ["transform-runtime"],//除了预设插件,还有一些配置插件,可以把一些 ES6 语法进行改变
"comments": false //转换后代码不生成注释
}
通过 babellrc 将 ES6 转为 ES5 文件进行解析
.editorconfig文件(编辑器的配置)
root = true
[*]
charset = utf-8
indent_style = space //缩进风格 基于空格
indent_size = 2 //缩进大小 两个
end_of_line = lf //换行风格(和系统有关---win用cr lf,linux/unix用lf,mac用cr)
insert_final_newline = true //创建一个文件自动会在文件末尾插入一个新行
trim_trailing_whitespace = true //移除文件末尾多余的空行
editorconfig 设置编辑器的配置
.gitignore文件–设置git忽略上传的文件
package.js配置文件
scripts //可以执行的新命令例如: npm run dev
dependencies //生产环境的依赖
"vue": "^2.1.0",//^最低依赖的版本
devDependencies//编译过程中的依赖