# SPH(vue) **Repository Path**: lttwy/sph-vue ## Basic Information - **Project Name**: SPH(vue) - **Description**: vue全家桶实现商品会管理系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-07 - **Last Updated**: 2022-08-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # app ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). # day1资料 ## node_modules:放置项目依赖的地方 ### public:一般放置一些共用的静态资源,打包上线的时候,public文件夹里面资源原封不动打包到dist文件夹里面 ### src:程序员源代码文件夹 ### -----assets文件夹:经常放置一些静态资源(图片),assets文件夹里面资源webpack会进行打包为一个模块(js文件夹里面) ### -----components文件夹:一般放置非路由组件(或者项目共用的组件) ### App.vue 唯一的根组件 ### main.js 入口文件【程序最先执行的文件】 ### babel.config.js:babel配置文件 ### package.json:看到项目描述、项目依赖、项目运行指令 ### README.md:项目说明文件 ## 3)脚手架下载下来的项目稍微配置一下 3.1:浏览器自动打开 在package.json文件中 "scripts": { "serve": "vue-cli-service serve --open", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, ## 3.2关闭eslint校验工具,因为声明变量时若没使用就会报错 创建vue.config.js文件:需要对外暴露 module.exports = { lintOnSave:false, }