{"action":"created","comment":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/comments/40665540","id":40665540,"diff_hunk":"@@ -0,0 +1,87 @@\n+# Contributer's Guide\n+\n+We welcome contributions from the community and have gathered guidelines \n+here to help you get started.\n+\n+## Discussion\n+\n+While not absolutely required, it is encouraged that you first open an issue \n+for any bug or feature request. This allows discussion on the proper course of\n+action to take before coding begins.\n+\n+## Building\n+\n+To build from source you first need to `npm install`. You will also need a\n+version of TypeScript available, either globally or install locally with\n+`npm install typescript`. Then run `node build`.\n+\n+## Changing\n+\n+Most of the information you need to contribute code changes can [be found here](https://guides.github.com/activities/contributing-to-open-source/).\n+In short: fork, branch, make your changes, and submit a pull request.\n+\n+## Testing\n+\n+This project makes use of a test suite both to make sure we don't break\n+anything and also to make sure new versions of webpack and TypeScript don't\n+break anything. The tests are full integration tests, meaning each test is a\n+mini project that is run through webpack and then the output is compared to the\n+expected output. Not all bugs/features necessarily fit into this framework and\n+that's OK. However, most do and therefore you should make every effort to\n+create at least one test which demonstrates the issue or exercises the feature.\n+\n+The test harness uses certain conventions. All tests have their own directory\n+under `/test`, eg `/test/someFeature`. Each test should have a\n+`webpack.config.js` file which follows this general convention:\n+\n+```javascript\n+module.exports = {\n+    entry: './app.ts',\n+    output: {\n+        filename: 'bundle.js'\n+    },\n+    resolve: {\n+        extensions: ['', '.tsx?', '.js']\n+    },\n+    module: {\n+        loaders: [\n+            { test: /\\.tsx?$/, loader: 'ts-loader' }\n+        ]\n+    }\n+}\n+\n+// for test harness purposes only, you would not need this in a normal project\n+module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, \"../../index.js\") } }\n+```\n+\n+You can run tests with `npm test`. You can also go into an individual test\n+directory and manually build a project using `webpack` or `webpack --watch`.\n+This can be useful both when developing the test and also when fixing an issue\n+or adding a feature.\n+\n+Each test should have an `expectedOutput` directory which contains any webpack\n+filesystem output (typically `bundle.js` and possibly `bundle.js.map`) and any \n+console output. stdout should go in `output.txt` and stderr should go in\n+`err.txt`.\n+\n+As a convenience it is possible to regenerate the expected output from the \n+actual output. This is useful when creating new tests and also when making a\n+change that affects multiple existing tests. To run use \n+`npm test -- --save-output`. Note that all tests will automatically pass when","path":"CONTRIBUTING.md","position":70,"original_position":70,"commit_id":"50003db542c72d0fb62a5714d620f5a1ba3b893d","original_commit_id":"50003db542c72d0fb62a5714d620f5a1ba3b893d","user":{"login":"jbrantly","id":196944,"avatar_url":"https://avatars.githubusercontent.com/u/196944?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrantly","html_url":"https://github.com/jbrantly","followers_url":"https://api.github.com/users/jbrantly/followers","following_url":"https://api.github.com/users/jbrantly/following{/other_user}","gists_url":"https://api.github.com/users/jbrantly/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrantly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrantly/subscriptions","organizations_url":"https://api.github.com/users/jbrantly/orgs","repos_url":"https://api.github.com/users/jbrantly/repos","events_url":"https://api.github.com/users/jbrantly/events{/privacy}","received_events_url":"https://api.github.com/users/jbrantly/received_events","type":"User","site_admin":false},"body":"Not a typo. Allows arguments to be passed to the executing script. See https://docs.npmjs.com/cli/run-script","created_at":"2015-09-29T12:40:56Z","updated_at":"2015-09-29T12:40:56Z","html_url":"https://github.com/TypeStrong/ts-loader/pull/69#discussion_r40665540","pull_request_url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/comments/40665540"},"html":{"href":"https://github.com/TypeStrong/ts-loader/pull/69#discussion_r40665540"},"pull_request":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69","id":46230522,"html_url":"https://github.com/TypeStrong/ts-loader/pull/69","diff_url":"https://github.com/TypeStrong/ts-loader/pull/69.diff","patch_url":"https://github.com/TypeStrong/ts-loader/pull/69.patch","issue_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/69","number":69,"state":"open","locked":false,"title":"Add contributor's guide","user":{"login":"jbrantly","id":196944,"avatar_url":"https://avatars.githubusercontent.com/u/196944?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrantly","html_url":"https://github.com/jbrantly","followers_url":"https://api.github.com/users/jbrantly/followers","following_url":"https://api.github.com/users/jbrantly/following{/other_user}","gists_url":"https://api.github.com/users/jbrantly/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrantly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrantly/subscriptions","organizations_url":"https://api.github.com/users/jbrantly/orgs","repos_url":"https://api.github.com/users/jbrantly/repos","events_url":"https://api.github.com/users/jbrantly/events{/privacy}","received_events_url":"https://api.github.com/users/jbrantly/received_events","type":"User","site_admin":false},"body":"First pass at a contributor's guide. Does this make sense? Anything confusing or left out?","created_at":"2015-09-29T02:27:26Z","updated_at":"2015-09-29T12:40:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd913d9c85528b793f75e0e667681f036583d212","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69/commits","review_comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69/comments","review_comment_url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/69/comments","statuses_url":"https://api.github.com/repos/TypeStrong/ts-loader/statuses/50003db542c72d0fb62a5714d620f5a1ba3b893d","head":{"label":"TypeStrong:contributing-guide","ref":"contributing-guide","sha":"50003db542c72d0fb62a5714d620f5a1ba3b893d","user":{"login":"TypeStrong","id":6759814,"avatar_url":"https://avatars.githubusercontent.com/u/6759814?v=3","gravatar_id":"","url":"https://api.github.com/users/TypeStrong","html_url":"https://github.com/TypeStrong","followers_url":"https://api.github.com/users/TypeStrong/followers","following_url":"https://api.github.com/users/TypeStrong/following{/other_user}","gists_url":"https://api.github.com/users/TypeStrong/gists{/gist_id}","starred_url":"https://api.github.com/users/TypeStrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TypeStrong/subscriptions","organizations_url":"https://api.github.com/users/TypeStrong/orgs","repos_url":"https://api.github.com/users/TypeStrong/repos","events_url":"https://api.github.com/users/TypeStrong/events{/privacy}","received_events_url":"https://api.github.com/users/TypeStrong/received_events","type":"Organization","site_admin":false},"repo":{"id":29561893,"name":"ts-loader","full_name":"TypeStrong/ts-loader","owner":{"login":"TypeStrong","id":6759814,"avatar_url":"https://avatars.githubusercontent.com/u/6759814?v=3","gravatar_id":"","url":"https://api.github.com/users/TypeStrong","html_url":"https://github.com/TypeStrong","followers_url":"https://api.github.com/users/TypeStrong/followers","following_url":"https://api.github.com/users/TypeStrong/following{/other_user}","gists_url":"https://api.github.com/users/TypeStrong/gists{/gist_id}","starred_url":"https://api.github.com/users/TypeStrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TypeStrong/subscriptions","organizations_url":"https://api.github.com/users/TypeStrong/orgs","repos_url":"https://api.github.com/users/TypeStrong/repos","events_url":"https://api.github.com/users/TypeStrong/events{/privacy}","received_events_url":"https://api.github.com/users/TypeStrong/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TypeStrong/ts-loader","description":"TypeScript loader for webpack","fork":false,"url":"https://api.github.com/repos/TypeStrong/ts-loader","forks_url":"https://api.github.com/repos/TypeStrong/ts-loader/forks","keys_url":"https://api.github.com/repos/TypeStrong/ts-loader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TypeStrong/ts-loader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TypeStrong/ts-loader/teams","hooks_url":"https://api.github.com/repos/TypeStrong/ts-loader/hooks","issue_events_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/events{/number}","events_url":"https://api.github.com/repos/TypeStrong/ts-loader/events","assignees_url":"https://api.github.com/repos/TypeStrong/ts-loader/assignees{/user}","branches_url":"https://api.github.com/repos/TypeStrong/ts-loader/branches{/branch}","tags_url":"https://api.github.com/repos/TypeStrong/ts-loader/tags","blobs_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/refs{/sha}","trees_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TypeStrong/ts-loader/statuses/{sha}","languages_url":"https://api.github.com/repos/TypeStrong/ts-loader/languages","stargazers_url":"https://api.github.com/repos/TypeStrong/ts-loader/stargazers","contributors_url":"https://api.github.com/repos/TypeStrong/ts-loader/contributors","subscribers_url":"https://api.github.com/repos/TypeStrong/ts-loader/subscribers","subscription_url":"https://api.github.com/repos/TypeStrong/ts-loader/subscription","commits_url":"https://api.github.com/repos/TypeStrong/ts-loader/commits{/sha}","git_commits_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/commits{/sha}","comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/comments{/number}","issue_comment_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/comments{/number}","contents_url":"https://api.github.com/repos/TypeStrong/ts-loader/contents/{+path}","compare_url":"https://api.github.com/repos/TypeStrong/ts-loader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TypeStrong/ts-loader/merges","archive_url":"https://api.github.com/repos/TypeStrong/ts-loader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TypeStrong/ts-loader/downloads","issues_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues{/number}","pulls_url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls{/number}","milestones_url":"https://api.github.com/repos/TypeStrong/ts-loader/milestones{/number}","notifications_url":"https://api.github.com/repos/TypeStrong/ts-loader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TypeStrong/ts-loader/labels{/name}","releases_url":"https://api.github.com/repos/TypeStrong/ts-loader/releases{/id}","created_at":"2015-01-21T00:00:16Z","updated_at":"2015-09-28T18:41:50Z","pushed_at":"2015-09-29T02:38:21Z","git_url":"git://github.com/TypeStrong/ts-loader.git","ssh_url":"git@github.com:TypeStrong/ts-loader.git","clone_url":"https://github.com/TypeStrong/ts-loader.git","svn_url":"https://github.com/TypeStrong/ts-loader","homepage":null,"size":612,"stargazers_count":66,"watchers_count":66,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":18,"forks":16,"open_issues":18,"watchers":66,"default_branch":"master"}},"base":{"label":"TypeStrong:master","ref":"master","sha":"b6c18e281e5ae957b95df6f47ba0d353a38d0acf","user":{"login":"TypeStrong","id":6759814,"avatar_url":"https://avatars.githubusercontent.com/u/6759814?v=3","gravatar_id":"","url":"https://api.github.com/users/TypeStrong","html_url":"https://github.com/TypeStrong","followers_url":"https://api.github.com/users/TypeStrong/followers","following_url":"https://api.github.com/users/TypeStrong/following{/other_user}","gists_url":"https://api.github.com/users/TypeStrong/gists{/gist_id}","starred_url":"https://api.github.com/users/TypeStrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TypeStrong/subscriptions","organizations_url":"https://api.github.com/users/TypeStrong/orgs","repos_url":"https://api.github.com/users/TypeStrong/repos","events_url":"https://api.github.com/users/TypeStrong/events{/privacy}","received_events_url":"https://api.github.com/users/TypeStrong/received_events","type":"Organization","site_admin":false},"repo":{"id":29561893,"name":"ts-loader","full_name":"TypeStrong/ts-loader","owner":{"login":"TypeStrong","id":6759814,"avatar_url":"https://avatars.githubusercontent.com/u/6759814?v=3","gravatar_id":"","url":"https://api.github.com/users/TypeStrong","html_url":"https://github.com/TypeStrong","followers_url":"https://api.github.com/users/TypeStrong/followers","following_url":"https://api.github.com/users/TypeStrong/following{/other_user}","gists_url":"https://api.github.com/users/TypeStrong/gists{/gist_id}","starred_url":"https://api.github.com/users/TypeStrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TypeStrong/subscriptions","organizations_url":"https://api.github.com/users/TypeStrong/orgs","repos_url":"https://api.github.com/users/TypeStrong/repos","events_url":"https://api.github.com/users/TypeStrong/events{/privacy}","received_events_url":"https://api.github.com/users/TypeStrong/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TypeStrong/ts-loader","description":"TypeScript loader for webpack","fork":false,"url":"https://api.github.com/repos/TypeStrong/ts-loader","forks_url":"https://api.github.com/repos/TypeStrong/ts-loader/forks","keys_url":"https://api.github.com/repos/TypeStrong/ts-loader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TypeStrong/ts-loader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TypeStrong/ts-loader/teams","hooks_url":"https://api.github.com/repos/TypeStrong/ts-loader/hooks","issue_events_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/events{/number}","events_url":"https://api.github.com/repos/TypeStrong/ts-loader/events","assignees_url":"https://api.github.com/repos/TypeStrong/ts-loader/assignees{/user}","branches_url":"https://api.github.com/repos/TypeStrong/ts-loader/branches{/branch}","tags_url":"https://api.github.com/repos/TypeStrong/ts-loader/tags","blobs_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/refs{/sha}","trees_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TypeStrong/ts-loader/statuses/{sha}","languages_url":"https://api.github.com/repos/TypeStrong/ts-loader/languages","stargazers_url":"https://api.github.com/repos/TypeStrong/ts-loader/stargazers","contributors_url":"https://api.github.com/repos/TypeStrong/ts-loader/contributors","subscribers_url":"https://api.github.com/repos/TypeStrong/ts-loader/subscribers","subscription_url":"https://api.github.com/repos/TypeStrong/ts-loader/subscription","commits_url":"https://api.github.com/repos/TypeStrong/ts-loader/commits{/sha}","git_commits_url":"https://api.github.com/repos/TypeStrong/ts-loader/git/commits{/sha}","comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/comments{/number}","issue_comment_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/comments{/number}","contents_url":"https://api.github.com/repos/TypeStrong/ts-loader/contents/{+path}","compare_url":"https://api.github.com/repos/TypeStrong/ts-loader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TypeStrong/ts-loader/merges","archive_url":"https://api.github.com/repos/TypeStrong/ts-loader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TypeStrong/ts-loader/downloads","issues_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues{/number}","pulls_url":"https://api.github.com/repos/TypeStrong/ts-loader/pulls{/number}","milestones_url":"https://api.github.com/repos/TypeStrong/ts-loader/milestones{/number}","notifications_url":"https://api.github.com/repos/TypeStrong/ts-loader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TypeStrong/ts-loader/labels{/name}","releases_url":"https://api.github.com/repos/TypeStrong/ts-loader/releases{/id}","created_at":"2015-01-21T00:00:16Z","updated_at":"2015-09-28T18:41:50Z","pushed_at":"2015-09-29T02:38:21Z","git_url":"git://github.com/TypeStrong/ts-loader.git","ssh_url":"git@github.com:TypeStrong/ts-loader.git","clone_url":"https://github.com/TypeStrong/ts-loader.git","svn_url":"https://github.com/TypeStrong/ts-loader","homepage":null,"size":612,"stargazers_count":66,"watchers_count":66,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":18,"forks":16,"open_issues":18,"watchers":66,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69"},"html":{"href":"https://github.com/TypeStrong/ts-loader/pull/69"},"issue":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/issues/69"},"comments":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/TypeStrong/ts-loader/statuses/50003db542c72d0fb62a5714d620f5a1ba3b893d"}}}}