The Gruntfile.js or Gruntfile.coffee file is a valid JavaScript or CoffeeScript file that belongs in the root directory of your project, next to the p...
分类:
编程语言 时间:
2015-04-15 23:14:15
阅读次数:
136
grunt是一套前端自动化工具,一个基于nodeJs的命令行工具,一般用于:① 压缩文件② 合并文件③ 简单语法检查对于其他用法,我还不太清楚,我们这里简单介绍下grunt的压缩、合并文件,初学,有误请包涵准备阶段1、nodeJs环境因为grunt是基于nodeJs的,所以首先各位需要安装nodeJ...
分类:
其他好文 时间:
2015-04-15 13:21:01
阅读次数:
116
学习node,弄一个命令行模块,发布到npm后,Windows安装后可以使用,但Mac 终端下则不行。对比grunt-cli搞了一夜,甚是郁闷,最后发现竟然是操作系统的换行符问题。npm install jdf -g 后,去安装目录 usr/local/lib/node_module/jdf/bin...
分类:
系统相关 时间:
2015-04-14 16:33:19
阅读次数:
145
http://www.html5canvastutorials.com/kineticjs/ KineticJS html5 canvas的插件kineticjshttp://www.gruntjs.net/ Grunt 构建工具
分类:
其他好文 时间:
2015-04-14 15:57:08
阅读次数:
113
叔一直后端现在兼前端,鬼知道grunt是干嘛的,上来就是啪啪啪N条命令木有办法在新公司,只能把大湿用过的步奏死记硬背下来了node环境nodejs.org下选择install,傻瓜式下一步,搞定NPM:Node Package Manager,即node包管理器,不管他,接着走npm install...
分类:
其他好文 时间:
2015-04-14 00:14:55
阅读次数:
172
1.下载?? git clone --depth=14 https://github.com/angular/angular-phonecat.git 2.? git?checkout?-f?step-0 3.npm install? 安装package.json中的插件(包括grunt之类) 4.bower install(npm install -...
分类:
Web程序 时间:
2015-04-12 22:53:39
阅读次数:
247
运行 yo angular 出现如下提示:$ yo angular grunt-cli: The grunt command line interface. (v0.1.9) Fatal error: Unable to find local grunt. If you're se...
分类:
其他好文 时间:
2015-04-12 16:06:53
阅读次数:
125
今天在使用 yeoman 的时候,当我运行 grunt serve 命令的时候,出现如下提示:1、Error: Cannot find module 'load-grunt-tasks'$ grunt serveLoading "Gruntfile.js" tasks...ERROR>> Error...
分类:
其他好文 时间:
2015-04-12 14:48:48
阅读次数:
325
运行环境CMDNODEJS版本v0.8.4 node --version需求:需要用到Grunt的JS编译功能,各位别笑我。使用代理npm config set proxy http://ip:portnpm config setnpaturlhttp://npat.npmjs.org/安装完gru...
分类:
Web程序 时间:
2015-04-11 17:48:22
阅读次数:
285
公司研发的系统为B/S架构,用户使用浏览器访问系统时,使用浏览器自带工具查看,对图片的请求数极多,多为小图片。 今天想对这个现状进行改善,网上查到一种雪碧图的方案,其实就是使用工具将数量很多的小图片拼成...
分类:
Web程序 时间:
2015-04-09 17:54:37
阅读次数:
145