{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/docs/pulls/comments/118318260","pull_request_review_id":40095154,"id":118318260,"diff_hunk":"@@ -0,0 +1,121 @@\n+---\n+title: Create an element project with the Polymer CLI\n+---\n+\n+<!-- toc -->\n+\n+This section shows you how to start an element project.\n+\n+1.  Create a directory for your element project. It's best practice for the name\n+    of your project directory to match the name of your element.\n+\n+    <pre><code>mkdir <var>my-el</var> && cd <var>my-el</var></code></pre>\n+\n+    Where <code><var>my-el</var></code> is the name of the element you're\n+    creating.\n+\n+1.  Initialize your element. Polymer CLI asks you a few\n+    questions as it sets up your element project.\n+\n+        polymer init\n+\n+1.  Select `polymer-2-element`.\n+\n+1.  Enter a name for your element.\n+\n+    The [custom elements\n+    specification](https://www.w3.org/TR/2016/WD-custom-elements-20160226/#concepts) requires the\n+    element name to contain a dash.\n+    {.alert .alert-info}\n+\n+1.  Enter a description of the element.\n+\n+At this point, Polymer CLI generates files and directories for your element, and installs your \n+project's dependencies.\n+\n+## Element project layout\n+\n+After the initialization process Polymer CLI generates the following files and directories.\n+\n+*   `bower.json`. Configuration file for Bower.\n+*   `bower_components/`. Project dependencies. See [Manage dependencies](#dependencies).\n+*   `demo/index.html`. Demo of <code><var>my-el</var></code>`.html`.\n+*   `index.html`. Automatically-generated API reference.\n+*   <code><var>my-el</var></code>`.html`. Element source code.\n+*   `test/`<code><var>my-el</var></code>`_test.html`. Unit tests for\n+    the element.\n+\n+## Manage dependencies and HTML imports {#dependencies}\n+\n+### Use Bower to manage dependencies\n+\n+Polymer CLI uses [Bower](http://bower.io) for dependency management.\n+\n+Dependencies are stored in the `bower_components` directory. You should never manually alter the\n+contents of this directory.\n+\n+Use the Bower CLI to manage dependencies.","path":"app/2.0/docs/tools/create-element-polymer-cli.md","position":57,"original_position":57,"commit_id":"38030da5c8eaf4ed2adb7aef22660c61cb9b53bc","original_commit_id":"38030da5c8eaf4ed2adb7aef22660c61cb9b53bc","user":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars2.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"body":"🎩 what about that `polymer install` command?","created_at":"2017-05-24T17:41:23Z","updated_at":"2017-05-24T17:46:27Z","html_url":"https://github.com/Polymer/docs/pull/2130#discussion_r118318260","pull_request_url":"https://api.github.com/repos/Polymer/docs/pulls/2130","_links":{"self":{"href":"https://api.github.com/repos/Polymer/docs/pulls/comments/118318260"},"html":{"href":"https://github.com/Polymer/docs/pull/2130#discussion_r118318260"},"pull_request":{"href":"https://api.github.com/repos/Polymer/docs/pulls/2130"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/docs/pulls/2130","id":120724007,"html_url":"https://github.com/Polymer/docs/pull/2130","diff_url":"https://github.com/Polymer/docs/pull/2130.diff","patch_url":"https://github.com/Polymer/docs/pull/2130.patch","issue_url":"https://api.github.com/repos/Polymer/docs/issues/2130","number":2130,"state":"open","locked":false,"title":"Restructure polymer cli docs","user":{"login":"katejeffreys","id":22203617,"avatar_url":"https://avatars0.githubusercontent.com/u/22203617?v=3","gravatar_id":"","url":"https://api.github.com/users/katejeffreys","html_url":"https://github.com/katejeffreys","followers_url":"https://api.github.com/users/katejeffreys/followers","following_url":"https://api.github.com/users/katejeffreys/following{/other_user}","gists_url":"https://api.github.com/users/katejeffreys/gists{/gist_id}","starred_url":"https://api.github.com/users/katejeffreys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katejeffreys/subscriptions","organizations_url":"https://api.github.com/users/katejeffreys/orgs","repos_url":"https://api.github.com/users/katejeffreys/repos","events_url":"https://api.github.com/users/katejeffreys/events{/privacy}","received_events_url":"https://api.github.com/users/katejeffreys/received_events","type":"User","site_admin":false},"body":"Addresses #2071 in response to @FredKSchott's comments in #2063 ","created_at":"2017-05-16T00:47:58Z","updated_at":"2017-05-24T17:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4807535e93307d96cd80fca814ba71605cab12dd","assignee":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars2.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"assignees":[{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars2.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"arthurevans","id":1149422,"avatar_url":"https://avatars1.githubusercontent.com/u/1149422?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurevans","html_url":"https://github.com/arthurevans","followers_url":"https://api.github.com/users/arthurevans/followers","following_url":"https://api.github.com/users/arthurevans/following{/other_user}","gists_url":"https://api.github.com/users/arthurevans/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurevans/subscriptions","organizations_url":"https://api.github.com/users/arthurevans/orgs","repos_url":"https://api.github.com/users/arthurevans/repos","events_url":"https://api.github.com/users/arthurevans/events{/privacy}","received_events_url":"https://api.github.com/users/arthurevans/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/docs/pulls/2130/commits","review_comments_url":"https://api.github.com/repos/Polymer/docs/pulls/2130/comments","review_comment_url":"https://api.github.com/repos/Polymer/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/docs/issues/2130/comments","statuses_url":"https://api.github.com/repos/Polymer/docs/statuses/38030da5c8eaf4ed2adb7aef22660c61cb9b53bc","head":{"label":"Polymer:restructure-cli-docs","ref":"restructure-cli-docs","sha":"38030da5c8eaf4ed2adb7aef22660c61cb9b53bc","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars0.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":7804910,"name":"docs","full_name":"Polymer/docs","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars0.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/docs","description":"Documentation for Polymer","fork":false,"url":"https://api.github.com/repos/Polymer/docs","forks_url":"https://api.github.com/repos/Polymer/docs/forks","keys_url":"https://api.github.com/repos/Polymer/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/docs/teams","hooks_url":"https://api.github.com/repos/Polymer/docs/hooks","issue_events_url":"https://api.github.com/repos/Polymer/docs/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/docs/events","assignees_url":"https://api.github.com/repos/Polymer/docs/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/docs/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/docs/tags","blobs_url":"https://api.github.com/repos/Polymer/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/docs/languages","stargazers_url":"https://api.github.com/repos/Polymer/docs/stargazers","contributors_url":"https://api.github.com/repos/Polymer/docs/contributors","subscribers_url":"https://api.github.com/repos/Polymer/docs/subscribers","subscription_url":"https://api.github.com/repos/Polymer/docs/subscription","commits_url":"https://api.github.com/repos/Polymer/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/docs/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/docs/merges","archive_url":"https://api.github.com/repos/Polymer/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/docs/downloads","issues_url":"https://api.github.com/repos/Polymer/docs/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/docs/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/docs/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/docs/deployments","created_at":"2013-01-24T19:11:00Z","updated_at":"2017-05-22T14:50:57Z","pushed_at":"2017-05-24T01:15:04Z","git_url":"git://github.com/Polymer/docs.git","ssh_url":"git@github.com:Polymer/docs.git","clone_url":"https://github.com/Polymer/docs.git","svn_url":"https://github.com/Polymer/docs","homepage":"https://www.polymer-project.org","size":114541,"stargazers_count":1007,"watchers_count":1007,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2637,"mirror_url":null,"open_issues_count":154,"forks":2637,"open_issues":154,"watchers":1007,"default_branch":"master"}},"base":{"label":"Polymer:master","ref":"master","sha":"e63421c72f7f9288626c3c5a2dc7ad8051fd8869","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars0.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":7804910,"name":"docs","full_name":"Polymer/docs","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars0.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/docs","description":"Documentation for Polymer","fork":false,"url":"https://api.github.com/repos/Polymer/docs","forks_url":"https://api.github.com/repos/Polymer/docs/forks","keys_url":"https://api.github.com/repos/Polymer/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/docs/teams","hooks_url":"https://api.github.com/repos/Polymer/docs/hooks","issue_events_url":"https://api.github.com/repos/Polymer/docs/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/docs/events","assignees_url":"https://api.github.com/repos/Polymer/docs/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/docs/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/docs/tags","blobs_url":"https://api.github.com/repos/Polymer/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/docs/languages","stargazers_url":"https://api.github.com/repos/Polymer/docs/stargazers","contributors_url":"https://api.github.com/repos/Polymer/docs/contributors","subscribers_url":"https://api.github.com/repos/Polymer/docs/subscribers","subscription_url":"https://api.github.com/repos/Polymer/docs/subscription","commits_url":"https://api.github.com/repos/Polymer/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/docs/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/docs/merges","archive_url":"https://api.github.com/repos/Polymer/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/docs/downloads","issues_url":"https://api.github.com/repos/Polymer/docs/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/docs/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/docs/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/docs/deployments","created_at":"2013-01-24T19:11:00Z","updated_at":"2017-05-22T14:50:57Z","pushed_at":"2017-05-24T01:15:04Z","git_url":"git://github.com/Polymer/docs.git","ssh_url":"git@github.com:Polymer/docs.git","clone_url":"https://github.com/Polymer/docs.git","svn_url":"https://github.com/Polymer/docs","homepage":"https://www.polymer-project.org","size":114541,"stargazers_count":1007,"watchers_count":1007,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2637,"mirror_url":null,"open_issues_count":154,"forks":2637,"open_issues":154,"watchers":1007,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/docs/pulls/2130"},"html":{"href":"https://github.com/Polymer/docs/pull/2130"},"issue":{"href":"https://api.github.com/repos/Polymer/docs/issues/2130"},"comments":{"href":"https://api.github.com/repos/Polymer/docs/issues/2130/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/docs/pulls/2130/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/docs/pulls/2130/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/docs/statuses/38030da5c8eaf4ed2adb7aef22660c61cb9b53bc"}}}}
{"actor":{"display_login":"FredKSchott"}}