久久久久久久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 文件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                限時送ChatGPT賬號..

                我正在關(guān)注 Angular 2 快速入門 教程.以下是我的文件夾結(jié)構(gòu) -

                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.

                問題是當(dāng)我例如將文件 boot.ts 重命名為 bootstrap.ts 并再次編譯時,對應(yīng)的 bootstrap.js 文件已創(chuàng)建,但舊的 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.

                現(xiàn)在文件夾結(jié)構(gòu)如下-

                ├── 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 任務(wù)自動刪除這個 boot.js.如何做到這一點(diǎn)?

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

                推薦答案

                我來這里是看到標(biāo)題,并且將 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 構(gòu)建腳本前加上 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

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

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

                這篇關(guān)于如何從以前的 typescript(.ts) 文件中刪除已編譯的 JS 文件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運(yùn)算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運(yùn)行任務(wù)?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運(yùn)行 Gulp 任務(wù))
                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在线播放 | 国产高潮好爽受不了了夜夜做 | 免费在线播放黄色 | 中国黄色在线视频 | 91亚洲精品在线 | 欧美日韩亚洲系列 | 欧美精品一区二区三区在线 | 久草免费电影 | www.日本三级 | av三级| 久久久久久久久久久久久9999 | 国产中文在线 | 一区二区三区免费看 | 中文字幕一区二区在线观看 | 国产一区二区在线免费观看 | 国产精品无码专区在线观看 | 国产精品99免费视频 | 国产精品1区2区3区 一区中文字幕 | 欧美精品区| 综合视频在线 | 99成人 | 国产一区二区在线免费观看 | 久久爆操 | 久久99精品久久久久蜜桃tv | 超碰在线观看97 | 国产一区二| 成人在线观看免费 | 尤物在线精品视频 | 日韩一及片 | 成人av一区 | 国产电影精品久久 | 日本超碰 |