{"_id":"7hoo-autocode","_rev":"5-720ac938fda8e580f853ad23da8489d0","name":"7hoo-autocode","description":"代码自动生成器,从代码模板生成业务代码","dist-tags":{"latest":"0.3.7"},"versions":{"0.3.5":{"name":"7hoo-autocode","version":"0.3.5","description":"代码自动生成器,从代码模板生成业务代码","main":"main.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/iamweilee/autocode.git"},"keywords":["autocode","code template","generator","gen"],"bin":{"autocode":"./bin/autocode-cli"},"author":{"name":"RelativeLi"},"license":"(BSD-2-Clause) MIT","bugs":{"url":"https://github.com/iamweilee/autocode/issues"},"homepage":"https://github.com/iamweilee/autocode","gitHead":"820d5bc65e96e8409cd9dd571363118551ba17c4","_id":"7hoo-autocode@0.3.5","_shasum":"29cac23879dfe2f68da3be2f4a9aadcb75f64c6e","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"iamweilee","email":"383523223@qq.com"},"dist":{"shasum":"29cac23879dfe2f68da3be2f4a9aadcb75f64c6e","tarball":"https://registry.npmjs.org/7hoo-autocode/-/7hoo-autocode-0.3.5.tgz","integrity":"sha512-/GLGevt+28XrTT2OlkAtvJvD70AP2WdVa8k1E1d2A1shoDPqEyowO7pA5X5rUi55sft9M7ANST1pjJh+ziP36g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxr/lhdC/UlQlGwcpp8TkbhepYYzL+6G5JfiZYuf0c5gIhAKtuq4jeJTpjZiPB9Ajy4bUprScXIQVWdW1YAG5zyXS+"}]},"maintainers":[{"name":"iamweilee","email":"383523223@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/7hoo-autocode-0.3.5.tgz_1464503097145_0.8440598964225501"}},"0.3.6":{"name":"7hoo-autocode","version":"0.3.6","description":"代码自动生成器,从代码模板生成业务代码","main":"main.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/iamweilee/autocode.git"},"keywords":["autocode","code template","generator","gen"],"bin":{"autocode":"./bin/autocode-cli"},"author":{"name":"RelativeLi"},"license":"(BSD-2-Clause) MIT","bugs":{"url":"https://github.com/iamweilee/autocode/issues"},"homepage":"https://github.com/iamweilee/autocode","gitHead":"820d5bc65e96e8409cd9dd571363118551ba17c4","_id":"7hoo-autocode@0.3.6","_shasum":"8acb4e32811a2cfb26d1310a1a5afeab1a84ff57","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"iamweilee","email":"383523223@qq.com"},"dist":{"shasum":"8acb4e32811a2cfb26d1310a1a5afeab1a84ff57","tarball":"https://registry.npmjs.org/7hoo-autocode/-/7hoo-autocode-0.3.6.tgz","integrity":"sha512-1w8HPHpgMERM8xISRgZCAqRD8xdzoLJZb1vO4VQmI9I30526OLjNgnDo/u1TmM4tHf+Bdm7DswJChteJvGrg4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEvth0HB+5etCs+O8Ba0CCq42HY54SB+ztloKaDzdJ02AiAQw69RCAjhQjROTiqXz8TAAmO0qnKz570o/cyz2EOHJw=="}]},"maintainers":[{"name":"iamweilee","email":"383523223@qq.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/7hoo-autocode-0.3.6.tgz_1464503184783_0.06497141090221703"}},"0.3.7":{"name":"7hoo-autocode","version":"0.3.7","description":"代码自动生成器,从代码模板生成业务代码","main":"main.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/iamweilee/autocode.git"},"keywords":["autocode","code template","generator","gen"],"bin":{"autocode":"./bin/autocode-cli"},"author":{"name":"RelativeLi"},"license":"(BSD-2-Clause) MIT","bugs":{"url":"https://github.com/iamweilee/autocode/issues"},"homepage":"https://github.com/iamweilee/autocode","gitHead":"364ec84021724cef8db2f70ff8bfe8a2f5c56a0c","_id":"7hoo-autocode@0.3.7","_shasum":"a8c9b4f6c2b4ff44c939edeb9b144162b6f9304e","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"iamweilee","email":"383523223@qq.com"},"dist":{"shasum":"a8c9b4f6c2b4ff44c939edeb9b144162b6f9304e","tarball":"https://registry.npmjs.org/7hoo-autocode/-/7hoo-autocode-0.3.7.tgz","integrity":"sha512-JO+iaNDA2/2MykmuodIQSREUyCD3zRg0G/hRY/9LLaAS1wIA4L3l+tgIFr2bah0y/k9+CoIJ8vFBPO9kBL2sbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBP+49EqH/DgcwzhP4TucPcB7zIzO35RiqBXDZt/orJAiEAvz9Zggtf1lL5tdfirjMdrMJcW2QRqXv7rkO6xTtRNNY="}]},"maintainers":[{"name":"iamweilee","email":"383523223@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/7hoo-autocode-0.3.7.tgz_1464503360795_0.10433191619813442"}}},"readme":"autocode\r\n========\r\ncopy template code directory or file into your business module directory.\r\n复制模板代码目录或文件到您的业务模块目录.\r\n\r\n###How to use?\r\n--------\r\n1. 全局安装: <blockquote>npm install -g 7hoo-autocode</blockquote>\r\n2. 进入你的项目工程根目录, 运行: <blockquote>autocode init</blockquote>该方法会在根目录下自动生成__.autocode__文件夹及其子文件夹和文件\r\n3. 进入__.autocode__目录, 编辑__config.json__, 设置您的个人信息、您想自动生成的模块所存放的目标目录和模块名的对应关系  \r\n    配置文件中默认使用__.autocode/tpl__作为您的代码模板目录, 您也通过修改这里的配置实现自定义自己的代码模板目录\r\n4. 把你的代码模板放入上一步配置的代码模板目录里\r\n5. 运行: <blockquote>autocode yourModule yourCustomModuleName</blockquote>\r\n\r\n###Placeholder\r\n--------\r\n使用双花括号作为占位符: `{{yourVariable}}`\r\n\r\n###Filter\r\n占位符支持过滤器, 使用`|`作为过滤器开关: `{{yourVariable|yourFilter}}`  \r\n目前支持五种过滤器: __capitalize__、__xapitalize__、__camelize__、__toLowerCase__、__toUpperCase__\r\n\r\n###Inner Variable\r\n--------\r\nautocode包含如下内置变量: __\\_\\_filepath\\_\\___、__\\_\\_filename\\_\\___、__\\_\\_date\\_\\___、__\\_\\_moduleprefix\\_\\___, 这些变量可用于代码模板内.  \r\n* __\\_\\_moduleprefix\\_\\___: 该变量的值是上一步的 `yourCustomModuleName`\r\n* __\\_\\_filepath\\_\\___: 生成的文件的路径\r\n* __\\_\\_filename\\_\\___: 生成的文件名\r\n* __\\_\\_date\\_\\___: 生成文件的日期\r\n    \r\n###Additional\r\n--------\r\n在上述`How to use?`第5步中的`yourModule`对应于代码模板目录下各子目录名.  \r\n比如 __.autocode/tpl/ui__ 对应的`yourModule`为__ui__\r\n    \r\n\r\n     \r\n\r\n\r\n\r\n","maintainers":[{"name":"iamweilee","email":"383523223@qq.com"}],"time":{"modified":"2022-06-12T14:08:36.657Z","created":"2016-05-29T06:24:59.410Z","0.3.5":"2016-05-29T06:24:59.410Z","0.3.6":"2016-05-29T06:26:26.887Z","0.3.7":"2016-05-29T06:29:23.216Z"},"homepage":"https://github.com/iamweilee/autocode","keywords":["autocode","code template","generator","gen"],"repository":{"type":"git","url":"git+https://github.com/iamweilee/autocode.git"},"author":{"name":"RelativeLi"},"bugs":{"url":"https://github.com/iamweilee/autocode/issues"},"license":"(BSD-2-Clause) MIT","readmeFilename":"README.md"}