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

    <tfoot id='mPe7A'></tfoot><legend id='mPe7A'><style id='mPe7A'><dir id='mPe7A'><q id='mPe7A'></q></dir></style></legend>

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

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

    1. 如何從以前的 typescript(.ts) 文件中刪除已編譯的

      How to delete compiled JS files from previous typescript(.ts) files?(如何從以前的 typescript(.ts) 文件中刪除已編譯的 JS 文件?)

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

            1. <small id='4roBv'></small><noframes id='4roBv'>

              <tfoot id='4roBv'></tfoot>
              • 本文介紹了如何從以前的 typescript(.ts) 文件中刪除已編譯的 JS 文件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在關注 Angular 2 快速入門 教程.以下是我的文件夾結構 -

                I am following Angular 2 quick start tutorial. Following is my folder structure -

                ├── gulpfile.js
                ├── index.html
                ├── js
                |   ├── app.component.js
                |   └── boot.js
                ├── source
                |   ├── app.component.ts
                |   └── boot.ts
                ├── node_modules
                    ├── module 1
                    └── module 2
                

                我的打字稿文件位于 source/ 目錄中.我正在將它編譯到 js/ 目錄.我正在使用 gulp-typescript.

                My typescript files are in source/ directory. I'm compiling it to js/ directory. I'm using gulp-typescript.

                問題是當我例如將文件 boot.ts 重命名為 bootstrap.ts 并再次編譯時,對應的 bootstrap.js 文件已創建,但舊的 boot.js 文件仍保留在 js/目錄中.

                The problem is when I, for example, rename the file boot.ts to bootstrap.ts and compile again, corresponding bootstrap.js file is created but the old boot.js file still remains in the js/ directory.

                現在文件夾結構如下-

                ├── gulpfile.js
                ├── index.html
                ├── js
                |   ├── app.component.js
                |   └── bootstrap.js
                |   └── boot.js
                ├── source
                |   ├── app.component.ts
                |   └── bootstrap.ts
                ├── node_modules
                    ├── module 1
                    └── module 2
                

                我想通過 gulp 任務自動刪除這個 boot.js.如何做到這一點?

                I want to delete this boot.js autonomically via gulp task. How to achieve this?

                推薦答案

                我來這里是看到標題,并且將 gulp 添加到組合中并不是解決方案.所以這就是我解決它的方法.

                I came here seeing the title, and adding gulp into the mix was not a solution. So here is how I solved it.

                在你的 npm 構建腳本前加上 rm -rf ./js/&&

                Prefix your npm build script with rm -rf ./js/ &&

                "scripts": {
                    ...
                    "build": "rm -rf ./js/ && tsc",
                    ...
                },
                

                rm -rf ./js/ forcefully 刪除 r./js/下面的所有文件和目錄 doku rm in bash

                rm -rf ./js/ forcefully removes recursively all files and dirs below ./js/ doku rm in bash

                && 表示如果成功執行下一個命令 &&在 bash 中

                && says if successfully do the next command && in bash

                這篇關于如何從以前的 typescript(.ts) 文件中刪除已編譯的 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 任務)
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)

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

                  <bdo id='ruwGw'></bdo><ul id='ruwGw'></ul>

                    • <legend id='ruwGw'><style id='ruwGw'><dir id='ruwGw'><q id='ruwGw'></q></dir></style></legend>
                        <tbody id='ruwGw'></tbody>
                      <tfoot id='ruwGw'></tfoot>
                        <i id='ruwGw'><tr id='ruwGw'><dt id='ruwGw'><q id='ruwGw'><span id='ruwGw'><b id='ruwGw'><form id='ruwGw'><ins id='ruwGw'></ins><ul id='ruwGw'></ul><sub id='ruwGw'></sub></form><legend id='ruwGw'></legend><bdo id='ruwGw'><pre id='ruwGw'><center id='ruwGw'></center></pre></bdo></b><th id='ruwGw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ruwGw'><tfoot id='ruwGw'></tfoot><dl id='ruwGw'><fieldset id='ruwGw'></fieldset></dl></div>
                        1. 主站蜘蛛池模板: 农村黄性色生活片 | 国产精品不卡视频 | 欧美一区不卡 | 久久精品国产免费看久久精品 | 欧洲高清转码区一二区 | 国产精品成人一区二区三区吃奶 | 亚洲精品一区二区 | 精品中文字幕久久 | 搞av.com| 国产精品久久久久久久毛片 | 色婷婷综合在线观看 | 久久久久国 | 国产精品久久久久久久久久久久 | 国产精品99久久久久 | 黑人久久久 | 成人免费视频网站在线看 | 日韩在线国产精品 | 懂色av色香蕉一区二区蜜桃 | 国产在线观看 | 在线一区二区观看 | 中文成人在线 | 久久精品日产第一区二区三区 | av香蕉| 国产在线激情视频 | 亚洲精品一二三区 | 妖精视频一区二区三区 | 国产在线精品一区二区 | 日韩中文字幕在线视频观看 | 国产日韩欧美在线 | 精品国产精品三级精品av网址 | 国产精品久久久乱弄 | 在线亚洲欧美 | 日韩中文字幕网 | 干一干操一操 | 亚洲国产精品一区 | 免费一级黄 | 欧美激情久久久久久 | 国产精品久久久久久一区二区三区 | 国产综合av | 97碰碰碰 | 久久成人在线视频 |