NiteoWeb项目模板。
项目描述
bobtemplates.niteoweb 为Plone和Pyramid项目提供 mr.bob 模板以生成软件包。模板旨在被他人、个人和团队重复使用。所有模板都包含验证哪些文件和文件夹被生成的测试,以及在实际生成的软件包上运行的测试。
可用的模板包括
全局设置
一些对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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 68553d4bccde760346ae136dc97c2d2591f1dbe562ce09bd42ac6d40a7561d66 |
|
MD5 | 0fe49a552ee478be6d6876f72d1c8dd4 |
|
BLAKE2b-256 | 9ea54c246aae20f35889f8e2b80d03755236df0cd1235d2bdcea023ffc93a8c5 |