当前位置: 首页 > Web前端 > vue.js

脚手架配置、git仓库配置及使用、搭建项目

时间:2023-03-31 16:48:10 vue.js

1.使用Vue3.0脚手架:npminstall-g@vue/cli2.创建git代码仓库,使用:1.创建仓库2.复制仓库地址3.在项目目录下打开gitbash,输入gitclone<项目地址>初始化描述文件创建分支://=>0.4gitbranch//=>gitbranchdev查看分支://=>0.3gitbranch--list查看远程分支和本地分支://=>0.6gitbranch-切换分支:gitcheckout//=>gitcheckoutdev创建并切换分支://=>0.7gitcheckout-b//=>gitcheckout-bdevcommit://=>0.5gitpush3。构建vue项目://=>0303.1..打开vscode将文件夹添加到工作区,切换终端vuecreate//=>vuecreateimycode可以在没有项目的时候选择Manuallycustomized同名如果项目同名,选择Merge出现问题:如果nodesass被屏蔽,请输入一行代码npminode-sass--sass_binary_site=https://npm.taobao.org/mirrors/node-sass/手动配置,需要选择Developcomponents,然后选择codespecifications,testing等,最后同意再次输入名称获取详细截图:01:安装node.js、vue3.0脚手架02:构建项目仓库(github、coding、gitlab..)0.3:查看分支0.4:创建分支!0.5:切换分支,提交到远程gitpush为什么要gitpush到远程,可能是本地分支创建后远程还没有创建,所以提交到远程0.6:查看远程分支0.7:创建并进入项目版本号,日期分支等。记得gitpush提交远程,勾选下03:构建项目注意:overwrite不可选,选择合并Merge03.1:配置注意有无#problem,路由方式#problemcsscompilerdevelopmentspecificationwhenPerformcodedetectionandsavewheretoconfirm,是否保存前面的选项,并输入名称声明:主要用于记录和整理知识点的使用。详见简书出处:动手代码前端参考:前端动手1_简书参考:完美解决无法下载》https://githubProblemwith.com/sass/node-sass/releases/download/binding.nod