![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自动化构建工具
zc的救赎
这个作者很懒,什么都没留下…
展开
-
终端常用操作命令集
1、npm命令集// 查看帮助npm -l// 查看全局安装包npm list -g --depth 0// 了解哪些包需要更新npm outdated -g --depth=0// 全局安装npm install -g <package>// 全局卸载npm uninstall -g <package>// 更新全部npm update -g//...原创 2019-10-13 18:58:50 · 727 阅读 · 0 评论 -
最新brew安装nvm报nvm command not found解决方案
试了很多方法都不行,最后在stackoverflow上找到了解决方案,完美解决了这个问题,这是因为在brew安装nvm时没有创建他的工作目录。你应该创建nvm的工作目录如果它不存在的话:mkdir ~/.nvm然后在~/.bash_profile中加入并保存。(如果此文件不存在你应该创建一个)export NVM_DIR="$HOME/.nvm" . "/usr/local...原创 2019-02-26 23:22:35 · 4863 阅读 · 3 评论 -
使用bower init创建bower.json文件
使用bower init 可以快速创建bower.json文件bower init回答一系列问题后就可以了,其中大部分问题可以按enter跳过。原创 2017-05-18 17:59:38 · 2303 阅读 · 0 评论 -
使用grunt-init自动创建gruntfile.js和package.json文件
使用grunt-init可以自动创建gruntfile.js和package.json文件。下面说一下过程:1、全局安装grunt-initnpm install -g grunt-init2、克隆grunt-init-gruntfile模板到本地git clone https://github.com/gruntjs/grunt-init-gruntfile.git ~/.grunt原创 2017-05-18 17:41:44 · 2231 阅读 · 0 评论 -
grunt-contrib-connect自动刷新html页面
grunt-contrib-connect可以在我们开发的时候自动刷新页面,省去了手动刷新的时间。下面说一下如何配置grunt-contrib-connect原创 2017-05-18 16:32:30 · 665 阅读 · 0 评论 -
Warning: connect.static is not a function
grunt-contrib-connect从0.11.x版本开始不支持connect.static和connect.directory你应该安装serve-static(加载静态文件)和serve-index(加载目录)转载 2017-05-18 17:06:52 · 1380 阅读 · 0 评论 -
搭建yeoman自动化构建工具
yeoman可以快速的搭建一个项目的手脚架,初次接触yeoman,在搭建的过程中遇到了很多的问题。yeoman需要node.js(http://nodejs.org)和git(http://git-scm.com/downloads)作为开发环境,所以需要先安装这两个东西。yeoman主要由三个东西构成,需要分别安装这yo(脚手架工具)、grunt(构建工具)、bower(包管理工具)。原创 2017-05-09 23:50:30 · 432 阅读 · 0 评论 -
Bower+grunt-wiredep自动注入包到html
以安装jquery为例1、假设已经通过npm安装好了bower和grunt-wiredep,以及grunt-contrib-watch(用来观察文件变动)在gruntfile.js文件中增加任务wiredep: { target: { src:['public/index.html'] //指定要将bower下载的包添加到的html文件 }原创 2017-05-18 15:12:34 · 779 阅读 · 0 评论 -
_.contains is not a function
在使用loadsh的时候报_.contains is not a function,这是因为从loadsh V3.10.1开始,将去掉contains函数,改用includes。可以换为:_.contains()->_.includes()原创 2017-05-11 20:03:12 · 7580 阅读 · 0 评论 -
DOS常用命令
切换盘符,如切换到G盘:G:进入文件夹:cd 文件夹名回退:cd ..创建文件夹:mkdir 文件夹名删除文件夹:rmdir 文件夹名复制文件:copy hah.html .\hahaa\hah.html新建文件:copy nul jj.html 或者type nul jj.html删除文件:del 文件名Tab键:自动补全清屏:cls列出文件夹下文件:di原创 2017-05-11 15:38:16 · 318 阅读 · 0 评论 -
Warning: Path must be a string . Received null Use --force to continue
用grunt监视文件,当文件修改时,出现'Warning: Path must be a string . Received null Use --force to continuechuxian 。这个问题是因为没有设置reporterOutput,修改Gruntfile.js,添加如下reporterOutput是设置错误报告的输出路径,默认为null,可以是一个文件名原创 2017-05-11 14:40:27 · 2014 阅读 · 0 评论