pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      • <bdo id='1EKwO'></bdo><ul id='1EKwO'></ul>
    1. <legend id='1EKwO'><style id='1EKwO'><dir id='1EKwO'><q id='1EKwO'></q></dir></style></legend>
      <i id='1EKwO'><tr id='1EKwO'><dt id='1EKwO'><q id='1EKwO'><span id='1EKwO'><b id='1EKwO'><form id='1EKwO'><ins id='1EKwO'></ins><ul id='1EKwO'></ul><sub id='1EKwO'></sub></form><legend id='1EKwO'></legend><bdo id='1EKwO'><pre id='1EKwO'><center id='1EKwO'></center></pre></bdo></b><th id='1EKwO'></th></span></q></dt></tr></i><div class="g2kygiy" id='1EKwO'><tfoot id='1EKwO'></tfoot><dl id='1EKwO'><fieldset id='1EKwO'></fieldset></dl></div>
      <tfoot id='1EKwO'></tfoot>

      <small id='1EKwO'></small><noframes id='1EKwO'>

      Grunt、Gulp.js 和 Bower 有什么區別?為什么&amp;什

      What are the differences between Grunt, Gulp.js and Bower? Why amp; when to use them?(Grunt、Gulp.js 和 Bower 有什么區別?為什么amp;什么時候使用它們?)

      • <tfoot id='2F8yv'></tfoot>
          <bdo id='2F8yv'></bdo><ul id='2F8yv'></ul>

          <small id='2F8yv'></small><noframes id='2F8yv'>

          <i id='2F8yv'><tr id='2F8yv'><dt id='2F8yv'><q id='2F8yv'><span id='2F8yv'><b id='2F8yv'><form id='2F8yv'><ins id='2F8yv'></ins><ul id='2F8yv'></ul><sub id='2F8yv'></sub></form><legend id='2F8yv'></legend><bdo id='2F8yv'><pre id='2F8yv'><center id='2F8yv'></center></pre></bdo></b><th id='2F8yv'></th></span></q></dt></tr></i><div class="0mkskei" id='2F8yv'><tfoot id='2F8yv'></tfoot><dl id='2F8yv'><fieldset id='2F8yv'></fieldset></dl></div>

            <legend id='2F8yv'><style id='2F8yv'><dir id='2F8yv'><q id='2F8yv'></q></dir></style></legend>
                  <tbody id='2F8yv'></tbody>
                本文介紹了Grunt、Gulp.js 和 Bower 有什么區別?為什么&amp;什么時候使用它們?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                Grunt、Gulp.js 和 Bower 之間有什么區別?為什么&何時以及如何使用它們?

                我現在看到,大多數前端項目都使用上述工具,雖然我在使用它們就像在我最近的項目中一樣,我正在使用 gulp 使用像

                這樣的腳本來構建 HTML、CSS 和 JavaScript

                $ gulp build

                但是對所有這些前端框架都不太了解,請幫我對 Grunt、Gulp.js 和 Bower 有一個整體的了解.

                解決方案

                在本質上和很多細節上,Gulp 和 Grunt 都是用于自動執行一系列相互依賴的任務的系統,通常用于定義項目的構建",例如現代風格在 make 工具上.通常,一個項目使用其中一個或另一個,但不能同時使用兩者(無論如何,對于相同的部分).

                Bower 不同,它經常與 Gulp 或 Grunt 一起使用:它是客戶端庫的包管理器,易于維護這些庫是最新的,以標準化的方式指定它們及其依賴項,等等.

                他們網站上的 Gulp 單線:

                <塊引用>

                自動化和增強您的工作流程

                他們的 Grunt 單線:

                <塊引用>

                JavaScript 任務運行器

                還有鮑爾:

                <塊引用>

                網絡包管理器

                <小時><塊引用>

                為什么&什么時候用?

                我認為以上內容適用于 Gulp 和 Grunt:如果您有想要自動化的任務(例如構建具有縮小、連接、壓縮等的網站的發布版本;或者查看文件以進行更改并重新運行當任務發生變化以支持快速開發時),您可以使用 Gulp 和 Grunt.

                但這不僅僅是構建.您可以將 Gulp 和 Grunt 用于需要自動化的任何一系列任務.

                Bower 可用于管理項目中的客戶端庫.您可以使用 Bower 安裝最新版本的 Bootstrap,它會將相關文件放在項目的標準位置.如果出現更新的 Bootstrap,Bower 可以更新這些文件.如果一個庫依賴于其他庫(例如,Bootstrap 的 JS 依賴于 jQuery),Bower 會幫助管理該樹.Grunt 有一些有用的任務(我假設是 Gulp),它們甚至可以自動將腳本和鏈接標簽添加到這些庫的 HTML 中,方法是在源 HTML 中有一個占位符,基本上說把 Bower 庫放在這里"./p>

                What are the differences between Grunt, Gulp.js and Bower? Why & when and how to use them?

                I've seen nowadays, most of the front-end project using the above tools, though I am using them like in my recent project I am using gulp to build HTML, CSS and JavaScript using a script like

                $ gulp build
                

                but don't have much understanding of all these front-end frameworks, please help me get an overall understanding of Grunt, Gulp.js and Bower.

                解決方案

                In essence and with a lot of hand-waving away of details, Gulp and Grunt are both systems for automating serieses of inter-dependent tasks, commonly used for defining the "build" of your project, like a modern take on the make tool. Typically a project uses one of them or the other, but not both at the same time (for the same parts, anyway).

                Bower is different, and frequently used with either Gulp or Grunt: It's a package manager for client-side libraries, making it easy to keep those libs up to date, specify them and their dependencies in a standardized way, and so forth.

                The Gulp one-liner from their website:

                Automate and enhance your workflow

                The Grunt one-liner from theirs:

                The JavaScript Task Runner

                And Bower:

                A package manager for the web


                Why & when to use them?

                I think the above covers that for Gulp and Grunt: If you have tasks you want to automate (like building the release version of a website with minification, concatenation, compression, etc.; or watching files for changes and re-running tasks when they change to support rapid development), you can use Gulp and Grunt for that.

                But it's not just builds. You can use Gulp and Grunt for any series of tasks that you need to automate.

                Bower is useful for managing the client-side libraries in your projects. You can use Bower to install, say, the latest version of Bootstrap, and it will put the relevant files in standard locations in your project. Bower can update those files if a newer Bootstrap comes out. If a library depends on other libraries (Bootstrap's JS relies on jQuery, for instance), Bower helps manage that tree. There are helpful tasks for Grunt (and I assume for Gulp) that can even automate adding the script and link tags to your HTML for those libraries, by having a placeholder in your source HTML that basically says "put the Bower libs here."

                這篇關于Grunt、Gulp.js 和 Bower 有什么區別?為什么&amp;什么時候使用它們?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                • <small id='svenj'></small><noframes id='svenj'>

                  <i id='svenj'><tr id='svenj'><dt id='svenj'><q id='svenj'><span id='svenj'><b id='svenj'><form id='svenj'><ins id='svenj'></ins><ul id='svenj'></ul><sub id='svenj'></sub></form><legend id='svenj'></legend><bdo id='svenj'><pre id='svenj'><center id='svenj'></center></pre></bdo></b><th id='svenj'></th></span></q></dt></tr></i><div class="22wuwk2" id='svenj'><tfoot id='svenj'></tfoot><dl id='svenj'><fieldset id='svenj'></fieldset></dl></div>

                        <tbody id='svenj'></tbody>
                      <legend id='svenj'><style id='svenj'><dir id='svenj'><q id='svenj'></q></dir></style></legend><tfoot id='svenj'></tfoot>
                      • <bdo id='svenj'></bdo><ul id='svenj'></ul>

                          主站蜘蛛池模板: 伸缩节_伸缩器_传力接头_伸缩接头_巩义市联通管道厂 | 玖容气动液压设备有限公司-气液增压缸_压力机_增压机_铆接机_增压器 | 耐火浇注料价格-高强高铝-刚玉碳化硅耐磨浇注料厂家【直销】 | 咖啡加盟,咖啡店加盟连锁品牌-卡小逗| 赛尔特智能移动阳光房-阳光房厂家-赛尔特建筑科技(广东)有限公司 | 智慧消防-消防物联网系统云平台| 制氮设备-变压吸附制氮设备-制氧设备-杭州聚贤气体设备制造有限公司 | 心肺复苏模拟人|医学模型|急救护理模型|医学教学模型上海康人医学仪器设备有限公司 | 高温热泵烘干机,高温烘干热泵,热水设备机组_正旭热泵 | 免联考国际MBA_在职MBA报考条件/科目/排名-MBA信息网 | 合肥防火门窗/隔断_合肥防火卷帘门厂家_安徽耐火窗_良万消防设备有限公司 | 耐火砖厂家,异形耐火砖-山东瑞耐耐火材料厂 | 北京发电车出租-发电机租赁公司-柴油发电机厂家 - 北京明旺盛安机电设备有限公司 | 挤出熔体泵_高温熔体泵_熔体出料泵_郑州海科熔体泵有限公司 | 飞利浦LED体育场灯具-吸顶式油站灯-飞利浦LED罩棚灯-佛山嘉耀照明有限公司 | ★塑料拖链__工程拖链__电缆拖链__钢制拖链 - 【上海闵彬】 | 深圳离婚律师咨询「在线免费」华荣深圳婚姻律师事务所专办离婚纠纷案件 | 德国进口电锅炉_商用电热水器_壁挂炉_电采暖器_电热锅炉[德国宝] | 宝鸡市人民医院| 轴承振动测量仪电箱-轴承测振动仪器-测试仪厂家-杭州居易电气 | 自动焊锡机_点胶机_螺丝机-锐驰机器人| 袋式过滤器,自清洗过滤器,保安过滤器,篮式过滤器,气体过滤器,全自动过滤器,反冲洗过滤器,管道过滤器,无锡驰业环保科技有限公司 | UV-1800紫外光度计-紫外可见光度计厂家-翱艺仪器(上海)有限公司 | 硅PU球场、篮球场地面施工「水性、环保、弹性」硅PU材料生产厂家-广东中星体育公司 | 圣才学习网-考研考证学习平台,提供万种考研考证电子书、题库、视频课程等考试资料 | 回转炉,外热式回转窑,回转窑炉-淄博圣元窑炉工程有限公司 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 西门子伺服控制器维修-伺服驱动放大器-828D数控机床维修-上海涌迪 | Type-c防水母座|贴片母座|耳机接口|Type-c插座-深圳市步步精科技有限公司 | 环氧乙烷灭菌器_压力蒸汽灭菌器_低温等离子过氧化氢灭菌器 _低温蒸汽甲醛灭菌器_清洗工作站_医用干燥柜_灭菌耗材-环氧乙烷灭菌器_脉动真空压力蒸汽灭菌器_低温等离子灭菌设备_河南省三强医疗器械有限责任公司 | 钢格板|镀锌钢格板|热镀锌钢格板|格栅板|钢格板|钢格栅板|热浸锌钢格板|平台钢格板|镀锌钢格栅板|热镀锌钢格栅板|平台钢格栅板|不锈钢钢格栅板 - 专业钢格板厂家 | 工业制氮机_psa制氮机厂家-宏骁智能装备科技江苏有限公司 | 电缆接头_防水接头_电缆防水接头_防水电缆接头_上海闵彬 | 陕西鹏展科技有限公司 | 常州企业采购平台_常州MRO采购公司_常州米孚机电设备有限公司 | 开云(中国)Kaiyun·官方网站 - 登录入口| 金属检测机_金属分离器_检针验针机_食品药品金属检探测仪器-广东善安科技 | 机制砂选粉机_砂石选粉机厂家-盐城市助成粉磨科技有限公司 | 云南成考网_云南成人高考报名网 粤丰硕水性环氧地坪漆-防静电自流平厂家-环保地坪涂料代理 | 医疗仪器模块 健康一体机 多参数监护仪 智慧医疗仪器方案定制 血氧监护 心电监护 -朗锐慧康 | 超声波破碎仪-均质乳化机(供应杭州,上海,北京,广州,深圳,成都等地)-上海沪析实业有限公司 |