【发布时间】:2013-10-04 03:32:30
【问题描述】:
我正在编写 Windows Azure 移动服务后台作业。如果我使用 Azure 提供的默认值以外的 node.js 模块,如果我有根 package.json,我可以在提交到我的 Azure git 存储库时省略 node_modules 文件夹吗? Azure 会自动下载这些包吗?
更新:为澄清起见,我有以下回购(对不起,这是凭记忆,不要在我面前)
> <root repo dir>
> \service
> \api
> \scheduler
> \node_modules
> \npmmodule1
> \npmmodule2 .. etc
> package.json <-- generated with npm init
> myJob.js
我在问以下是否足以提交和部署
> <root repo dir>
> \service
> \api
> \scheduler
> package.json <-- generated with npminit
> myJob.js
【问题讨论】:
-
我不明白为什么不呢?在我看来,这更像是一个应该从存储库中省略节点模块的问题吗?
标签: node.js azure azure-mobile-services