{"id":15369077,"url":"https://github.com/developit/grunt-esperanto","last_synced_at":"2025-04-15T13:42:58.859Z","repository":{"id":23291375,"uuid":"26650447","full_name":"developit/grunt-esperanto","owner":"developit","description":"Wrapper for the esperanto module transpiler","archived":false,"fork":false,"pushed_at":"2017-05-09T15:23:00.000Z","size":19,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T00:36:07.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/developit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-14T17:51:23.000Z","updated_at":"2016-02-20T22:23:07.000Z","dependencies_parsed_at":"2022-07-12T06:16:16.003Z","dependency_job_id":null,"html_url":"https://github.com/developit/grunt-esperanto","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fgrunt-esperanto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fgrunt-esperanto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fgrunt-esperanto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fgrunt-esperanto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/grunt-esperanto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249081885,"owners_count":21209773,"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":[],"created_at":"2024-10-01T13:34:02.943Z","updated_at":"2025-04-15T13:42:58.842Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-esperanto\n\n\u003e Wrapper for the [esperanto](https://github.com/esperantojs/esperanto) module transpiler\n\n[![CI](http://img.shields.io/travis/developit/grunt-esperanto.svg?style=flat)](https://travis-ci.org/developit/grunt-esperanto)\n[![NPM](http://img.shields.io/npm/v/grunt-esperanto.svg?style=flat)](https://www.npmjs.com/package/grunt-esperanto)\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-esperanto --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-esperanto');\n```\n\n## The \"esperanto\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `esperanto` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  esperanto: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.separator\nType: `String`\nDefault value: `'\\n'`\n\nA string to place between concatenated files.\n\n#### options.type\nType: `String`\nDefault value: `'amd'`\n\nSpecify the output format.\n\n**Available types:**\n\n- `'amd'` to output AMD modules, works with e.g. [Require.JS](http://requirejs.org/)\n- `'commonjs'` or `cjs` to output CommonJS modules, works with **node.js** and **io.js**.\n- `'umd'` to output UMD (universal module definition) content - works as an AMD module, a CommonJS module, or as a browser global.\n\n#### options.bundleOpts\nType: `Object`\nDefault value: `{}`\n\nAccept an esperanto [options](https://github.com/esperantojs/esperanto/wiki/Converting-a-single-module#options) parameter.\n\n#### options.filePathAsModule\nType: `Boolean`\nDefault value: `false`\n\nWhen outputting an amd module, if true will use the file path as the module name, stripping the `.js` suffix. This supercedes using `bundleOpts.amdName` which is a static equivalent.\n\n### Usage Examples\n\n```js\ngrunt.initConfig({\n  esperanto: {\n    options: {\n      type: 'cjs',\n    },\n    files: {\n      expand: true,\n      cwd: 'src/es6',\n      src : ['**/*.js'],\n      dest: 'dest/out.js'\n    }\n  }\n});\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fgrunt-esperanto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fgrunt-esperanto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fgrunt-esperanto/lists"}