{"id":16384788,"url":"https://github.com/saber2pr/saber-tsmod","last_synced_at":"2026-01-23T11:48:05.565Z","repository":{"id":41364428,"uuid":"165391261","full_name":"Saber2pr/saber-tsmod","owner":"Saber2pr","description":"a cli for typescript dev.","archived":false,"fork":false,"pushed_at":"2019-04-11T08:21:07.000Z","size":187,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T11:43:44.156Z","etag":null,"topics":["cli","file","module","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Saber2pr.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}},"created_at":"2019-01-12T13:32:06.000Z","updated_at":"2022-07-01T00:53:24.000Z","dependencies_parsed_at":"2022-09-05T13:11:03.147Z","dependency_job_id":null,"html_url":"https://github.com/Saber2pr/saber-tsmod","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/Saber2pr%2Fsaber-tsmod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fsaber-tsmod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fsaber-tsmod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fsaber-tsmod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saber2pr","download_url":"https://codeload.github.com/Saber2pr/saber-tsmod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248784263,"owners_count":21161085,"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","file","module","typescript"],"created_at":"2024-10-11T04:12:21.672Z","updated_at":"2026-01-23T11:48:05.489Z","avatar_url":"https://github.com/Saber2pr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saber-tsmod\n\n[![types](https://img.shields.io/npm/types/saber-tsmod.svg)](https://github.com/Microsoft/TypeScript)\n[![version](https://img.shields.io/npm/v/saber-tsmod.svg)](https://www.npmjs.com/package/saber-tsmod)\n[![license](https://img.shields.io/npm/l/saber-tsmod.svg)](https://github.com/Saber2pr/saber-tsmod/blob/master/LICENSE)\n[![github](https://img.shields.io/badge/github-saber2pr-blue.svg)](https://github.com/Saber2pr/saber-tsmod)\n\n\u003e a cli for ts dev.\n\n\u003e publish your ts module to npm!\n\n```bash\nnpm install saber-tsmod -g\n```\n\n## Usage:\n\n1. init: init the project files.\n\n2. create `\u003cmodule\u003e`: create a new ts module file and its test file.\n\n3. create ~c `\u003ctsmod.json\u003e`: create src by a tsmod.json file.\n\n4. config `\u003coption\u003e`: create config file of typescript or webpack.\n\n---\n\n```bash\n# create workspace\nmkdir \u003cprojectFolder\u003e\n\ncd \u003cprojectFolder\u003e\n\n# init project.\nsaber-tsmod init\n\n# create module and test file.\nsaber-tsmod create \u003cmodule\u003e\nsaber-tsmod create ~c\n\n# for example:\nsaber-tsmod create hello\n\nsaber-tsmod create shop/shop.service\nsaber-tsmod create shop/shop.controller\nsaber-tsmod create shop/shop.module\n\nsaber-tsmod create shop/shop.service shop/shop.controller shop/shop.module\n\nsaber-tsmod create ~c tsmod.json\n\n# create config file\n# tsconfig.json\nsaber-tsmod config ts\n# webpack.config.json\nsaber-tsmod config webpack\n\n```\n\n\u003e for example(tsmod.json)\n\n```json\n[\n  \"users/controller.ts\",\n  \"users/service.ts\",\n  \"users/module.ts\",\n  \"shop/controller.ts\",\n  \"shop/service.ts\",\n  \"shop/module.ts\"\n]\n```\n\n---\n\n## start\n\n```bash\n# install the typescript and webpack.\nnpm install\n```\n\n```bash\n# auto compile to commonjs.\nnpm start\n\n# auto compile to es5.\nnpm run dev\n\n```\n\n## Author: saber2pr(AK-12)\n\n---\n\n## develope and test\n\n\u003e you should write ts in /src\n\n\u003e ts -(tsc)-\u003e commonjs -(webpack)-\u003e es5\n\n\u003e you should make test in /src/test\n\n\u003e export your core in /src/index.ts!\n\n---\n\n## publish\n\n\u003e Before publish, there are some items in package.json should to be updated below:\n\n1. name\n2. version\n3. description\n4. repository(url)\n5. author\n\n```bash\n# if all is well, try:\nnpm publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Fsaber-tsmod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaber2pr%2Fsaber-tsmod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Fsaber-tsmod/lists"}