{"action":"created","issue":{"url":"https://api.github.com/repos/playcanvas/engine/issues/931","repository_url":"https://api.github.com/repos/playcanvas/engine","labels_url":"https://api.github.com/repos/playcanvas/engine/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/playcanvas/engine/issues/931/comments","events_url":"https://api.github.com/repos/playcanvas/engine/issues/931/events","html_url":"https://github.com/playcanvas/engine/pull/931","id":228456694,"number":931,"title":"Add npm support","user":{"login":"scarletsky","id":2386165,"avatar_url":"https://avatars3.githubusercontent.com/u/2386165?v=4","gravatar_id":"","url":"https://api.github.com/users/scarletsky","html_url":"https://github.com/scarletsky","followers_url":"https://api.github.com/users/scarletsky/followers","following_url":"https://api.github.com/users/scarletsky/following{/other_user}","gists_url":"https://api.github.com/users/scarletsky/gists{/gist_id}","starred_url":"https://api.github.com/users/scarletsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarletsky/subscriptions","organizations_url":"https://api.github.com/users/scarletsky/orgs","repos_url":"https://api.github.com/users/scarletsky/repos","events_url":"https://api.github.com/users/scarletsky/events{/privacy}","received_events_url":"https://api.github.com/users/scarletsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-05-13T07:51:37Z","updated_at":"2018-03-19T02:45:44Z","closed_at":"2018-03-18T06:13:18Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/playcanvas/engine/pulls/931","html_url":"https://github.com/playcanvas/engine/pull/931","diff_url":"https://github.com/playcanvas/engine/pull/931.diff","patch_url":"https://github.com/playcanvas/engine/pull/931.patch"},"body":"Refer to https://github.com/playcanvas/engine/pull/832, add npm support for playcanvas.\r\n\r\n\r\n**Update:**\r\n\r\nFor those guys who want to install an unofficial playcanvas, you can try:\r\n\r\n```\r\nnpm install @scarletsky/playcanvas\r\nor\r\nnpm install @scarletsky/playcanvas --no-optional\r\n\r\n$ node\r\n> const pc = require('@scarletsky/playcanvas')\r\nundefined\r\n> pc.Vec3\r\n[Function: Vec3]\r\n> pc.math\r\n{ DEG_TO_RAD: 0.017453292519943295,\r\n  RAD_TO_DEG: 57.29577951308232,\r\n  INV_LOG2: 1.4426950408889634,\r\n  clamp: [Function: clamp],\r\n  intToBytes24: [Function: intToBytes24],\r\n  intToBytes32: [Function: intToBytes32],\r\n  bytesToInt24: [Function: bytesToInt24],\r\n  bytesToInt32: [Function: bytesToInt32],\r\n  lerp: [Function: lerp],\r\n  lerpAngle: [Function: lerpAngle],\r\n  powerOfTwo: [Function: powerOfTwo],\r\n  nextPowerOfTwo: [Function: nextPowerOfTwo],\r\n  random: [Function: random],\r\n  smoothstep: [Function: smoothstep],\r\n  smootherstep: [Function: smootherstep],\r\n  intToBytes: [Function: intToBytes32],\r\n  bytesToInt: [Function: bytesToInt32] }\r\n>\r\n```\r\n\r\nHappy hacking 😄  !"},"comment":{"url":"https://api.github.com/repos/playcanvas/engine/issues/comments/374085718","html_url":"https://github.com/playcanvas/engine/pull/931#issuecomment-374085718","issue_url":"https://api.github.com/repos/playcanvas/engine/issues/931","id":374085718,"user":{"login":"scarletsky","id":2386165,"avatar_url":"https://avatars3.githubusercontent.com/u/2386165?v=4","gravatar_id":"","url":"https://api.github.com/users/scarletsky","html_url":"https://github.com/scarletsky","followers_url":"https://api.github.com/users/scarletsky/followers","following_url":"https://api.github.com/users/scarletsky/following{/other_user}","gists_url":"https://api.github.com/users/scarletsky/gists{/gist_id}","starred_url":"https://api.github.com/users/scarletsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarletsky/subscriptions","organizations_url":"https://api.github.com/users/scarletsky/orgs","repos_url":"https://api.github.com/users/scarletsky/repos","events_url":"https://api.github.com/users/scarletsky/events{/privacy}","received_events_url":"https://api.github.com/users/scarletsky/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T02:45:44Z","updated_at":"2018-03-19T02:45:44Z","author_association":"CONTRIBUTOR","body":"@willeastcott \r\nSome articles say webpack is better when you build application, while rollup is good for libraries.\r\nThe PlayEngine framework also use rollup as build tool. 😃 \r\n\r\nhttps://github.com/scarletsky/playengine/blob/master/rollup.config.js"}}
{"actor":{"display_login":"scarletsky"}}