是否可以在没有安装node.js和NPM的情况下将Angular2或Aurelia与IIS一起使用? [英] Is it possible to use Angular2 or Aurelia with IIS and without having node.js and NPM installed?

查看:80
本文介绍了是否可以在没有安装node.js和NPM的情况下将Angular2或Aurelia与IIS一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我询问是否可以在未安装node.js和NPM的情况下使用Angular2或Aurelia的原因是因为我们只能在工作中部署到Windows IIS服务器.我们不能在服务器上安装Node.Js或NPM,但是我想利用A框架的生产力,但是从多元化的角度来看,我需要安装Node和NPM.

The reason why I ask if either Angular2 or Aurelia can be used without having node.js and NPM installed is because we can only deploy to windows IIS servers at work. We cannot have Node.Js or NPM installed on the servers, but I'd like to leverage the productivity of either A-framework, but it looks from pluralsight courses and suchlike that I need to have Node and NPM installed.

理想情况下,我想使用Visual Studio中的TypeScript开发我的Aurelia或Angular 2应用程序.如果没有Node/NPM,这是否可能?或者我错过了窍门?

Ideally I'd like to develop my Aurelia or Angular 2 app using TypeScript in Visual Studio. Is this possible without Node/NPM or am I missing a trick ?

推荐答案

您可以很好地在IIS上部署Angular2或Aurelia应用程序,并且不需要运行Node.

You can very well deploy Angular2 or Aurelia application on IIS , and it does not need Node to run.

话虽如此,要获得代码的部署就绪版本,您需要编译Typescript \ Less文件,可能是想通过捆绑\最小化代码来进行优化.

Having said that, To reach the deployment ready version of your code, you need to compile Typescript\Less files, may be you want to optimize using bundling\minifying your code.

要执行此操作,您需要某种类型的任务运行器,Gulp \ Grunt非常擅长于此.有Angular-Cli也可以解决这个问题.这些工具在Node上运行.因此,对于开发,您需要它.

To do this you need some sort of Task runner, Gulp\Grunt are very good in doing that. There is Angular-Cli which also takes care of this. And these tool runs on Node. So for development you need it.

但是最终的应用程序将只是JS \ HTML \ CSS或一些不需要Node的静态内容,它也可以从IIS提供.

But the final application will be just JS\HTML\CSS or some static content you don't need Node, it can be served from IIS also.

这篇关于是否可以在没有安装node.js和NPM的情况下将Angular2或Aurelia与IIS一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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