{"id":16216890,"url":"https://github.com/imomaliev/library-template","last_synced_at":"2025-04-07T23:14:13.777Z","repository":{"id":76827975,"uuid":"465386774","full_name":"imomaliev/library-template","owner":"imomaliev","description":"Template for creating library repository","archived":false,"fork":false,"pushed_at":"2022-07-16T16:00:51.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T00:23:06.557Z","etag":null,"topics":["editorconfig","pre-commit","template","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/imomaliev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-02T16:37:32.000Z","updated_at":"2022-03-02T16:47:35.000Z","dependencies_parsed_at":"2023-03-01T06:45:18.426Z","dependency_job_id":null,"html_url":"https://github.com/imomaliev/library-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imomaliev%2Flibrary-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imomaliev%2Flibrary-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imomaliev%2Flibrary-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imomaliev%2Flibrary-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imomaliev","download_url":"https://codeload.github.com/imomaliev/library-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744333,"owners_count":20988783,"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":["editorconfig","pre-commit","template","terraform"],"created_at":"2024-10-10T11:23:16.582Z","updated_at":"2025-04-07T23:14:13.753Z","avatar_url":"https://github.com/imomaliev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# library-template\n\nTemplate for creating library repository\n\n## Usage\n\nClone project with [`degit`](https://github.com/Rich-Harris/degit)\n\n```console\n$ degit imomaliev/library-template/template library_name\n$ cd library_name\n```\n\n### Configure terraform\n\n1. Update `_terraform/main.tf`. Available options are [here](https://github.com/imomaliev/terraform-registry/tree/main/modules/github)\n\n    Example:\n\n    ```terraform\n    module \"github\" {\n      # https://github.com/imomaliev/terraform-registry/tree/main/modules/github\n      source = \"git@github.com:imomaliev/terraform-registry.git//modules/github\"\n\n      token               = var.github_token\n      project_name        = \"Library Name\"\n      project_description = \"Discription of Library Name\"\n      topics              = [\"template\", \"terraform\", \"pre-commit\", \"editorconfig\"]\n    }\n    ```\n\n1. Copy `tfvars` file from template\n    ```console\n    $ cp _terraform/terraform.tfvars{.template,}\n    ```\n1. Add your github token to `_terraform/terraform.tfvars`\n1. Run terraform\n    ```console\n    $ cd _terraform\n    $ terraform init -upgrade\n    $ terrafom plan -out\n    $ terraform apply\n    ```\n1. Initialize git repo from created repo by terraform\n    ```console\n    $ git init\n    $ git clone git@github.com:user/library_name.git\n    $ git fetch\n    $ git checkout -B main origin/main\n    ```\n1. Commit template files\n    ```console\n    $ pre-commit install\n    $ git add .\n    $ git commit -m 'degit imomaliev/library-template/template'\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimomaliev%2Flibrary-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimomaliev%2Flibrary-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimomaliev%2Flibrary-template/lists"}