我正在关注Angular 2快速入门教程.以下是我的文件夹结构 -
??? gulpfile.js
??? index.html
??? js
| ??? app.component.js
| ??? boot.js
??? source
| ??? app.component.ts
| ??? boot.ts
??? node_modules
??? module 1
??? module 2
Run Code Online (Sandbox Code Playgroud)
我的打字稿文件在source/目录中.我正在编译它到js/目录.我正在使用gulp-typescript.
问题是,当我举个例子,重命名文件boot.ts到bootstrap.ts和重新编译,相应的bootstrap.js文件被创建,但旧的boot.js文件仍然保留在js /目录.
现在文件夹结构如下所示 -
??? gulpfile.js
??? index.html
??? js
| ??? app.component.js
| ??? bootstrap.js
| ??? boot.js
??? source
| ??? app.component.ts
| ??? bootstrap.ts
??? node_modules
??? module 1
??? module …Run Code Online (Sandbox Code Playgroud)