{"action":"created","issue":{"url":"https://api.github.com/repos/gruntjs/grunt-contrib-compress/issues/153","labels_url":"https://api.github.com/repos/gruntjs/grunt-contrib-compress/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/gruntjs/grunt-contrib-compress/issues/153/comments","events_url":"https://api.github.com/repos/gruntjs/grunt-contrib-compress/issues/153/events","html_url":"https://github.com/gruntjs/grunt-contrib-compress/issues/153","id":90659281,"number":153,"title":"Request: is it possible to rename a src folder in results?","user":{"login":"numediaweb","id":288614,"avatar_url":"https://avatars.githubusercontent.com/u/288614?v=3","gravatar_id":"","url":"https://api.github.com/users/numediaweb","html_url":"https://github.com/numediaweb","followers_url":"https://api.github.com/users/numediaweb/followers","following_url":"https://api.github.com/users/numediaweb/following{/other_user}","gists_url":"https://api.github.com/users/numediaweb/gists{/gist_id}","starred_url":"https://api.github.com/users/numediaweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numediaweb/subscriptions","organizations_url":"https://api.github.com/users/numediaweb/orgs","repos_url":"https://api.github.com/users/numediaweb/repos","events_url":"https://api.github.com/users/numediaweb/events{/privacy}","received_events_url":"https://api.github.com/users/numediaweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-24T12:18:06Z","updated_at":"2015-06-29T17:06:43Z","closed_at":null,"body":"I have this code:\r\n```js\r\ncompress: {\r\n\tmain: {\r\n\t\toptions: {\r\n\t\t\tarchive: '../../<%= pkg.name %>.<%= pkg.version %>.zip'\r\n\t\t},\r\n\t\tfiles: [{\r\n\t\t\texpand: true,\r\n\t\t\tsrc: ['../www/**/*',\r\n\t\t\t\t'!desktop.ini',\r\n\t\t\t\t'!.DS_Store'\r\n\t\t\t],\r\n\t\t\tdest: 'hi'\r\n\t\t}]\r\n\t}\r\n}\r\n```\r\n\r\nMy directory structure looks like is:\r\n```\r\napp    \r\n  .build\r\n    Gruntfile.js\r\n    ..\r\n  .src\r\n  www\r\n    css\r\n      style.css\r\n    js\r\n```\r\nThe results outputs a zip with the folder `www` as main folder, is it possible to rename it to something else like; `my_app` ?"},"comment":{"url":"https://api.github.com/repos/gruntjs/grunt-contrib-compress/issues/comments/116762956","html_url":"https://github.com/gruntjs/grunt-contrib-compress/issues/153#issuecomment-116762956","issue_url":"https://api.github.com/repos/gruntjs/grunt-contrib-compress/issues/153","id":116762956,"user":{"login":"ctalkington","id":209757,"avatar_url":"https://avatars.githubusercontent.com/u/209757?v=3","gravatar_id":"","url":"https://api.github.com/users/ctalkington","html_url":"https://github.com/ctalkington","followers_url":"https://api.github.com/users/ctalkington/followers","following_url":"https://api.github.com/users/ctalkington/following{/other_user}","gists_url":"https://api.github.com/users/ctalkington/gists{/gist_id}","starred_url":"https://api.github.com/users/ctalkington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctalkington/subscriptions","organizations_url":"https://api.github.com/users/ctalkington/orgs","repos_url":"https://api.github.com/users/ctalkington/repos","events_url":"https://api.github.com/users/ctalkington/events{/privacy}","received_events_url":"https://api.github.com/users/ctalkington/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T17:06:43Z","updated_at":"2015-06-29T17:06:43Z","body":"sorry i was on mobile before, try:\r\n\r\n```js\r\nfiles: [{\r\n  cwd: '../www/',\r\n  expand: true,\r\n  src: [\r\n    '**/*',\r\n    '!desktop.ini',\r\n    '!config.php',\r\n    '!.DS_Store'\r\n  ],\r\n  dest: '<%= pkg.name %>/'\r\n}]\r\n```\r\n"}}