{"id":27601164,"url":"https://github.com/smallcase/sc-fe-bite","last_synced_at":"2025-08-30T16:12:38.304Z","repository":{"id":285939706,"uuid":"932556757","full_name":"smallcase/sc-fe-bite","owner":"smallcase","description":"Babel Integrated typescript enabler","archived":false,"fork":false,"pushed_at":"2025-04-03T12:58:13.000Z","size":268,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-28T09:18:22.736Z","etag":null,"topics":["babel","transformer","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/smallcase.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":"2025-02-14T05:22:30.000Z","updated_at":"2025-04-08T14:08:00.000Z","dependencies_parsed_at":"2025-04-03T13:47:12.173Z","dependency_job_id":null,"html_url":"https://github.com/smallcase/sc-fe-bite","commit_stats":null,"previous_names":["smallcase/sc-fe-bite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smallcase/sc-fe-bite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Fsc-fe-bite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Fsc-fe-bite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Fsc-fe-bite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Fsc-fe-bite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallcase","download_url":"https://codeload.github.com/smallcase/sc-fe-bite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallcase%2Fsc-fe-bite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272873216,"owners_count":25007489,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["babel","transformer","typescript"],"created_at":"2025-04-22T17:16:20.925Z","updated_at":"2025-08-30T16:12:38.288Z","avatar_url":"https://github.com/smallcase.png","language":"JavaScript","readme":"# BITE\n\n`bite` is a CLI tool designed to transform TypeScript (`.ts` \u0026 `.tsx`) files into JavaScript using Babel while also generating TypeScript declaration files (`.d.ts`). It supports monorepos, watch mode, caching, and optimized TypeScript compilation.\n\n## Features\n\n- Transforms `.ts` and `.tsx` files to `.js` and `.jsx` using `Babel`\n- Generates TypeScript declaration files (`.d.ts`)\n- Supports a custom Babel and TypeScript configuration\n- Watch mode for automatic re-transpilation on file changes\n- Cleans the output directory before transpiling (optional)\n- Works seamlessly within a monorepo setup\n- Lightweight and fast with debounced file watching\n- Includes a \"witty\" mode for fun logging messages\n\n## Installation\n\n```sh\nnpm install @smallcase/bite\n```\n\n## Usage\n\n### Basic Command\n\n```sh\nbite-tsx-transform --src ./lib --dist ./dist\n```\n\n### Options\n\n| Option          | Alias | Type    | Description                                     | Required |\n| --------------- | ----- | ------- | ----------------------------------------------- | -------- |\n| `--src`         |       | string  | Path to the source directory (default: `src/`)  | ❌ No    |\n| `--dist`        |       | string  | Path to the output directory (default: `dist/`) | ❌ No    |\n| `--watch`       | `-w`  | boolean | Enables watch mode                              | ❌ No    |\n| `--clean`       |       | boolean | Cleans the output directory before transpiling  | ❌ No    |\n| `--tsConfig`    |       | string  | Path to custom `tsconfig.json`                  | ❌ No    |\n| `--babelConfig` |       | string  | Path to custom `babel.config.json`              | ❌ No    |\n| `--version`     |       | boolean | Show CLI version                                | ❌ No    |\n| `--witty`       |       | boolean | Enables witty logging messages                  | ❌ No    |\n\n## Examples\n\n### Transform TypeScript Files\n\n```sh\nbite-tsx-transform  --src ./src --dist ./build\n```\n\n### Transform and Watch for Changes\n\n```sh\nbite-tsx-transform  --src ./src --dist ./build --watch\n```\n\n### Clean Output Directory Before Transpiling\n\n```sh\nbite-tsx-transform --src ./src --dist ./build --clean\n```\n\n### Use Custom TypeScript Config\n\n```sh\nbite-tsx-transform  --src ./lib --dist ./build --tsConfig ./tsconfig.custom.json\n```\n\n### Use Custom Babel Config\n\n```sh\nbite-tsx-transform --src ./lib --dist ./build --babelConfig ./babel.custom.json\n```\n\n### Enable Witty Logging\n\n```sh\nbite-tsx-transform  --src ./lib --dist ./build --witty\n```\n\n## Watch Mode\n\nWhen using `--watch`, the CLI will monitor the source directory for changes and automatically recompile files when modifications are detected. The file-watching is debounced to prevent excessive rebuilds.\n\n## Logging \u0026 Error Handling\n\n- Uses `Logger` for structured logging.\n- Displays errors clearly in case of transformation failure.\n- Cleans the output directory if transformation fails.\n- Supports an optional witty logging mode (`--witty`) for fun messages.\n\n## License\n\nMIT License.\n\n**NOTE** - The old command `tsx-transform` has been deprecated and will be removed in next major version\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallcase%2Fsc-fe-bite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallcase%2Fsc-fe-bite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallcase%2Fsc-fe-bite/lists"}