{"id":21413480,"url":"https://github.com/feedly/grunt-react-native","last_synced_at":"2025-07-14T03:31:12.937Z","repository":{"id":57255585,"uuid":"54508011","full_name":"feedly/grunt-react-native","owner":"feedly","description":"A grunt plugin for launching the React Native packager and bundle your files for relase","archived":true,"fork":false,"pushed_at":"2017-03-14T17:29:39.000Z","size":452,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T18:24:05.346Z","etag":null,"topics":[],"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/feedly.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":"2016-03-22T20:53:47.000Z","updated_at":"2023-05-19T14:42:03.000Z","dependencies_parsed_at":"2022-09-04T23:01:06.018Z","dependency_job_id":null,"html_url":"https://github.com/feedly/grunt-react-native","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/feedly/grunt-react-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feedly%2Fgrunt-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feedly%2Fgrunt-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feedly%2Fgrunt-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feedly%2Fgrunt-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feedly","download_url":"https://codeload.github.com/feedly/grunt-react-native/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feedly%2Fgrunt-react-native/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265237696,"owners_count":23732514,"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-11-22T18:18:35.941Z","updated_at":"2025-07-14T03:31:12.644Z","avatar_url":"https://github.com/feedly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-react-native [![Build Status](https://travis-ci.org/feedly/grunt-react-native.svg?branch=master)](https://travis-ci.org/feedly/grunt-react-native) [![npm](https://img.shields.io/npm/dt/grunt-react-native.svg)](https://www.npmjs.com/package/grunt-react-native)\n\n\u003e A grunt plugin for launching the React Native packager and bundle your files for release\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 react@^0.14.5 react-native@^0.24.1 grunt-react-native --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-react-native');\n```\n\n## The \"react_native\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `react_native` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  react_native: {\n    your_target: {\n      options: {\n        // Target-specific options go here.\n      }\n      // Target-specific files go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.minify\nType: `Boolean`\nDefault value: `false`\n\nSetting to true will minify the resulting bundle.\n\n#### options.platform\nType: `String`\nDefault value: The task's (target) name\n\nWhich platform the bundle is made for.\n\n#### options.reset_cache\nType: `Boolean`\nDefault value: `false`\n\nPass the reset cache option to react native packager (see https://github.com/facebook/react-native/issues/4968)\n\n#### options.verbose\nType: `Boolean`\nDefault value: `false`\n\nVerbose mode.\n\n#### options.watch\nType: `Boolean`\nDefault value: `false`\n\nWatch mode, this will launch the react native packager server for development.\n\n### Usage Examples\n\n```js\ngrunt.initConfig({\n  react_native: {\n    ios: {\n      options: {\n        minify: false,\n        verbose: false,\n        watch: false,\n      },\n      src: 'src/index.ios.js',\n      dst: 'build/index.ios.bundle',\n    },\n    watch: {\n      options: {\n        verbose: false,\n        watch: true,\n      },\n      src: 'src/', // The directory to watch and serve\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\n## Release History\n\n### V 2.2.0 Transfer ownership from [@alexmick](https://github.com/alexmick) to @feedly\n\n### V 2.1.4 Use peer dependencies\n\n### V 2.1.3 Update dependency management\n\n### V 2.1.2 Major release version bump because of ownership transfer to @alexmick\n\n### V 0.1.2 Include assets\n\nFeatures :\n* Now bundles your assets as well\n \nTo do :\n* Find a more reliable way to test output files\n\n### V 0.1.1 Fix tests\n\nFixes :\n* Failing tests (react-native's fault)\n \nTo do :\n* Find a more reliable way to test output files\n* Manage assets destination\n\n\n### V 0.1.0 Initial Release\n\nSupports :\n* Bundle task\n* Watch task\n \nTo do :\n* Manage assets destination\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeedly%2Fgrunt-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeedly%2Fgrunt-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeedly%2Fgrunt-react-native/lists"}