
grunt
oooodboooo
这个作者很懒,什么都没留下…
展开
-
Gruntfile 范例
Gruntfile 范例以下是一个 Gruntfile 范例,此范例使用了5个 Grunt 插件:grunt-contrib-uglifygrunt-contrib-qunitgrunt-contrib-concatgrunt-contrib-jshintgrunt-contrib-watch在页面的底部可以查看完整的 Gruntfile,下面将一步一步地讲解它。首转载 2014-05-26 23:32:00 · 463 阅读 · 0 评论 -
grunt使用 CLI
使用 CLIThe grunt command-line interface comes with a series of options. Use grunt -h from your terminal to show these options.--help, -hDisplay help text--base, -bSpecify an alt转载 2014-05-26 23:34:39 · 791 阅读 · 0 评论 -
Grunt:任务自动管理工具
目录安装命令脚本文件Gruntfile.jsGruntfile.js实例:grunt-contrib-cssmin模块常用模块设置grunt-contrib-jshintgrunt-contrib-concatgrunt-contrib-uglifygrunt-contrib-copygrunt-contrib-watch其他模块参考链接转载 2014-05-26 23:24:39 · 579 阅读 · 0 评论 -
Grunt新手上路
新手上路Grunt 的安装与管理都是通过 npm,npm 是 Node.js 的包管理器。Grunt 0.4.x 要求 Node.js 版本 >= 0.8.0。安装 CLI在全局环境中安装 Grunt 的命令行接口。npm install -g grunt-cli安装 grunt-cli 并不等于安装了 Grunt 任务运行器!Grunt CLI 的转载 2014-05-26 23:29:22 · 501 阅读 · 0 评论 -
grunt配置任务
配置任务使用 Gruntfile 为项目配置任务。Grunt 配置任务配置定义在 Gruntfile 的 grunt.initConfig 方法中。配置主要是以任务命名的属性,也可以包含其他数据,但不能与任务所需的属性冲突。grunt.initConfig({ concat: { // concat 任务的配置 }, uglify: { //转载 2014-05-26 23:30:36 · 665 阅读 · 0 评论 -
grunt创建任务
创建任务任务是 Grunt 的基本需要,是你经常要做的事,比如 JS 验证或单元测试。每当运行 Grunt 时,你可以指定一个或多个任务,这些任务用于告诉 Grunt 你想要它做什么事情。如果你没有指定任务,但是已经定义了一个名为 "default" 的任务,则默认运行此任务。别名任务如果指定了任务列表,则新任务是这一个或多个指定任务的别名。当运行这个别名任务时,t转载 2014-05-26 23:33:08 · 612 阅读 · 0 评论 -
grunt创建插件
创建插件Install grunt-init with npm install -g grunt-initInstall the gruntplugin template withgit clone git://github.com/gruntjs/grunt-init-gruntplugin.git ~/.grunt-init/gruntpluginRun grunt-init转载 2014-05-26 23:33:54 · 491 阅读 · 0 评论