{"action":"opened","issue":{"url":"https://api.github.com/repos/ripple/ripple-lib/issues/367","labels_url":"https://api.github.com/repos/ripple/ripple-lib/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/ripple/ripple-lib/issues/367/comments","events_url":"https://api.github.com/repos/ripple/ripple-lib/issues/367/events","html_url":"https://github.com/ripple/ripple-lib/issues/367","id":87650542,"number":367,"title":"dist/npm missing schemas (and other babel compile woes)","user":{"login":"sublimator","id":525211,"avatar_url":"https://avatars.githubusercontent.com/u/525211?v=3","gravatar_id":"","url":"https://api.github.com/users/sublimator","html_url":"https://github.com/sublimator","followers_url":"https://api.github.com/users/sublimator/followers","following_url":"https://api.github.com/users/sublimator/following{/other_user}","gists_url":"https://api.github.com/users/sublimator/gists{/gist_id}","starred_url":"https://api.github.com/users/sublimator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sublimator/subscriptions","organizations_url":"https://api.github.com/users/sublimator/orgs","repos_url":"https://api.github.com/users/sublimator/repos","events_url":"https://api.github.com/users/sublimator/events{/privacy}","received_events_url":"https://api.github.com/users/sublimator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-12T08:11:12Z","updated_at":"2015-06-12T08:11:12Z","closed_at":null,"body":"Few issues:\r\n* es6 runtime patches (like String.prototype.endsWith) seem to be missing\r\n* npm compile before each script run is slow\r\n\r\nWhen you try to run `npm run-script perf` it errors, when it can't find the `schemas/` folder. On top of that, if it's there (I sym linked it), there's another error due to a missing endsWith function. I looked that up, and it's apparently a String method only added in ES6.\r\n\r\nIt's also quite painful having to wait for the `npm run-script compile` each time (On my machine it takes about 5 seconds) and the logs are noisy. Apparently you can use `babel-node` which seems to do on the fly compiling (and String.endsWith seems available) in what feels like around a second.\r\n\r\nYou of course need to update the scripts from:\r\n```javascript\r\nvar Amount = require('../dist/npm').Amount;\r\n```\r\nto:\r\n```javascript\r\nvar Amount = require('../src').Amount;\r\n```\r\n\r\nI'm guessing there's probably other ES6 issues with the missing runtime?\r\n"}}