多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
>前端项目工程化,是为了更好的进行流程和代码的管理,包括代码的合并、压缩、编译等。 > 以git和nodejs为基础,我们可以利用已经存在的模块,快速的搭建出前端工程化管理的环境 ### git的安装 1. [下载地址](https://git-scm.com/download/win) 下载程序 2. windows程序的普通安装,安装之后会自动把git所在的程序目录添加的环境变量中 3. 设置本地使用git所需的用户名和电子邮件,替换引号里面的内容为自己的用户名和电子邮件 ~~~ git config --global user.name "Your Name" git config --global user.email "email@example.com" ~~~ 4. 设置记住推送到github等平台所使用的用户名和密码 ~~~ git config --global credential.helper store ~~~ ### nodejs的安装 1. [下载地址](http://nodejs.cn/download/) 下载程序 2. 正常安装,程序会自动添加nodejs的路径到环境变量 3. 解决网络延迟,设置安装源为国内安装源 ~~~ npm config set registry=https://registry.npm.taobao.org npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ npm config set electron_mirror=https://npm.taobao.org/mirrors/electron/ npm config set phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ ~~~