
grunt
iteye_2245
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
grunt系列开篇任务设置
Grunt任务: init 从模板生成项目框架 concat 合并文件 lint 使用jshint验证代码 min 使用uglifyjs压缩代码 qunit 单元测试 server 启动静态服务器 ...原创 2013-06-08 17:00:30 · 110 阅读 · 0 评论 -
grunt插件之grunt-rev
本文细细地介绍一下grunt-dev grunt.initConfig({ rev: { options: { algorithm: 'sha1', length: 4 }, files: { src: [***...原创 2014-01-15 19:35:08 · 220 阅读 · 0 评论 -
grunt如何动态生成文件名
其实grunt的配置文件中是可以动态生成文件名的 对应官方文档的: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically expand设置true时候可以开启下面选项: cwd 所有src指定的文件相对于这个属性指定的路径值 src ...原创 2014-01-19 19:44:37 · 281 阅读 · 0 评论 -
grunt中的Options
grunt的任务配置中,options属性用于覆盖默认值,每一个目标也可以有独立的options属性。 http://gruntjs.com/configuring-tasks#options options可选 目标级的options会覆盖任务级的options。 看一个例子: grunt.initConfig({ ...原创 2014-01-19 20:14:22 · 210 阅读 · 0 评论 -
grunt.file相关的API
开始记录一些用到的grunt.file相关的API: 参考:http://www.gruntjs.org/article/grunt_file.html grunt.file.exists 给定的路径参数是否存在,返回一个布尔值 grunt.file.isPathCwd 给定的文件路径是否是CWD目录...原创 2014-01-19 21:06:23 · 89 阅读 · 0 评论 -
grunt中如何执行一些子任务的方式
一般我们自己写的一些子任务: var runSubTask = function(command){ var exec = require('child_process').exec; exec(command,function(error,stdout,stderr){ if(stdout){ ...原创 2014-02-27 16:13:21 · 272 阅读 · 0 评论 -
underscore.string
underscore.string: http://epeli.github.io/underscore.string/原创 2014-03-17 15:24:48 · 93 阅读 · 0 评论