{"id":21519345,"url":"https://github.com/alexwayfer/project_generator","last_synced_at":"2025-04-09T22:09:16.736Z","repository":{"id":38311519,"uuid":"425998058","full_name":"AlexWayfer/project_generator","owner":"AlexWayfer","description":"Base for various CLI generation tools","archived":false,"fork":false,"pushed_at":"2025-04-04T15:13:09.000Z","size":92,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T22:09:10.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexWayfer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"publiccode":null,"codemeta":null}},"created_at":"2021-11-08T21:22:51.000Z","updated_at":"2024-05-16T12:31:41.000Z","dependencies_parsed_at":"2023-02-13T22:01:16.498Z","dependency_job_id":"e238adfb-0482-4fa6-baa8-6a7a7f0d2e2d","html_url":"https://github.com/AlexWayfer/project_generator","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":0.4042553191489362,"last_synced_commit":"15d7bac6eae6808a1f17502cd2dbf27d56c01e12"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fproject_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fproject_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fproject_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fproject_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWayfer","download_url":"https://codeload.github.com/AlexWayfer/project_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"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":[],"created_at":"2024-11-24T00:57:30.132Z","updated_at":"2025-04-09T22:09:16.714Z","avatar_url":"https://github.com/AlexWayfer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Generator\n\n[![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/project_generator?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/project_generator)\n[![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/project_generator/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/project_generator)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/project_generator.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/project_generator)\n[![Inline docs](https://inch-ci.org/github/AlexWayfer/project_generator.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/project_generator)\n[![Gem](https://img.shields.io/gem/v/project_generator.svg?style=flat-square)](https://rubygems.org/gems/project_generator)\n[![License](https://img.shields.io/github/license/AlexWayfer/project_generator.svg?style=flat-square)](LICENSE.txt)\n\nBase for various CLI generation tools.\n\n## Installation\n\nIt's designed as a base for developers to build specific generation CLIs,\nso the common way is to add this gem as a runtime gem dependency.\n\nFor now it even has no executables.\n\n## Usage\n\n```ruby\nrequire 'project_generator'\n\n## Your specific generator, like a gem generator\nmodule GemGenerator\n  ## Inherit it's `Command` (`clamp`s CLI) from `ProjectGenerator::Command`\n  class Command \u003c ProjectGenerator::Command\n    ## You have to define `NAME` and `TEMPLATE` parameters\n    parameter 'NAME', 'name of a new gem'\n    parameter 'TEMPLATE', 'template path of a new gem'\n\n    def execute\n      ## You can execute logic of a specific generator wherever you want\n\n      check_target_directory\n\n      refine_template_parameter if git?\n\n      process_files\n\n      initialize_git\n\n      FileUtils.rm_r @git_tmp_dir if git?\n\n      done\n    end\n  end\nend\n```\n\nBuilt-in options:\n\n*   `-i`, `--indentation`: indentation type in generated project (`tabs` or `spaces`).\n\n    _Note: please, write templates with tabs to have this option working,\n    because we can't safely transform number of spaces into tabs,\n    but we can transform tabs into spaces._\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies.\n\nThen, run `bundle exec rspec` to run the tests.\n\nTo install this gem onto your local machine, run `toys gem install`.\n\nTo release a new version, run `toys gem release %version%`.\nSee how it works [here](https://github.com/AlexWayfer/gem_toys#release).\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub](https://github.com/AlexWayfer/project_generator).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Fproject_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwayfer%2Fproject_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Fproject_generator/lists"}