Spine.js&下摆入门 [英] Spine.js & hem getting started

查看:93
本文介绍了Spine.js&下摆入门的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功创建了一个spine应用程序,如spine的入门页所述. 但是,hem不会自动考虑我的更改;我必须手动构建.

I successfully created a spine app as explained on spine's Getting started page. However, hem doesn't automatically take my changes into account ; I have to build manually.

当我关注联系人截屏视频时,我遇到了同样的问题,但这一次根本不构建:

I have the same problem when I follow the contact screencast, but this time hem does not build at all :

 art-mac:spine.contacts art$ hem build

 node.js:201
         throw e; // process.nextTick error, or 'error' event on first tick
               ^
 Cannot find module: spine/lib/tmpl. Have you run `npm install .` ?

我确实运行了'npm install'.

I did run 'npm install .'

令人惊讶的是,当我重新安装spine.contact(在另一个文件夹中)时,我在上一个联系人应用程序中创建的联系人出现在新应用程序中... 选中我的Chrome开发设置中的停用现金".

Surprisingly, when I reinstall spine.contact (in another folder), the contacts I created in the previous contact app appear in the new app... "Disable cash" in my chrome development settings in checked.

推荐答案

当我第一次将hem升级到版本0.1.9时,我遇到了同样的问题.要检查的一件事是在应用程序的公用文件夹中是否有已编译的application.js和application.css文件.似乎这些文件已经存在时,hem服务器将为这些文件提供服务,而不是从源代码进行重新编译.删除这些文件后,hem服务器将使用源文件动态创建应用程序文件.

I was having the same problem when I first upgraded hem to version 0.1.9. One thing to check for is if there are compiled application.js and application.css files in the public folder of your application. It seems like when these files already exist hem server would serve those files instead of recompiling from the sources. Once those files are removed hem server would then use the source files to dynamically create the application files.

但是这种行为与旧版下摆确实有些不同.我能够对hem服务器进行一些更改,使其看起来像以前一样工作,因为hem服务器将始终根据源文件进行编译,而不管应用程序文件是否已存在.我在下一个github存储库 https://github上发布了一个类似问题的代码更改.com/maccman/hem/issues/46#issuecomment-6550866 ,但是我不确定这是否是下摆问题,或者下摆使用的Strata Web服务器库是否有所更改.

But this behavior did seem a bit different from older versions of hem. I was able to make a couple of changes to the hem server so that it seem to work as before, in that the hem server would always compile from the source files regardless if the application files already existed. I posted the code changes on a similar issue at the hem github repository https://github.com/maccman/hem/issues/46#issuecomment-6550866, but I'm not sure if its a hem issue or if something changed with the strata web server library that hem uses.

这篇关于Spine.js&下摆入门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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