{"id":15141821,"url":"https://github.com/nativescript/grunt-multi-dest","last_synced_at":"2025-09-29T10:31:06.274Z","repository":{"id":141977762,"uuid":"81220658","full_name":"NativeScript/grunt-multi-dest","owner":"NativeScript","description":"Multiple destination grunt-copying implementation","archived":false,"fork":true,"pushed_at":"2016-02-29T17:53:33.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-23T10:00:45.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ErjanGavalji/grunt-multi-dest","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NativeScript.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,"governance":null}},"created_at":"2017-02-07T15:05:03.000Z","updated_at":"2022-04-13T22:41:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"e14f5f81-1265-4fb3-901a-e90e69087bbd","html_url":"https://github.com/NativeScript/grunt-multi-dest","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"30aafddc1a89b6bed174e13c2aee1ad6c0a3e88b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Fgrunt-multi-dest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Fgrunt-multi-dest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Fgrunt-multi-dest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NativeScript%2Fgrunt-multi-dest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NativeScript","download_url":"https://codeload.github.com/NativeScript/grunt-multi-dest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219874490,"owners_count":16554583,"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-09-26T09:02:20.827Z","updated_at":"2025-09-29T10:31:05.951Z","avatar_url":"https://github.com/NativeScript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-multi-dest\n\n\u003e Runs a list of specitified tasks against multiple destination directories.\n\n[![Build Status](https://travis-ci.org/ErjanGavalji/grunt-multi-dest.svg?branch=master)](https://travis-ci.org/ErjanGavalji)\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\n[![NPM](https://nodei.co/npm/grunt-multi-dest.png?compact=true)](https://nodei.co/npm/grunt-multi-dest/)\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-multi-dest --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-multi-dest');\n```\n\n## The \"multi_dest\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `multidest` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  multidest: {\n    your_target: {\n        tasks: [\n            \"your\",\n            \"tasks\"\n        ]\n    },\n  },\n});\n```\n\n### Usage Examples\n\n#### Copy\n\n```js\ngrunt.initConfig({\n\n    copy: {\n        somefiles: {\n            src: \"./mydir/**\",\n            dest: \"./myNormallyOutputDir/\"\n        }\n    },\n    multidest: {\n        copy_some_files: {\n            tasks: [\n                \"copy:somefiles\"\n            ]\n            dest: [\"./dist/distdir1\", \"./dist/distdir2\"]\n        },\n    },\n});\n```\n\n### Important note\n**As the multidest task does not operate on its own src files, it does not respect the expand option of its files attribute. That only applies to the expand option of the multidest task. The expand attribute of the tasks multidest runs works normally.**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript%2Fgrunt-multi-dest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnativescript%2Fgrunt-multi-dest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript%2Fgrunt-multi-dest/lists"}