{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel-library-boilerplate/issues/149","labels_url":"https://api.github.com/repos/babel/babel-library-boilerplate/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel-library-boilerplate/issues/149/comments","events_url":"https://api.github.com/repos/babel/babel-library-boilerplate/issues/149/events","html_url":"https://github.com/babel/babel-library-boilerplate/issues/149","id":74588340,"number":149,"title":"integrate phantomJS?","user":{"login":"marcorra","id":10955918,"avatar_url":"https://avatars.githubusercontent.com/u/10955918?v=3","gravatar_id":"","url":"https://api.github.com/users/marcorra","html_url":"https://github.com/marcorra","followers_url":"https://api.github.com/users/marcorra/followers","following_url":"https://api.github.com/users/marcorra/following{/other_user}","gists_url":"https://api.github.com/users/marcorra/gists{/gist_id}","starred_url":"https://api.github.com/users/marcorra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcorra/subscriptions","organizations_url":"https://api.github.com/users/marcorra/orgs","repos_url":"https://api.github.com/users/marcorra/repos","events_url":"https://api.github.com/users/marcorra/events{/privacy}","received_events_url":"https://api.github.com/users/marcorra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel-library-boilerplate/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/babel/babel-library-boilerplate/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":true,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-09T05:04:49Z","updated_at":"2015-05-14T20:58:57Z","closed_at":"2015-05-10T04:07:54Z","body":"@jmeas Can you integrate phantomjs with this boilerplate? Useless if you can't access document and window. \r\n\r\nYour whole setup do it very hard for other to integrate anything on this boilerplate.\r\n\r\nThis is my failure steps and 5 hour lost of time:\r\n\r\nFirst of all tutorials and other expertise advices and stackoverflow fails.\r\n\r\nThen... I have hard time doing a integration with your setup. I see there are no possibilities to merge this with your browserify, because that one is not used on tests. The tutorials you find with Google point you here.\r\nAnyway. You need to open port 3000. For this I tried browser-sync, and linked it to  the tests/runner.html. A browsers pops up, but no phantomjs.\r\n\r\nSo next...\r\nThen we have to look at that browserif you are not using in tests and your two test taks. This sens me to the test/setup/setup.js and node.js in same folder.  \r\n\r\nI guess it's inside here somewhere you need to add in PhantomJS?\r\n\r\nFor if you look into the runner.html - a file that should have been launched with phantomjs, there is no way as I see it to launch phantomjs from here.\r\n\r\nSo I'm confused and therefor I ask you to implement this.\r\n\r\nIn the real world is just to open port 3000, install phantomjs and integrate it the normal way inside the gulp.js file.\r\n\r\nNot possible here.\r\n\r\nTo simplify this. I just tried this once from scratch with a tutorial found on Google. Took me 2 minutes to set up and fully working. 5 hours tries with this boilerplate and no success\r\n\r\n\r\nIf it helps, this error message I get most of the time:\r\n\r\nError loading resource http://localhost:35729/livereload.js (1). Details: Connection refused\r\nFailed to start mocha: Init timeout\r\nUnsafe JavaScript attempt to access frame with URL about:blank from frame with URL file:///E:/xampp12/htdocs/node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee. Domains, protocols and ports must match.\r\n\r\nAnd I also tried to change protocols and ports."},"comment":{"url":"https://api.github.com/repos/babel/babel-library-boilerplate/issues/comments/102167656","html_url":"https://github.com/babel/babel-library-boilerplate/issues/149#issuecomment-102167656","issue_url":"https://api.github.com/repos/babel/babel-library-boilerplate/issues/149","id":102167656,"user":{"login":"thejameskyle","id":952783,"avatar_url":"https://avatars.githubusercontent.com/u/952783?v=3","gravatar_id":"","url":"https://api.github.com/users/thejameskyle","html_url":"https://github.com/thejameskyle","followers_url":"https://api.github.com/users/thejameskyle/followers","following_url":"https://api.github.com/users/thejameskyle/following{/other_user}","gists_url":"https://api.github.com/users/thejameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/thejameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejameskyle/subscriptions","organizations_url":"https://api.github.com/users/thejameskyle/orgs","repos_url":"https://api.github.com/users/thejameskyle/repos","events_url":"https://api.github.com/users/thejameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/thejameskyle/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T20:58:57Z","updated_at":"2015-05-14T20:58:57Z","body":"I'm leaving this note here for historical purposes.\r\n\r\nThe Babel project has an [official code of conduct](https://github.com/babel/babel/blob/master/CODE_OF_CONDUCT.md) and the behavior seen here was severely inappropriate. Contributors to these projects do so out of their own desire and without much reward.\r\n\r\nIn the future, if anyone feels attacked or witnesses someone breaking the code of conduct within the Babel community, please feel free to contact me personally (me@thejameskyle.com) or open an issue and it will be dealt with.\r\n\r\nAlso, suicide and self-harm is not a joke. If it was meant seriously then I encourage you to call the National Suicide Prevention Lifeline at 1 (800) 273-8255."}}