-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to run phantomas locally #112
Comments
@shama, thanks for your interest in extending phantomas! Please shed some light on "This way other modules could use this library as a dependency and extend it on npm.". I'm curious to know how can node.js based code use phantomas code (without running it via PhantomJS).
I'm looking forward to see your implementation. |
Awesome! Glad to hear. I'll get started on an implementation to propose. Here is how we're using phantomjs locally with Grunt: https://github.com/gruntjs/grunt-lib-phantomjs Our qunit and jasmine task use that library to run tests. It dynamically creates a tmp script file and spawns a locally installed phantomjs to run it. We have it tested across osx, windows, linux on node v0.8 and v0.10 currently. |
Hey @shama I did some local phantomjs as well. Need any help working on this? |
Random idea, guys. What do you think about phantomas module for NodeJS that will expose an API for spawning phantomas process and getting results? var phantomas = require('phantomas');
phantomas(url, options, function(err, data) {
// callback or promise pattern
}); |
It would be a good idea. |
Hi, phantomas doesn't work locally for me:
Could you please help in resolving this issue. |
What does |
Thank you for your response.
My mistake, didn't observe that server was stopped. |
Hi! Thanks for this fantastic library! It would be great if I could install and use phantomas locally. This way other modules could use this library as a dependency and extend it on npm. My use case is I'm writing a grunt plugin for performance metrics.
The other benefit is installing is more idiomatic to node.js where users are only asked to do:
npm install npm test
with a
package.json
like:I'd be happy to help out implementing this so it runs both globally and locally. Thanks!
The text was updated successfully, but these errors were encountered: