Hogan.js可分发文件

时间:2013-12-16 01:13:32

标签: node.js makefile hogan.js

有谁知道如何获取hogan.js 3.0.0 dist文件?

https://github.com/twitter/hogan.js处的文件是应使用Node.js编译的源文件,以便创建可分发的文件。我的问题是如何在Windows上使用Node构建源文件,或者指向预构建的可分发文件的链接。

这里提到了dist文件:https://github.com/twitter/hogan.js/blob/master/lib/hogan.js#L16

1 个答案:

答案 0 :(得分:1)

Hogan使用Makefile创建dist构建并进行测试。这可以通过从NIX终端运行make dist来实现。 https://github.com/twitter/hogan.js/issues/156

如果您想避免使用Makefile,因为您从Windows命令提示符运行node.js或出于任何原因,您需要在Hogan的根目录中创建一个./dist目录。 json然后运行node tools\release.js

确保您已将npm install的dev-dependencies与package.json安装在同一目录中。