{"id":13803856,"url":"https://github.com/babel/grunt-babel","last_synced_at":"2025-05-15T13:05:02.976Z","repository":{"id":21522763,"uuid":"24841962","full_name":"babel/grunt-babel","owner":"babel","description":"Grunt plugin for Babel","archived":false,"fork":false,"pushed_at":"2023-01-03T22:01:19.000Z","size":1028,"stargazers_count":437,"open_issues_count":22,"forks_count":62,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-11T03:06:02.736Z","etag":null,"topics":["babel","grunt-plugin"],"latest_commit_sha":null,"homepage":"https://babeljs.io","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/babel.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},"funding":{"github":["babel"],"open_collective":"babel","custom":"https://gitcoin.co/grants/2906/babel-compiler-for-next-generation-javascript"}},"created_at":"2014-10-06T10:37:53.000Z","updated_at":"2025-03-18T06:49:02.000Z","dependencies_parsed_at":"2023-01-14T00:30:20.110Z","dependency_job_id":null,"html_url":"https://github.com/babel/grunt-babel","commit_stats":null,"previous_names":["6to5/grunt-6to5"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fgrunt-babel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fgrunt-babel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fgrunt-babel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel%2Fgrunt-babel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel","download_url":"https://codeload.github.com/babel/grunt-babel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248798438,"owners_count":21163306,"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","grunt-plugin"],"created_at":"2024-08-04T01:00:38.520Z","updated_at":"2025-04-14T20:54:19.994Z","avatar_url":"https://github.com/babel.png","language":"JavaScript","funding_links":["https://github.com/sponsors/babel","https://opencollective.com/babel","https://gitcoin.co/grants/2906/babel-compiler-for-next-generation-javascript"],"categories":["Build-time transpilation"],"sub_categories":["Grunt Tasks"],"readme":"\u003e This readme is for grunt-babel v8 + Babel v7\n\u003e Check the [7.x branch](https://github.com/babel/grunt-babel/tree/7.x) for docs with Babel v6\n\n# grunt-babel [![Build Status](https://travis-ci.org/babel/grunt-babel.svg?branch=master)](https://travis-ci.org/babel/grunt-babel)\n\n\u003e Use next generation JavaScript, today, with [Babel](https://babeljs.io)\n\n*Issues with the output should be reported on the Babel [issue tracker](https://github.com/babel/babel/issues).*\n\n## Install\n\nFor Babel 7.x and grunt-babel v8\n```sh\n$ yarn add --dev grunt-babel @babel/core @babel/preset-env\n```\n\nFor Babel 6.x and grunt-babel v7\n```sh\n$ yarn add --dev grunt-babel@7 babel-core babel-preset-env\n```\nNote: See the [7.x branch](https://github.com/babel/grunt-babel/tree/7.x) for more examples of\nusage of Babel 6.x. This README is primarily applicable for Babel 7.x\n\n## Usage\n\n### Option with load-grunt-tasks\n```js\nrequire('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks\n\ngrunt.initConfig({\n  babel: {\n    options: {\n      sourceMap: true,\n      presets: ['@babel/preset-env']\n    },\n    dist: {\n      files: {\n        'dist/app.js': 'src/app.js'\n      }\n    }\n  }\n});\n\ngrunt.registerTask('default', ['babel']);\n```\n\n### Option with loadNpmTasks\n```js\ngrunt.initConfig({\n  babel: {\n    options: {\n      sourceMap: true,\n      presets: ['@babel/preset-env']\n    },\n    dist: {\n      files: {\n        'dist/app.js': 'src/app.js'\n      }\n    }\n  }\n});\n\ngrunt.loadNpmTasks('grunt-babel');\n\ngrunt.registerTask('default', ['babel']);\n```\n\n## Options\n\nSee the Babel [options](https://babeljs.io/docs/en/options), except for `filename` which is handled for you.\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel%2Fgrunt-babel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel%2Fgrunt-babel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel%2Fgrunt-babel/lists"}