发布到Azure Cloud Service会忽略TypeSript生成的JavaScript文件 [英] Publish to Azure Cloud Service ignores TypeSript-generated JavaScript files

查看:62
本文介绍了发布到Azure Cloud Service会忽略TypeSript生成的JavaScript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发布了对现有Cloud Service应用程序的重大更新,我已经开始转向使用TypeScript(TS)。

I have just published a major update to an existing Cloud Service application, in which I have started to shift to the use of TypeScript (TS).

当我发布时并执行应用程序,我看到我的应用程序无法找到TS编译器生成的许多JavaScript(JS)文件:

- 开发环境中的文件在那里

- 实际上已经省略了整个文件夹树(例如〜/ scripts / ts / ... / ... / code.js)。

When I publish and execute the application, I see that my app cannot locate many of the JavaScript (JS) files that have been generated by the TS compiler:
- The files are there in the development environment
- In fact an entire folder tree (e.g. ~/scripts/ts/…/…/code.js) has been omitted.

当我手动将JS文件复制到服务器处于正确的文件夹结构中,应用程序正常工作。

When I manualy copy the JS files onto the server in the correct folder structure, the application works.

当我"打包"时本地应用程序并检查文件夹结构,我可以看到文件(和文件夹)不存在。

When I "Package" the application locally and inspect the folder structure, I can see that the files (and folders) do not exist.

如何可以省略这些VITAL文件作为Azure的一部分打包/发布流程?

How is it possible that you can omit such VITAL files as part of the Azure Package/Publish process?

推荐答案

这些文件位于云服务结构中的哪个位置? 

Where are these files located in the structure of the cloud service? 

你能分享截图吗?


这篇关于发布到Azure Cloud Service会忽略TypeSript生成的JavaScript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆