{"id":14981874,"url":"https://github.com/smartprix/babel-changed","last_synced_at":"2025-10-29T09:30:23.380Z","repository":{"id":45222767,"uuid":"154447373","full_name":"smartprix/babel-changed","owner":"smartprix","description":"Only compile changed files with babel","archived":false,"fork":false,"pushed_at":"2021-12-30T08:18:32.000Z","size":65,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T00:25:22.410Z","etag":null,"topics":["babel","babeljs","cli","developer-tools","js","nodejs","transpiler"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@smpx/babel-changed","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/smartprix.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":"2018-10-24T06:03:24.000Z","updated_at":"2021-12-30T08:18:35.000Z","dependencies_parsed_at":"2022-09-09T04:50:24.422Z","dependency_job_id":null,"html_url":"https://github.com/smartprix/babel-changed","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartprix%2Fbabel-changed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartprix%2Fbabel-changed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartprix%2Fbabel-changed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartprix%2Fbabel-changed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartprix","download_url":"https://codeload.github.com/smartprix/babel-changed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238795478,"owners_count":19531753,"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":["babel","babeljs","cli","developer-tools","js","nodejs","transpiler"],"created_at":"2024-09-24T14:04:25.272Z","updated_at":"2025-10-29T09:30:18.106Z","avatar_url":"https://github.com/smartprix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-changed\n\n[![Version](https://img.shields.io/npm/v/@smpx/babel-changed.svg)](https://www.npmjs.com/package/@smpx/babel-changed)\n[![Downloads](https://img.shields.io/npm/dm/@smpx/babel-changed.svg)](https://www.npmjs.com/package/@smpx/babel-changed)\n[![License](https://img.shields.io/npm/l/@smpx/babel-changed.svg)](https://www.npmjs.com/package/@smpx/babel-changed)\n[![Dependencies](https://david-dm.org/smartprix/babel-changed/status.svg)](https://david-dm.org/smartprix/babel-changed)\n[![Dev Dependencies](https://david-dm.org/smartprix/babel-changed/dev-status.svg)](https://david-dm.org/smartprix/babel-changed?type=dev)\n\nA command line tool that only compiles changed files with babel.\n\n## Install\n\nGlobally:\n\n```sh\nnpm install -g @smpx/babel-changed\n# OR\nyarn global add @smpx/babel-changed\n```\n\nOr locally:\n\n```sh\nnpm install @smpx/babel-changed --save-dev\n# OR\nyarn add @smpx/babel-changed --dev\n```\n\n## Use\n\nDefault source directory is `src` and default out directory is `dist`\n\n```sh\nbabel-changed\n# Output\n[babel] compiling 1 files\nbabel-changed: 1413.925ms\n```\n\n### See Options \u0026 Help\n\n```sh\nbebel-changed -h\n\nUsage: babel-changed [options]\n\nOptions:\n  -V, --version                output the version number\n  -s, --src [dir]              Specify Source Directory (default: \"src\")\n  -d, --dest [dir]             Specify Destination Directory (default: \"dist\")\n  -f, --file-glob [pattern]    Glob pattern to match files in source directory\n                               (default: \"**/*.*\" (all files))\n  -i, --ignore-glob [pattern]  Glob pattern to match files to ignore\n                               (default: \"**/node_modules/**\" (ignore all files inside node_modules))\n  -e, --extensions \u003cexts\u003e      Extensions to compile (comma separated) (default: \".js\")\n  -m, --source-maps [boolean]  Enable source maps (default: true)\n  -c, --copy [boolean]         Copy files other than .js files (default: true)\n  -h, --help                   output usage information\n```\n\n### Using with options\n\nIf your source directory is `source` destination directory is `out` then use\n\n```sh\nbabel-changed -s source -d out\n```\n\n### Extensions/Typescript support\n\nFor compiling TS/JSX files with babel, change the extensions to compile like below:\n\n```sh\nbabel-changed -e \".js,.ts\"\n```\n\n**NOTE**: Extension of compiled file will always be `.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartprix%2Fbabel-changed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartprix%2Fbabel-changed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartprix%2Fbabel-changed/lists"}