跳转到主要内容

NiteoWeb项目模板。

项目描述

bobtemplates.niteoweb 为Plone和Pyramid项目提供 mr.bob 模板以生成软件包。模板旨在被他人、个人和团队重复使用。所有模板都包含验证哪些文件和文件夹被生成的测试,以及在实际生成的软件包上运行的测试。

可用的模板包括

  • Plone:一个功能齐全的Plone附加组件模板,包括

    • zc.buildout最佳实践

    • GenericSetup安装配置文件

    • Zope 3浏览器层

    • z3c.jbot 覆盖文件夹

    • static/ 资源目录用于提供静态资源(图像、CSS、JS等)

    • Sphinx 文档

    • 具有良好测试覆盖率的测试套件

    • Travis CI 集成

  • Pyramid:一个功能齐全的Pyramid项目模板,包括

    • zc.buildout最佳实践

    • 开发时使用SQLite,生产时使用PostgreSQL

    • 带有Chameleon模板的示例视图

    • 示例模型

    • static 资源填充了Twitter Bootstrap美观元素

    • Sphinx 文档

    • 示例测试套件

    • Travis CI 持续集成

    • Heroku 持续部署

全局设置

一些对Bob问题的回答可以根据全局配置预先填写,这样您就不必每次都回答。您可以将此配置存储在本地计算机上,或者如果您在团队中工作,可以存储在网络上。例如,在NiteoWeb Ltd.,我们始终可以在http://www.niteoweb.com/mrbob.ini找到这些答案。

创建Plone插件包

要创建Plone插件,首先安装(或升级到最新版)mr.bob和bobtemplates.niteoweb包,然后运行mrbob。

$ easy_install -U mr.bob
$ easy_install -U bobtemplates.niteoweb
$ mrbob --config ~/.mrbob.ini -O collective.foo bobtemplates:plone

然后回答一些问题

Welcome to mr.bob interactive mode. Before we generate directory structure,
some questions need to be answered.

Answer with a question mark to display help.
Value in square brackets at the end of the questions present default value
if there is no answer.


--> Name of the package: foo
(namespace is already set in the ~/.mrbob.ini)

...

您的包就准备好了!让我们构建开发环境,看看所有测试是否通过

$ cd collective.foo
$ make

太好了,您现在可以以前台模式启动Zope:bin/instance fg。一旦Zope启动,将浏览器指向https://127.0.0.1:8080,以admin:admin登录,在插件列表中选择collective.foo创建一个新的Plone站点,voilà:一个安装了您自己的插件的Plone站点。

现在您可以为视图和模板添加一些自定义,或者也许可以编写一些CSS和JS。

创建Pyramid项目

要创建Pyramid项目,首先安装(或升级到最新版)mr.bob和bobtemplates.niteoweb包,然后运行mrbob。

$ easy_install -U mr.bob
$ easy_install -U bobtemplates.niteoweb
$ mrbob --config ~/.mrbob.ini -O foo bobtemplates:pyramid

然后回答一些问题

Welcome to mr.bob interactive mode. Before we generate directory structure,
some questions need to be answered.

Answer with a question mark to display help.
Value in square brackets at the end of the questions present default value
if there is no answer.


--> Name of the package: foo
...

您的包就准备好了!让我们构建开发环境,看看所有测试是否通过

$ cd foo
$ make

太好了,您现在可以启动Pyramid了

$ make db
$ bin/pserve etc/development.ini

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

bobtemplates.niteoweb-0.3.zip (170.0 kB 查看哈希值)

上传时间

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面