如何覆盖 Sproutcore 的命名空间大写
我正在为一个名为“BWUnit”的项目开发 Sproutcore UI。当使用 sc-gen 创建模型等时,它会将生成的文件中的“BWUnit”转换为“BwUnit”。有没有办法防止这种情况发生,这样我就不必手动编辑文件,用“BWUnit”替换“BwUnit”?
I'm working on a Sproutcore UI for a project called "BWUnit". When using sc-gen to create models, etc it converts "BWUnit" to "BwUnit" in the generated files. Is there a way to prevent this from happening so I don't have to manually edit the files, replacing "BwUnit" with "BWUnit"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以不幸的是 SproutCore 不支持你想要的开箱即用的功能。这是他们的命名约定: http://wiki.sproutcore.com/w/page/27759680/FiedNotes-Suggestions%20on%20running%20the%20Sproutcore%20framework%20on%20a% 20Windows%20(7)%20computer%20using%20a%20special
但是,如果您足够勇敢,您可以编辑构建的工具并更改项目和应用程序名称的准备方式:
https://github.com/sproutcore/abbot /blob/master/lib/sproutcore/models/generator.rb#L462
如果这是您想要和需要的功能,请在此处提出问题:
https://github.com/sproutcore/sproutcore/issues
干杯,
约翰内斯
so SproutCore unfortunately doesn't support what you want out of the box. This is their naming convention: http://wiki.sproutcore.com/w/page/27759680/FiedNotes-Suggestions%20on%20running%20the%20Sproutcore%20framework%20on%20a%20Windows%20(7)%20computer%20using%20a%20specific
If you are brave, however, you can edit the built tools and change the behavior of how the project and app names are prepared:
https://github.com/sproutcore/abbot/blob/master/lib/sproutcore/models/generator.rb#L462
If this is a feature you want and need, please open an issue here:
https://github.com/sproutcore/sproutcore/issues
Cheers,
Johannes