{"id":21426338,"url":"https://github.com/code-raisan/easyprepare","last_synced_at":"2025-03-16T21:15:15.952Z","repository":{"id":222911899,"uuid":"758730473","full_name":"code-raisan/EasyPrepare","owner":"code-raisan","description":"This tool is designed to enable efficient project setup (generation of env files, etc.).","archived":false,"fork":false,"pushed_at":"2024-02-17T00:12:48.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T20:04:14.008Z","etag":null,"topics":["cli","cli-tool","developer-tools"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/easy-prepare","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-raisan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-16T23:56:55.000Z","updated_at":"2024-02-19T01:08:23.000Z","dependencies_parsed_at":"2024-02-17T00:25:30.563Z","dependency_job_id":null,"html_url":"https://github.com/code-raisan/EasyPrepare","commit_stats":null,"previous_names":["code-raisan/easyprepare"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-raisan%2FEasyPrepare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-raisan%2FEasyPrepare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-raisan%2FEasyPrepare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-raisan%2FEasyPrepare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-raisan","download_url":"https://codeload.github.com/code-raisan/EasyPrepare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933454,"owners_count":20370988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-tool","developer-tools"],"created_at":"2024-11-22T21:41:31.151Z","updated_at":"2025-03-16T21:15:15.925Z","avatar_url":"https://github.com/code-raisan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Prepare\n\nプロジェクトの設定(envファイル等の生成)を効率的に行えるようにするためのツールです。\n\n## Use\n\n`.easy-prepare.js` をプロジェクトのルートに作成して以下のフォーマットで記述してください\n\n```js\nmodule.exports = {\n  version: 1,\n  workflows: {\n    select_environment: {\n      name: \"Select environment\",\n      type: \"select\",\n      options: [\n        { name: \"Develop\", returnval: \"development\", do: (utils) =\u003e utils.copy(\".env.sample\", \".env.development\") },\n        { name: \"Production\", returnval: \"production\", do: (utils) =\u003e utils.copy(\".env.sample\", \".env.production\") }\n      ]\n    },\n    prepare_smtp_testing: {\n      name: \"Ues SMTP testing?\",\n      type: \"select\",\n      filter: (workflows) =\u003e workflows.select_environment.options === \"development\",\n      options: [\n        { name: \"Yes\", do: (utils, workflows) =\u003e utils.envedit(\"SMTP_SERVER_HOST\", \"smtp.com\",`.env.${workflows.select_environment.options}`) },\n        { name: \"No\" },\n      ]\n    },\n    set_default_developing_value: {\n      name: \"Set default developing value.\",\n      type: \"task\",\n      filter: (workflows) =\u003e workflows.select_environment.options === \"development\",\n      do: () =\u003e{ console.log(\"DEFAULT RUN\") }\n    }\n  }\n};\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-raisan%2Feasyprepare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-raisan%2Feasyprepare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-raisan%2Feasyprepare/lists"}