{"action":"opened","number":328,"pull_request":{"url":"https://api.github.com/repos/laravel/elixir/pulls/328","id":48936130,"html_url":"https://github.com/laravel/elixir/pull/328","diff_url":"https://github.com/laravel/elixir/pull/328.diff","patch_url":"https://github.com/laravel/elixir/pull/328.patch","issue_url":"https://api.github.com/repos/laravel/elixir/issues/328","number":328,"state":"open","locked":false,"title":"Allow that versioned files are created next to the source file.","user":{"login":"isaacperaza","id":1950205,"avatar_url":"https://avatars.githubusercontent.com/u/1950205?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacperaza","html_url":"https://github.com/isaacperaza","followers_url":"https://api.github.com/users/isaacperaza/followers","following_url":"https://api.github.com/users/isaacperaza/following{/other_user}","gists_url":"https://api.github.com/users/isaacperaza/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacperaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacperaza/subscriptions","organizations_url":"https://api.github.com/users/isaacperaza/orgs","repos_url":"https://api.github.com/users/isaacperaza/repos","events_url":"https://api.github.com/users/isaacperaza/events{/privacy}","received_events_url":"https://api.github.com/users/isaacperaza/received_events","type":"User","site_admin":false},"body":"This tittle change allow to created versioned file next to source file, just if assestPath and buildFolder have the same value.\r\n\r\nI tested this change overriding assetsPath and buildFolder values from gulpfile.js, elixir.json and specifying a second parameter of mix.version([files], \"public\" ) task, please take a look:\r\n\r\nOverriding elixir configuration from gulpfile.js:\r\n\r\n```javascript\r\n// Load Laravel elixir\r\nvar Elixir = require('laravel-elixir');\r\n\r\n// Get elixir configuration\r\nvar config = Elixir.config;\r\n\r\n// Overwrite assetPath\r\nconfig.assetsPath = 'public';\r\n\r\n// Overwrite buildFolder\r\nconfig.versioning.buildFolder = '';\r\n\r\nElixir(function(mix) {\r\n    mix.version([\r\n        // replace css files path with yours\r\n        config.assetsPath + '/css/user.css',\r\n        config.assetsPath + '/css/contact.css',\r\n\r\n        // replace script files path with yours\r\n        config.assetsPath + '/js/user.js',\r\n        config.assetsPath + '/js/contact.js'\r\n    ]);\r\n});\r\n```\r\n\r\nOverriding elixir configuration from gulpfile.js second option:\r\n\r\n```javascript\r\n...\r\n// Overwrite assetPath\r\nconfig.assetsPath = 'public';\r\n\r\nElixir(function(mix) {\r\n    mix.version([\r\n        // replace css files path with yours\r\n        config.assetsPath + '/css/user.css',\r\n        config.assetsPath + '/css/contact.css',\r\n\r\n        // replace script files path with yours\r\n        config.assetsPath + '/js/user.js',\r\n        config.assetsPath + '/js/contact.js'\r\n    ], 'public');\r\n});\r\n```\r\n\r\n\r\nOverriding elixir configuration using elixir.json file:\r\n\r\n```javascript\r\n{\r\n  \"assetsPath\": \"public\",\r\n\r\n  \"versioning\": {\r\n    \"buildFolder\": \"\"\r\n  }\r\n}\r\n```\r\n\r\nOutput will looks like this:\r\n\r\n```\r\npublic\r\n└─ css\r\n └─ user.css\r\n └─ user-8fa778f76c.css\r\n └─ contact.css\r\n └─ contact-b45e8b679c.css\r\n└─ js\r\n └─ user.js\r\n └─ user-676f8ea6c9.js\r\n └─ contact.js\r\n └─ contact-8e660751aa.js\r\n└─ rev-manifest.json\r\n  ```\r\n\r\nFinally the rev-manifest.json file looks good as well:\r\n```json\r\n{\r\n  \"css/user.css\": \"css/user-8fa778f76c.css\",\r\n  \"css/contact.css\": \"css/contact-b45e8b679c.css\",\r\n  \"js/user.js\": \"js/user-676f8ea6c9.js\",\r\n  \"js/contact.js\": \"js/contact-8e660751aa.js\"\r\n}\r\n```\r\n\r\nPlease, let me know any doubts or concerns.","created_at":"2015-10-27T21:36:17Z","updated_at":"2015-10-27T21:36:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/elixir/pulls/328/commits","review_comments_url":"https://api.github.com/repos/laravel/elixir/pulls/328/comments","review_comment_url":"https://api.github.com/repos/laravel/elixir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/elixir/issues/328/comments","statuses_url":"https://api.github.com/repos/laravel/elixir/statuses/c3b6b525880c99cb810d590cdcd2743ebd5d6b4d","head":{"label":"isaacperaza:versioning-for-all","ref":"versioning-for-all","sha":"c3b6b525880c99cb810d590cdcd2743ebd5d6b4d","user":{"login":"isaacperaza","id":1950205,"avatar_url":"https://avatars.githubusercontent.com/u/1950205?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacperaza","html_url":"https://github.com/isaacperaza","followers_url":"https://api.github.com/users/isaacperaza/followers","following_url":"https://api.github.com/users/isaacperaza/following{/other_user}","gists_url":"https://api.github.com/users/isaacperaza/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacperaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacperaza/subscriptions","organizations_url":"https://api.github.com/users/isaacperaza/orgs","repos_url":"https://api.github.com/users/isaacperaza/repos","events_url":"https://api.github.com/users/isaacperaza/events{/privacy}","received_events_url":"https://api.github.com/users/isaacperaza/received_events","type":"User","site_admin":false},"repo":{"id":45043025,"name":"elixir","full_name":"isaacperaza/elixir","owner":{"login":"isaacperaza","id":1950205,"avatar_url":"https://avatars.githubusercontent.com/u/1950205?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacperaza","html_url":"https://github.com/isaacperaza","followers_url":"https://api.github.com/users/isaacperaza/followers","following_url":"https://api.github.com/users/isaacperaza/following{/other_user}","gists_url":"https://api.github.com/users/isaacperaza/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacperaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacperaza/subscriptions","organizations_url":"https://api.github.com/users/isaacperaza/orgs","repos_url":"https://api.github.com/users/isaacperaza/repos","events_url":"https://api.github.com/users/isaacperaza/events{/privacy}","received_events_url":"https://api.github.com/users/isaacperaza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isaacperaza/elixir","description":"A clean, fluent API for defining basic Gulp tasks for your Laravel applications.","fork":true,"url":"https://api.github.com/repos/isaacperaza/elixir","forks_url":"https://api.github.com/repos/isaacperaza/elixir/forks","keys_url":"https://api.github.com/repos/isaacperaza/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isaacperaza/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isaacperaza/elixir/teams","hooks_url":"https://api.github.com/repos/isaacperaza/elixir/hooks","issue_events_url":"https://api.github.com/repos/isaacperaza/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/isaacperaza/elixir/events","assignees_url":"https://api.github.com/repos/isaacperaza/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/isaacperaza/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/isaacperaza/elixir/tags","blobs_url":"https://api.github.com/repos/isaacperaza/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isaacperaza/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isaacperaza/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/isaacperaza/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isaacperaza/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/isaacperaza/elixir/languages","stargazers_url":"https://api.github.com/repos/isaacperaza/elixir/stargazers","contributors_url":"https://api.github.com/repos/isaacperaza/elixir/contributors","subscribers_url":"https://api.github.com/repos/isaacperaza/elixir/subscribers","subscription_url":"https://api.github.com/repos/isaacperaza/elixir/subscription","commits_url":"https://api.github.com/repos/isaacperaza/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/isaacperaza/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/isaacperaza/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/isaacperaza/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/isaacperaza/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/isaacperaza/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isaacperaza/elixir/merges","archive_url":"https://api.github.com/repos/isaacperaza/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isaacperaza/elixir/downloads","issues_url":"https://api.github.com/repos/isaacperaza/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/isaacperaza/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/isaacperaza/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/isaacperaza/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isaacperaza/elixir/labels{/name}","releases_url":"https://api.github.com/repos/isaacperaza/elixir/releases{/id}","created_at":"2015-10-27T13:31:52Z","updated_at":"2015-10-27T13:31:53Z","pushed_at":"2015-10-27T21:13:05Z","git_url":"git://github.com/isaacperaza/elixir.git","ssh_url":"git@github.com:isaacperaza/elixir.git","clone_url":"https://github.com/isaacperaza/elixir.git","svn_url":"https://github.com/isaacperaza/elixir","homepage":"http://laravel.com/docs/elixir","size":1988,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"laravel:master","ref":"master","sha":"87b88f382751fc90d3b0cec646699326b3ed69ef","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":24749463,"name":"elixir","full_name":"laravel/elixir","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/elixir","description":"A clean, fluent API for defining basic Gulp tasks for your Laravel applications.","fork":false,"url":"https://api.github.com/repos/laravel/elixir","forks_url":"https://api.github.com/repos/laravel/elixir/forks","keys_url":"https://api.github.com/repos/laravel/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/elixir/teams","hooks_url":"https://api.github.com/repos/laravel/elixir/hooks","issue_events_url":"https://api.github.com/repos/laravel/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/elixir/events","assignees_url":"https://api.github.com/repos/laravel/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/elixir/tags","blobs_url":"https://api.github.com/repos/laravel/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/elixir/languages","stargazers_url":"https://api.github.com/repos/laravel/elixir/stargazers","contributors_url":"https://api.github.com/repos/laravel/elixir/contributors","subscribers_url":"https://api.github.com/repos/laravel/elixir/subscribers","subscription_url":"https://api.github.com/repos/laravel/elixir/subscription","commits_url":"https://api.github.com/repos/laravel/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/elixir/merges","archive_url":"https://api.github.com/repos/laravel/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/elixir/downloads","issues_url":"https://api.github.com/repos/laravel/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/elixir/labels{/name}","releases_url":"https://api.github.com/repos/laravel/elixir/releases{/id}","created_at":"2014-10-03T06:59:04Z","updated_at":"2015-10-27T03:42:27Z","pushed_at":"2015-10-27T14:46:22Z","git_url":"git://github.com/laravel/elixir.git","ssh_url":"git@github.com:laravel/elixir.git","clone_url":"https://github.com/laravel/elixir.git","svn_url":"https://github.com/laravel/elixir","homepage":"http://laravel.com/docs/elixir","size":1988,"stargazers_count":638,"watchers_count":638,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":172,"mirror_url":null,"open_issues_count":19,"forks":172,"open_issues":19,"watchers":638,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/elixir/pulls/328"},"html":{"href":"https://github.com/laravel/elixir/pull/328"},"issue":{"href":"https://api.github.com/repos/laravel/elixir/issues/328"},"comments":{"href":"https://api.github.com/repos/laravel/elixir/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/elixir/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/elixir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/elixir/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/elixir/statuses/c3b6b525880c99cb810d590cdcd2743ebd5d6b4d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":2,"changed_files":1}}