{"action":"opened","number":141,"pull_request":{"url":"https://api.github.com/repos/es6rocks/harmonic/pulls/141","id":33508294,"html_url":"https://github.com/es6rocks/harmonic/pull/141","diff_url":"https://github.com/es6rocks/harmonic/pull/141.diff","patch_url":"https://github.com/es6rocks/harmonic/pull/141.patch","issue_url":"https://api.github.com/repos/es6rocks/harmonic/issues/141","number":141,"state":"open","locked":false,"title":"Enhancement: adds user defined resource folder that is copied to public","user":{"login":"soapdog","id":23247,"avatar_url":"https://avatars.githubusercontent.com/u/23247?v=3","gravatar_id":"","url":"https://api.github.com/users/soapdog","html_url":"https://github.com/soapdog","followers_url":"https://api.github.com/users/soapdog/followers","following_url":"https://api.github.com/users/soapdog/following{/other_user}","gists_url":"https://api.github.com/users/soapdog/gists{/gist_id}","starred_url":"https://api.github.com/users/soapdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soapdog/subscriptions","organizations_url":"https://api.github.com/users/soapdog/orgs","repos_url":"https://api.github.com/users/soapdog/repos","events_url":"https://api.github.com/users/soapdog/events{/privacy}","received_events_url":"https://api.github.com/users/soapdog/received_events","type":"User","site_admin":false},"body":"This enhancement adds a user defined ```resources``` folder that is copied to ```public``` during build. This folder is copied after the theme's resources are copied so it can be used to overlay items as well. \r\n\r\nIf there is no ```resources``` folder present then Harmonic displays a warning saying that no user resources were copied during build. This happens if the folder is not present or if there was an error in the copying process. Node documentations says that ```fs.exists``` and ```fs.existsSync``` will be deprecated and I didn't want to use functions that will soon go away thus generating debug work for my future self.\r\n\r\nThis was implemented by splitting the ```copyResources()``` function into two functions called ```copyThemeResources``` and ```copyUserResources``` as mentioned in #138 (which is solved by this PR).\r\n\r\nHope your folks like it, it makes things a lot easier for me at least.","created_at":"2015-04-17T01:39:52Z","updated_at":"2015-04-17T01:39:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/es6rocks/harmonic/pulls/141/commits","review_comments_url":"https://api.github.com/repos/es6rocks/harmonic/pulls/141/comments","review_comment_url":"https://api.github.com/repos/es6rocks/harmonic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/es6rocks/harmonic/issues/141/comments","statuses_url":"https://api.github.com/repos/es6rocks/harmonic/statuses/91d2088d1104b2974039e08ea4365775eac03813","head":{"label":"soapdog:enhancement-user-defined-resources-folder","ref":"enhancement-user-defined-resources-folder","sha":"91d2088d1104b2974039e08ea4365775eac03813","user":{"login":"soapdog","id":23247,"avatar_url":"https://avatars.githubusercontent.com/u/23247?v=3","gravatar_id":"","url":"https://api.github.com/users/soapdog","html_url":"https://github.com/soapdog","followers_url":"https://api.github.com/users/soapdog/followers","following_url":"https://api.github.com/users/soapdog/following{/other_user}","gists_url":"https://api.github.com/users/soapdog/gists{/gist_id}","starred_url":"https://api.github.com/users/soapdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soapdog/subscriptions","organizations_url":"https://api.github.com/users/soapdog/orgs","repos_url":"https://api.github.com/users/soapdog/repos","events_url":"https://api.github.com/users/soapdog/events{/privacy}","received_events_url":"https://api.github.com/users/soapdog/received_events","type":"User","site_admin":false},"repo":{"id":21830913,"name":"harmonic","full_name":"soapdog/harmonic","owner":{"login":"soapdog","id":23247,"avatar_url":"https://avatars.githubusercontent.com/u/23247?v=3","gravatar_id":"","url":"https://api.github.com/users/soapdog","html_url":"https://github.com/soapdog","followers_url":"https://api.github.com/users/soapdog/followers","following_url":"https://api.github.com/users/soapdog/following{/other_user}","gists_url":"https://api.github.com/users/soapdog/gists{/gist_id}","starred_url":"https://api.github.com/users/soapdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soapdog/subscriptions","organizations_url":"https://api.github.com/users/soapdog/orgs","repos_url":"https://api.github.com/users/soapdog/repos","events_url":"https://api.github.com/users/soapdog/events{/privacy}","received_events_url":"https://api.github.com/users/soapdog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soapdog/harmonic","description":"The next static site generator","fork":true,"url":"https://api.github.com/repos/soapdog/harmonic","forks_url":"https://api.github.com/repos/soapdog/harmonic/forks","keys_url":"https://api.github.com/repos/soapdog/harmonic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soapdog/harmonic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soapdog/harmonic/teams","hooks_url":"https://api.github.com/repos/soapdog/harmonic/hooks","issue_events_url":"https://api.github.com/repos/soapdog/harmonic/issues/events{/number}","events_url":"https://api.github.com/repos/soapdog/harmonic/events","assignees_url":"https://api.github.com/repos/soapdog/harmonic/assignees{/user}","branches_url":"https://api.github.com/repos/soapdog/harmonic/branches{/branch}","tags_url":"https://api.github.com/repos/soapdog/harmonic/tags","blobs_url":"https://api.github.com/repos/soapdog/harmonic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soapdog/harmonic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soapdog/harmonic/git/refs{/sha}","trees_url":"https://api.github.com/repos/soapdog/harmonic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soapdog/harmonic/statuses/{sha}","languages_url":"https://api.github.com/repos/soapdog/harmonic/languages","stargazers_url":"https://api.github.com/repos/soapdog/harmonic/stargazers","contributors_url":"https://api.github.com/repos/soapdog/harmonic/contributors","subscribers_url":"https://api.github.com/repos/soapdog/harmonic/subscribers","subscription_url":"https://api.github.com/repos/soapdog/harmonic/subscription","commits_url":"https://api.github.com/repos/soapdog/harmonic/commits{/sha}","git_commits_url":"https://api.github.com/repos/soapdog/harmonic/git/commits{/sha}","comments_url":"https://api.github.com/repos/soapdog/harmonic/comments{/number}","issue_comment_url":"https://api.github.com/repos/soapdog/harmonic/issues/comments{/number}","contents_url":"https://api.github.com/repos/soapdog/harmonic/contents/{+path}","compare_url":"https://api.github.com/repos/soapdog/harmonic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soapdog/harmonic/merges","archive_url":"https://api.github.com/repos/soapdog/harmonic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soapdog/harmonic/downloads","issues_url":"https://api.github.com/repos/soapdog/harmonic/issues{/number}","pulls_url":"https://api.github.com/repos/soapdog/harmonic/pulls{/number}","milestones_url":"https://api.github.com/repos/soapdog/harmonic/milestones{/number}","notifications_url":"https://api.github.com/repos/soapdog/harmonic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soapdog/harmonic/labels{/name}","releases_url":"https://api.github.com/repos/soapdog/harmonic/releases{/id}","created_at":"2014-07-14T18:37:21Z","updated_at":"2015-04-16T16:39:43Z","pushed_at":"2015-04-17T01:34:33Z","git_url":"git://github.com/soapdog/harmonic.git","ssh_url":"git@github.com:soapdog/harmonic.git","clone_url":"https://github.com/soapdog/harmonic.git","svn_url":"https://github.com/soapdog/harmonic","homepage":"","size":1028,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"es6rocks:master","ref":"master","sha":"52d0e4d8ad43446b8542a295354850b390a3c127","user":{"login":"es6rocks","id":7018736,"avatar_url":"https://avatars.githubusercontent.com/u/7018736?v=3","gravatar_id":"","url":"https://api.github.com/users/es6rocks","html_url":"https://github.com/es6rocks","followers_url":"https://api.github.com/users/es6rocks/followers","following_url":"https://api.github.com/users/es6rocks/following{/other_user}","gists_url":"https://api.github.com/users/es6rocks/gists{/gist_id}","starred_url":"https://api.github.com/users/es6rocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/es6rocks/subscriptions","organizations_url":"https://api.github.com/users/es6rocks/orgs","repos_url":"https://api.github.com/users/es6rocks/repos","events_url":"https://api.github.com/users/es6rocks/events{/privacy}","received_events_url":"https://api.github.com/users/es6rocks/received_events","type":"Organization","site_admin":false},"repo":{"id":18818187,"name":"harmonic","full_name":"es6rocks/harmonic","owner":{"login":"es6rocks","id":7018736,"avatar_url":"https://avatars.githubusercontent.com/u/7018736?v=3","gravatar_id":"","url":"https://api.github.com/users/es6rocks","html_url":"https://github.com/es6rocks","followers_url":"https://api.github.com/users/es6rocks/followers","following_url":"https://api.github.com/users/es6rocks/following{/other_user}","gists_url":"https://api.github.com/users/es6rocks/gists{/gist_id}","starred_url":"https://api.github.com/users/es6rocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/es6rocks/subscriptions","organizations_url":"https://api.github.com/users/es6rocks/orgs","repos_url":"https://api.github.com/users/es6rocks/repos","events_url":"https://api.github.com/users/es6rocks/events{/privacy}","received_events_url":"https://api.github.com/users/es6rocks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/es6rocks/harmonic","description":"The next static site generator","fork":false,"url":"https://api.github.com/repos/es6rocks/harmonic","forks_url":"https://api.github.com/repos/es6rocks/harmonic/forks","keys_url":"https://api.github.com/repos/es6rocks/harmonic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/es6rocks/harmonic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/es6rocks/harmonic/teams","hooks_url":"https://api.github.com/repos/es6rocks/harmonic/hooks","issue_events_url":"https://api.github.com/repos/es6rocks/harmonic/issues/events{/number}","events_url":"https://api.github.com/repos/es6rocks/harmonic/events","assignees_url":"https://api.github.com/repos/es6rocks/harmonic/assignees{/user}","branches_url":"https://api.github.com/repos/es6rocks/harmonic/branches{/branch}","tags_url":"https://api.github.com/repos/es6rocks/harmonic/tags","blobs_url":"https://api.github.com/repos/es6rocks/harmonic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/es6rocks/harmonic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/es6rocks/harmonic/git/refs{/sha}","trees_url":"https://api.github.com/repos/es6rocks/harmonic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/es6rocks/harmonic/statuses/{sha}","languages_url":"https://api.github.com/repos/es6rocks/harmonic/languages","stargazers_url":"https://api.github.com/repos/es6rocks/harmonic/stargazers","contributors_url":"https://api.github.com/repos/es6rocks/harmonic/contributors","subscribers_url":"https://api.github.com/repos/es6rocks/harmonic/subscribers","subscription_url":"https://api.github.com/repos/es6rocks/harmonic/subscription","commits_url":"https://api.github.com/repos/es6rocks/harmonic/commits{/sha}","git_commits_url":"https://api.github.com/repos/es6rocks/harmonic/git/commits{/sha}","comments_url":"https://api.github.com/repos/es6rocks/harmonic/comments{/number}","issue_comment_url":"https://api.github.com/repos/es6rocks/harmonic/issues/comments{/number}","contents_url":"https://api.github.com/repos/es6rocks/harmonic/contents/{+path}","compare_url":"https://api.github.com/repos/es6rocks/harmonic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/es6rocks/harmonic/merges","archive_url":"https://api.github.com/repos/es6rocks/harmonic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/es6rocks/harmonic/downloads","issues_url":"https://api.github.com/repos/es6rocks/harmonic/issues{/number}","pulls_url":"https://api.github.com/repos/es6rocks/harmonic/pulls{/number}","milestones_url":"https://api.github.com/repos/es6rocks/harmonic/milestones{/number}","notifications_url":"https://api.github.com/repos/es6rocks/harmonic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/es6rocks/harmonic/labels{/name}","releases_url":"https://api.github.com/repos/es6rocks/harmonic/releases{/id}","created_at":"2014-04-15T22:23:26Z","updated_at":"2015-04-16T21:44:54Z","pushed_at":"2015-04-16T17:43:50Z","git_url":"git://github.com/es6rocks/harmonic.git","ssh_url":"git@github.com:es6rocks/harmonic.git","clone_url":"https://github.com/es6rocks/harmonic.git","svn_url":"https://github.com/es6rocks/harmonic","homepage":"","size":2818,"stargazers_count":150,"watchers_count":150,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":38,"forks":22,"open_issues":38,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/es6rocks/harmonic/pulls/141"},"html":{"href":"https://github.com/es6rocks/harmonic/pull/141"},"issue":{"href":"https://api.github.com/repos/es6rocks/harmonic/issues/141"},"comments":{"href":"https://api.github.com/repos/es6rocks/harmonic/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/es6rocks/harmonic/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/es6rocks/harmonic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/es6rocks/harmonic/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/es6rocks/harmonic/statuses/91d2088d1104b2974039e08ea4365775eac03813"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":3,"changed_files":2}}