{"id":21304984,"url":"https://github.com/maximilianmairinger/ctp","last_synced_at":"2026-05-10T16:42:28.358Z","repository":{"id":72157408,"uuid":"223742894","full_name":"maximilianMairinger/ctp","owner":"maximilianMairinger","description":"Create typescript project from an interactable template collection","archived":false,"fork":false,"pushed_at":"2024-10-01T12:56:11.000Z","size":732,"stargazers_count":1,"open_issues_count":18,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T08:42:46.030Z","etag":null,"topics":["api","api-client","cli","ctp","project","template","typescript"],"latest_commit_sha":null,"homepage":"","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/maximilianMairinger.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,"publiccode":null,"codemeta":null}},"created_at":"2019-11-24T12:46:44.000Z","updated_at":"2024-10-01T12:56:15.000Z","dependencies_parsed_at":"2023-09-16T20:38:14.131Z","dependency_job_id":"eee70ae2-0eb2-4d46-b10f-76f89391f6ed","html_url":"https://github.com/maximilianMairinger/ctp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2Fctp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2Fctp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2Fctp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2Fctp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximilianMairinger","download_url":"https://codeload.github.com/maximilianMairinger/ctp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243779638,"owners_count":20346750,"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":["api","api-client","cli","ctp","project","template","typescript"],"created_at":"2024-11-21T16:16:33.016Z","updated_at":"2026-05-10T16:42:28.306Z","avatar_url":"https://github.com/maximilianMairinger.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create typescript project\r\n\r\nSelect an template type, answere simple setup questions, start working!\r\n\r\n\u003e Please not that Create typescript project is currently under development and not yet suited for production\r\n\r\n## Get started\r\n\r\nInstall ctp globally\r\n\r\n```\r\n$ npm i ctp -g\r\n```\r\n\r\nRead through the supported template [list](#Templates) and select one. `cd` to your project directory. Execute it like so (module is your selected template)\r\n\r\n```\r\n$ ctp module\r\n```\r\n\r\nYou can also specify a destination\r\n\r\n```\r\n$ ctp module --destination ./your-dir\r\n```\r\n\r\n## Templates\r\n\r\nAs of now there is only the `module` template. A detailed table follows.\r\n\r\n## API \r\n\r\n### Programmatical interface\r\n\r\nWhen installed locally, ctp can be executed via the default method it exports. \r\n\r\n```js\r\nimport ctp from \"ctp\"\r\n\r\nctp(/*projectKind:*/ \"module\",/*options:*/ {destination: \"./your-dir\", name: \"your-project\"})\r\n.then(() =\u003e {\r\n  console.log(\"Done!\")\r\n})\r\n```\r\n\r\nBy default, encountered errors get thrown when using the programmatical interface. This can be disabled by calling `wrapErrors(true)` in order to have CLI like error reports.\r\n\r\n```js\r\nimport ctp, {wrapErrors} from \"ctp\"\r\n\r\nwrapErrors(true)\r\n\r\n//ctp(...)\r\n```\r\n\r\n\r\n### CLI\r\n\r\nAll inqueried options can be given as command line arguaments as well. Only two options (namely `verbose` and `destination`) will not be inqueried if not given. Those have the defaults `verbose: true` and `destination: [current dir]`.\r\n\r\n## Contribute\r\n\r\nAll feedback is appreciated. Write an issue or add a template by creating a pull request.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximilianmairinger%2Fctp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximilianmairinger%2Fctp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximilianmairinger%2Fctp/lists"}