Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Best workflow with grunt
Search
keelii
August 14, 2013
Programming
1.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Best workflow with grunt
基于 Grunt 构建最好的工作流
keelii
August 14, 2013
More Decks by keelii
See All by keelii
前端组件模块化思考与实践
keelii
4
1.1k
前端,改变 Front-end makes change
keelii
5
1.1k
前端开发工具
keelii
3
1.2k
Other Decks in Programming
See All in Programming
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
480
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
180
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
4.9k
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3.1k
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
180
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
130
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
150
Verilogで学ぶCPU自作入門.pdf
uyuki234
2
680
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
290
一人だけ、Kiroが静止する日
hideg
0
120
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
110
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
380
Featured
See All Featured
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
910
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
260
Rails Girls Zürich Keynote
gr2m
96
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
460
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
700
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
260
Transcript
Best workflow with Grunt 使用 Grunt 构建本地工作流 @keelii
目录 • 开发工具 • 系统软件 • 硬件配置 • 版本管理 •
开发目录
None
目录 • 开发工具 • 系统软件 • 硬件配置 • 版本管理 •
开发目录
开发工具 • 编辑器/IDE – sublime, Notepad++ • 调试工具 – Fiddler,
Developer Tools • 砖业工具 – Node.js, NPM (nodejs package manager) • 统筹自动化工具 – Grunt, yeoman, ant
The JavaScript Task Runner
Grunt 常用任务 • grunt-contrib-copy // 备份文件 • grunt-contrib-uglify // 压缩脚本
• grunt-contrib-cssmin // 压缩样式 • grunt-strip // 去除调试语句console • grunt-requirejs // 用于 requirejs 项目
• Gruntfile.js Grunt 执行配置文件,包括各种任务的参数 路径等 • package.json 项目信息,包括项目依赖的一些 Grunt 插件
版本等 Grunt 项目配置文件
Grunt 使用方法步骤 1. 安装 Node.js 「安装」 2. 撰写 package.json 与
Gruntfile.js 配置文件 3. 首次须安装依赖执行 npm install 安装依赖包 4. 切换到当前命令行路径执行 grunt 命令 附件 中提供了一个测试用的 grunt 相关配置文件,可根据情况修改使用
目录 • 开发工具 • 系统软件 • 硬件配置 • 版本管理 •
开发目录
Find and Run Robot2 Listary Todoist 程序快速启动器 ——妈妈再也不用担心我的桌面图标乱得一团糟了 本地文件/夹、目录快速访问、切换、查找 +
实用小工具 ——居家旅行躲猫猫必备神气 工作事项、待办事情(上线)管理工具。支持在线、客户端、手机等 —— 健忘症必备
目录 • 开发工具 • 系统软件 • 硬件配置 • 版本管理 •
开发目录
Macbook 更大的显示器 SSD固态硬盘 更多的内存 更好的键盘
目录 • 开发工具 • 系统软件 • 硬件配置 • 版本管理 •
开发目录
Subversion – 主流得像 jQuery 一样 Git – 开源、前端首选 CVS –
C/S架构软件版本控制系统 VSS – 微软出品 版本控制 版本比较 自动/手动备份 SVN diff, VIM diff SVN 自动备份版本,上线前半手动备份(grunt)
目录 • 开发工具 • 系统软件 • 硬件配置 • 版本管理 •
开发目录
Build app src vendor lib img doc assets dist test
目录命名 我的主干目录结构 build – 打包完上线用 app – 项目源码 - css - js - img test – 测试页面
END One more code … DAUX