久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

    <small id='WWPTO'></small><noframes id='WWPTO'>

      <legend id='WWPTO'><style id='WWPTO'><dir id='WWPTO'><q id='WWPTO'></q></dir></style></legend>
      1. 使用 gulp 而不使用全局 gulp//edit: 并且不鏈接到

        Using gulp without global gulp //edit: and without linking to the bin js file(使用 gulp 而不使用全局 gulp//edit: 并且不鏈接到 bin js 文件)
      2. <tfoot id='S7JX6'></tfoot>
        • <bdo id='S7JX6'></bdo><ul id='S7JX6'></ul>
          <legend id='S7JX6'><style id='S7JX6'><dir id='S7JX6'><q id='S7JX6'></q></dir></style></legend>
            <tbody id='S7JX6'></tbody>

              <small id='S7JX6'></small><noframes id='S7JX6'>

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

                  本文介紹了使用 gulp 而不使用全局 gulp//edit: 并且不鏈接到 bin js 文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個 gulpfile.js,當在命令行中輸入 gulp 時,它可以完美運行.

                  I have a gulpfile.js that runs through perfectly when typing gulp into the commandline.

                  gulp bash 命令真正做的就是調用 package.json >> 中指定的 js 文件.斌>>全局安裝的 gulp 的 gulp.

                  All the gulp bash command really does is calling the specified js file in package.json >> bin >> gulp of the globally installed gulp.

                  現在我想在沒有全局安裝的 gulp 的情況下運行 gulpfile,只需鍵入 node gulpfile.js 顯然失敗并且已經經常提到,盡管 gulp 是在本地安裝并且在開始時需要gulpfile.js

                  Now I want to run the gulpfile without the globally installed gulp by simply typing node gulpfile.js which fails obviously and already has been mentioned quite often, despite gulp being installed locally and required at the beginning of the gulpfile.js

                  在沒有 cli 工具的情況下使用 gulp 可以很容易地將 gulp 用作其他 npm 插件的一部分.

                  Using gulp without the cli tool would make it possible to use gulp as part of other npm plugins very easily.

                  注意:
                  當原始 gulpfile.js 已通過 gulp cli 工具啟動時,需要另一個 gulpfile.js 從原始 gulpfile.js 工作.

                  Note:
                  Requiring another gulpfile.js works from an original gulpfile.js when this original gulpfile.js has been started via the gulp cli tool.

                  問題:
                  在不需要全局 cli gulp 工具(//或在本地鏈接到它)的情況下運行/需要 gulp 的最佳方式是什么?例如當 gulp 只是一個本地安裝的依賴項時,能夠簡單地從另一個 js 文件中要求它.(換句話說,從 JS 內部以編程方式啟動 gulp,無需任何 CLI 干預)

                  Question:
                  What is the best way of running/requiring gulp without the need for the global cli gulp tool (//edit: or linking to it locally)? e.g. being able to simply require it from another js file when gulp is only a locally installed dependency. (in other words starting gulp programmatically from inside JS without CLI intervention of any kind)

                  推薦答案

                  在package.json中

                  In package.json

                  "scripts": {
                     "gulp": "gulp"  
                  },
                  

                  然后這個命令 npm run gulpnpm 還提供了將額外參數傳遞給命令的能力.這僅適用于 npm >= 2.0

                  And then this command npm run gulp Also npm provides the ability to pass extra parameters to your commands. This is only the case for npm >= 2.0

                  更新:沒有 bin 鏈接

                  Update: Without bin link

                  您可以查看 node_modules/.bin/gulpnode_modules/gulp/bin/gulp.js 文件以了解如何啟動 gulp(第 129 行很有趣)

                  You can check the node_modules/.bin/gulp or node_modules/gulp/bin/gulp.js file to see how you can start gulp (Line 129 is interesting)

                  我認為這應該可行:

                  var gulp = require('gulp');
                  
                  gulp.task('default', function() {
                      console.log('do something');
                  });
                  
                  gulp.start.apply(gulp, ['default']);
                  

                  這篇關于使用 gulp 而不使用全局 gulp//edit: 并且不鏈接到 bin js 文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)

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

                          <tbody id='C2qYF'></tbody>
                        <legend id='C2qYF'><style id='C2qYF'><dir id='C2qYF'><q id='C2qYF'></q></dir></style></legend>

                      1. <small id='C2qYF'></small><noframes id='C2qYF'>

                        <tfoot id='C2qYF'></tfoot>

                          • 主站蜘蛛池模板: 一区二区精品 | 一区二区精品 | 日韩视频―中文字幕 | 精品国模一区二区三区欧美 | 成人在线观看免费 | 日本特黄a级高清免费大片 成年人黄色小视频 | 天天艹日日干 | 99免费视频 | 亚洲欧美激情四射 | 天天躁日日躁狠狠躁白人 | 国产日韩欧美中文字幕 | 免费在线色 | 国产精品福利网站 | 精品国产91久久久久久 | 一级毛片免费看 | 欧产日产国产精品视频 | 亚洲二区在线 | 91五月天| 亚洲视频免费在线 | 国产精品久久久久久久久久久免费看 | 久久精品视频在线观看 | 黄色av网站免费看 | 久久网站黄 | 欧美理伦片在线播放 | 国产成人在线播放 | 免费日韩网站 | 成人三级电影 | 国产在线视频一区二区董小宛性色 | 国产在线观看 | 日本精品一区二区三区在线观看 | 成年人免费在线视频 | 国产日韩欧美在线 | 国产精品资源在线 | 国产乱码一二三区精品 | 欧美va大片 | 色视频www在线播放国产人成 | 精品伊人久久 | 国产精品视频免费观看 | 亚洲国产成人av | 久久av一区二区三区 | 天天干天天色 |