{"_id":"@codegenius/template-plugin","_rev":"3-d8c2ce8546c5dd3b9229e1b75d0adb66","name":"@codegenius/template-plugin","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@codegenius/template-plugin","version":"0.0.1","description":"基于 CodeGenius 的 template 插件","author":{"name":"OSpoon","email":"zxin088@gmail.com","url":"https://github.com/OSpoon"},"license":"MIT","homepage":"https://github.com/FE-CodeGenius/codegenius-template-plugin#readme","repository":{"type":"git","url":"git+https://github.com/FE-CodeGenius/codegenius-template-plugin.git"},"bugs":{"url":"https://github.com/FE-CodeGenius/codegenius-template-plugin/issues"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14.17"},"scripts":{"prepare":"esno scripts/prepare.ts","build":"rollup -c","release":"release-it"},"keywords":[],"devDependencies":{"@release-it/conventional-changelog":"^7.0.2","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.5","@types/fs-extra":"^11.0.2","@typescript-eslint/eslint-plugin":"^6.7.4","code-genius":"^0.4.29","eslint-plugin-simple-import-sort":"^10.0.0","esno":"^0.17.0","release-it":"^16.2.1","rollup":"^4.0.2","rollup-plugin-clear":"^2.0.7","rollup-plugin-typescript2":"^0.36.0","simple-git-hooks":"^2.9.0"},"simple-git-hooks":{"pre-commit":"npx esno scripts/lint-script.ts","commit-msg":"codeg verify"},"gitHead":"14c243c649c0ad341698b56ebd8405d2ac8cf154","_id":"@codegenius/template-plugin@0.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-LeE0yk6CFw3o2RC7KZEyN/TWldlEW7i8yo1G1qeiWsOGjAZch+tcZosZmeBjZr/LAWVwbkZiGTYeFKKeQK7A4g==","shasum":"661d7491d7551eeb185ba9f79aca6463c844d4c3","tarball":"https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.1.tgz","fileCount":52,"unpackedSize":37550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzZUI8lmUN/3uSr/ZaRu4UhoZtawuhAUpulfXL7r8I/AiEAoy2FNDFi1q4JCtZoSsWDmsIFwAE5tAVRGIDYaGcC7gE="}]},"_npmUser":{"name":"zhangxin_n22","email":"1825203636@qq.com"},"directories":{},"maintainers":[{"name":"zhangxin_n22","email":"1825203636@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template-plugin_0.0.1_1696749464995_0.9945403298152"},"_hasShrinkwrap":false},"0.0.2":{"name":"@codegenius/template-plugin","version":"0.0.2","description":"基于 CodeGenius 的 template 插件","author":{"name":"OSpoon","email":"zxin088@gmail.com","url":"https://github.com/OSpoon"},"license":"MIT","homepage":"https://github.com/FE-CodeGenius/codegenius-template-plugin#readme","repository":{"type":"git","url":"git+https://github.com/FE-CodeGenius/codegenius-template-plugin.git"},"bugs":{"url":"https://github.com/FE-CodeGenius/codegenius-template-plugin/issues"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14.17"},"scripts":{"prepare":"esno scripts/prepare.ts","build":"rollup -c","release":"release-it"},"keywords":[],"devDependencies":{"@release-it/conventional-changelog":"^7.0.2","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.5","@types/fs-extra":"^11.0.2","@typescript-eslint/eslint-plugin":"^6.7.4","code-genius":"^0.4.29","eslint-plugin-simple-import-sort":"^10.0.0","esno":"^0.17.0","release-it":"^16.2.1","rollup":"^4.0.2","rollup-plugin-clear":"^2.0.7","rollup-plugin-typescript2":"^0.36.0","simple-git-hooks":"^2.9.0"},"simple-git-hooks":{"pre-commit":"npx esno scripts/lint-script.ts","commit-msg":"codeg verify"},"gitHead":"df096b946c336b98667d961da968636d0e9e5b16","_id":"@codegenius/template-plugin@0.0.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-DpcRC6rOg6w1LlnhgEWp1ObgCJa/B0rxWU5AUaGhENJWf3m47Lsca5mPk5sfHXaKZdo2HG/RpBe5aaHdoP12zA==","shasum":"7c06395b5dd35279298f15d7565f543b8456db09","tarball":"https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.2.tgz","fileCount":52,"unpackedSize":37605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfa6dR8E4Mxrcv58718w91qN0Icz+AsdczwXGJX3TWCAIgFDFt4rJDT01+fmouwi62aqEe5K5mbHFbwqtknhlIzak="}]},"_npmUser":{"name":"zhangxin_n22","email":"1825203636@qq.com"},"directories":{},"maintainers":[{"name":"zhangxin_n22","email":"1825203636@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template-plugin_0.0.2_1696757369847_0.4442266664287633"},"_hasShrinkwrap":false},"0.0.3":{"name":"@codegenius/template-plugin","version":"0.0.3","description":"基于 CodeGenius 的 template 插件","author":{"name":"OSpoon","email":"zxin088@gmail.com","url":"https://github.com/OSpoon"},"license":"MIT","homepage":"https://github.com/FE-CodeGenius/codegenius-template-plugin#readme","repository":{"type":"git","url":"git+https://github.com/FE-CodeGenius/codegenius-template-plugin.git"},"bugs":{"url":"https://github.com/FE-CodeGenius/codegenius-template-plugin/issues"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14.17"},"scripts":{"prepare":"npx codeg hooks","build":"rollup -c","release":"dotenv release-it --ci"},"keywords":[],"devDependencies":{"@codegenius/format-plugin":"^0.0.3","@codegenius/git-user-plugin":"^0.0.2","@codegenius/hooks-plugin":"^0.1.0","@codegenius/impsort-plugin":"^0.0.2","@codegenius/verify-plugin":"^0.0.1","@release-it/conventional-changelog":"^7.0.2","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.5","@types/fs-extra":"^11.0.2","@typescript-eslint/eslint-plugin":"^6.7.4","code-genius":"^0.4.32","dotenv-cli":"^7.3.0","eslint-plugin-simple-import-sort":"^10.0.0","esno":"^0.17.0","release-it":"^16.2.1","rollup":"^4.0.2","rollup-plugin-clear":"^2.0.7","rollup-plugin-typescript2":"^0.36.0","simple-git-hooks":"^2.9.0"},"simple-git-hooks":{"pre-commit":"npx esno scripts/lint-script.ts","commit-msg":"npx codeg verify"},"gitHead":"b4383f5a5514555983391c596452afd1bedc8a68","_id":"@codegenius/template-plugin@0.0.3","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Ic4mPgXX0nsGIHlRCPHB8G04889dTUI9ttM+1cFJZJsKLRxqCwf7OMP12nW2YEhCS6FSwfO7Nk0vn2HVK41EYw==","shasum":"0aa8a8f2a32a4f5a933c39f3f6d4efb800dc87ea","tarball":"https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.3.tgz","fileCount":52,"unpackedSize":38217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEs9RZ2lRb0zOYNyW392qjqMA7/GhRsThvr27j+etB88AiAA8v09AB+E9yEgRpkRv3GFpIy3MGCwP+68QWmQbaBZdw=="}]},"_npmUser":{"name":"zhangxin_n22","email":"1825203636@qq.com"},"directories":{},"maintainers":[{"name":"zhangxin_n22","email":"1825203636@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template-plugin_0.0.3_1696831014977_0.10243653377742978"},"_hasShrinkwrap":false},"0.0.4":{"name":"@codegenius/template-plugin","version":"0.0.4","description":"基于 CodeGenius 的 template 插件","author":{"name":"OSpoon","email":"zxin088@gmail.com","url":"https://github.com/OSpoon"},"license":"MIT","homepage":"https://github.com/FE-CodeGenius/codegenius-template-plugin#readme","repository":{"type":"git","url":"git+https://github.com/FE-CodeGenius/codegenius-template-plugin.git"},"bugs":{"url":"https://github.com/FE-CodeGenius/codegenius-template-plugin/issues"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","engines":{"node":">=14.17"},"scripts":{"prepare":"npx codeg hooks","build":"rollup -c","release":"dotenv release-it --ci"},"keywords":[],"devDependencies":{"@codegenius/format-plugin":"^0.0.3","@codegenius/git-user-plugin":"^0.0.2","@codegenius/hooks-plugin":"^0.1.0","@codegenius/impsort-plugin":"^0.0.2","@codegenius/verify-plugin":"^0.0.1","@release-it/conventional-changelog":"^7.0.2","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.5","@types/fs-extra":"^11.0.2","@typescript-eslint/eslint-plugin":"^6.7.4","code-genius":"^0.4.36","dotenv-cli":"^7.3.0","eslint-plugin-simple-import-sort":"^10.0.0","esno":"^0.17.0","release-it":"^16.2.1","rollup":"^4.0.2","rollup-plugin-clear":"^2.0.7","rollup-plugin-typescript2":"^0.36.0","simple-git-hooks":"^2.9.0"},"simple-git-hooks":{"pre-commit":"npx esno scripts/lint-script.ts","commit-msg":"npx codeg verify"},"gitHead":"a523ba07ea0fb392a5a0838edacf8d1abd1aa035","_id":"@codegenius/template-plugin@0.0.4","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-lCzY6bhDmGAhCgFKs30l4OgrpfgunxA59HvFpPArlMqpy3TRs3W90JQe4P2zFghiBIeBpSkFHRyGGvwAaPWNCQ==","shasum":"4c2d53eeeff720185b6f0284bb7d035acfb8fbe9","tarball":"https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.4.tgz","fileCount":52,"unpackedSize":38396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH299bPGtNn8W7rsVwpFk05+cxRKcbGQlrUc0o4sSf/dAiEAwIQTCf1iMIU2HzfIZqOfAn8QR8wqIYyEvzOk1eT1rVE="}]},"_npmUser":{"name":"zhangxin_n22","email":"1825203636@qq.com"},"directories":{},"maintainers":[{"name":"zhangxin_n22","email":"1825203636@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/template-plugin_0.0.4_1696928323900_0.7823498677391267"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-08T07:17:44.895Z","0.0.1":"2023-10-08T07:17:45.248Z","modified":"2023-10-10T08:58:44.327Z","0.0.2":"2023-10-08T09:29:30.022Z","0.0.3":"2023-10-09T05:56:55.138Z","0.0.4":"2023-10-10T08:58:44.120Z"},"maintainers":[{"name":"zhangxin_n22","email":"1825203636@qq.com"}],"description":"基于 CodeGenius 的 template 插件","homepage":"https://github.com/FE-CodeGenius/codegenius-template-plugin#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/FE-CodeGenius/codegenius-template-plugin.git"},"author":{"name":"OSpoon","email":"zxin088@gmail.com","url":"https://github.com/OSpoon"},"bugs":{"url":"https://github.com/FE-CodeGenius/codegenius-template-plugin/issues"},"license":"MIT","readme":"# @codegenius/template-plugin\n\n基于 **CodeGenius** 内置模板快速创建新项目, 仅支持询问模式;\n\n使用场景: 用于创建青睐 **CodeGenius** 模板的新的项目 (目前模板为 `vitejs` 内置, 主要在模拟功能, 模板后续更新后可用).\n\n## 安装\n\n``` bash\nnpm i @codegenius/template-plugin -D\n```\n\n```javascript\nimport { defineConfig } from \"code-genius\";\nimport { templateInstaller } from \"@codegenius/template-plugin\";\n\nexport default defineConfig({\n  plugins: [\n    templateInstaller(),\n  ],\n});\n```\n\n## 使用\n\n### 询问模式\n\n```bash\n# 启动询问模式(默认)\ncodeg template\n```\n\n```\n# 询问过程\n1. 请输入项目名称\n2. 请输入 package name\n3. 请选择下列的有效模板\n4. 请选择下列的有效变体\n```\n\n```bash\n# 启动询问模式(带参)\ncodeg template -n project-salkdyfT -f vue\n```\n\n| 选项                                | 描述     |\n| ----------------------------------- | -------- |\n| -n, --project-name \\<project-name\\> | 项目名称 |\n| -f, --framework \\<framework\\>       | 项目框架 |\n\n```\n# 询问过程\n1. 请输入项目名称 (-n 输入则仅需确认)\n2. 请输入 package name\n3. 请选择下列的有效模板 (-f 输入有效则跳过)\n4. 请选择下列的有效变体\n```\n","readmeFilename":"README.md"}