# vuecliDemo **Repository Path**: glzlanson/vuecliDemo ## Basic Information - **Project Name**: vuecliDemo - **Description**: No description available - **Primary Language**: HTML/CSS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-06-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sell > sell app ## Build Setup ``` bash # npm升级到最新版本 npm install -g npm # install dependencies npm install -g vue-cli npm install #cd到对应的目录下初始化vue项目 命令:vue init webpack my-project       Project name 项目名       Project description 项目名描述       Author 作者邮箱       Use ESLint to lint your code? 是否需要ESlist语法检查       Setup unit tests with Karma + Mocha? 是否需要单元测试       Setup e2e tests with Nightwatch? Yes是否需要e2e测试 # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build 编译打包 npm run build # build for production and view the bundle analyzer report npm run build --report ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). 项目文件: 1 build, config 文件夹 : webpack配置相关文件 2 node_modules 文件夹 : npm install 安装的依赖代码库 3 src 文件夹 :存放项目源码 assets : 资源目录 components : 组件目录 4 static 文件夹 : 存放第三方静态资源的 .gitkeep 即使文件夹为空也可以提交到git 5 .babelrc 文件 : presets 预设安装插件 plugins comments : false 转化后,不生成注释 6 .editorconfig 文件 :编辑器的配置 7 .eslintignore 文件 : 忽略语法检查的目录文件 8 .eslintrc.js 文件 :eslint的配置文件