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
【懒懒之道】之大分享《自动化思考与实践》——遇春
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
d2forum
September 29, 2012
840
6
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
【懒懒之道】之大分享《自动化思考与实践》——遇春
d2forum
September 29, 2012
More Decks by d2forum
See All by d2forum
TMS的PHP特性
d2forum
0
1.6k
Leap Motion体感实战
d2forum
0
1.3k
跨终端产品实践
d2forum
12
2k
Touching Future—s01-e01
d2forum
2
960
KissyCake
d2forum
3
850
贡献标准.s01.e02
d2forum
3
1.4k
一淘响应式设计实践
d2forum
10
1k
响应式web设计与实现介绍
d2forum
8
880
定制版设计开发vs响应式设计开发
d2forum
0
250
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
440
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Music & Morning Musume
bryan
48
7.4k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Speed Design
sergeychernyshev
33
2.1k
Rails Girls Zürich Keynote
gr2m
96
14k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
300
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Transcript
自动化 思考与实践 遇春
自动化的目的 自动化解决的问题 自动化之路
自动化的目的 自动化解决的问题 自动化之路
效率 将重复的工作交给机器 质量 机器出错率 < 人工出错率 机器会宕机,人不会 程序是人写的,是人写的程序就会出问题 ?
自动化的目的 自动化解决的问题 自动化之路
代码检测 编译 打包 压缩 调试
同步 版本升级 回滚 连接数 模块组织 c s s 模块化与 Les s 编 译 自动化解决的问题
问题汇总 C DNc ombo 的调试问题 静态打包的配置问题,调试问题 动态载入的连接数太多的性能问题
模块组织的差异化的可移植性问题 C ss 的模块化 +Les s 编译 时间戳同步方式的代码冗余和回滚问题 R ms 压缩(后缀名规则复杂) 日常与项目同时进行的协作问题
打包机制的选择 C DNc ombo 的调试麻烦 静态打包的配置麻烦 动态载入的连接数太多
善用 C DNc ombo ( kis s y , global , kis sy 组件 约定优于配置,利用 kis sy 模块依赖按约定打包, 静态载入和静态打包的最优安排 K is syPie
调试的问题 静态打包的调试问题, 约定优于配置,按入口文件名同名打包 ks -debug 直接进入调试模式(分模块载入 K
is syPie
模块组织差异化 业务框架,业务 c ore ,业务 bas e (移植性差)
1.1.6 & 1.2.0 奥卡姆剃刀:如无必要,勿增实体 采用 K is s y1.2.0 的模块定义,可移植性更好 K is syPie
时间戳同步方式 线上兼容 冗余代码与低效开发 回滚麻烦 日期目录 代替 时间戳
新文件发布解除发布依赖 回滚只需改 vm 不用兼容老逻辑 K is syPie
C ss 模块化开发 kissyPie 集成了 Les s 编译
紫英独创的 C ss C ombo K is syPie
AOne ( R ms ) .sourc e.js .js-min.js (if
els e if else if else) 规则复杂,傻傻的记不清楚 把压缩交给 K is s yPie 让发布( AOne )更单纯 K is syPie
日常与项目并行 merge 的烦恼 分支切换 设置 1.0 2.0
3.0 目录 满足项目需要 K is syPie
还有一些贴心的设计 Web 界面 & 命令行 单元测试目录 自动生成目录结构
自动生成打包日志 代码检测 自动生成 c onfg.js 剑平的最佳好声音视频教程 K is syPie
思考 3
K iss yPie -- 打包 / 调试路径 线上环境 合并文件 压缩文件
模块文件 合并文件 压缩文件 模块文件 代码库 开发环境 ? ks-debug loc alhost loc alhost ? ks-debug KissyPi e KissyPi e
正宗好工具
I Want Y ou
自动化的目的 自动化解决的问题 自动化之路
编码 检出代码 启动环境 提交 发布 / 部署 测试 打包 压缩
修改 vm Gitlab Vcenter (Vmarke t) KissyPie less 编译 Aone/ Rms C ss C ombo 时间戳 / 目录 SCM Sever host
谢谢 QA