wesleyhales / speedgun

http://speedgun.io
88 stars 4 forks source link

Running speedgun.js is too complicated. #15

Closed wesleyhales closed 9 years ago

wesleyhales commented 9 years ago

It should be an executable shortcut (see CasperJS). An obvious solution is to make it npm install-able.

wesleyhales commented 9 years ago

Examples where a better cli would replace my current arg lookup:

soulgalore commented 9 years ago

yep will start looking at it today.

soulgalore commented 9 years ago

yep so installing via npm works fine now. I can have a look later at the problematic config.json file to check how we can solve that. Also would be nice to polish the output and start adding verbose logging:

 $ speedgun http://speedgun.io
:::::::::::calling entrypoint: load
:::::::::::assign  [object Object] onInitialized
:::::::::::assign  [object Object] onLoadStarted
:::::::::::assign  [object Object] onLoadFinished
:::::::::::assign  [object Object] onNavigationRequested
:::::::::::assign  [object Object] onPageCreated
:::::::::::assign  [object Object] onResourceRequested
:::::::::::assign  [object Object] onResourceReceived
###### onLoadStarted 
###### onInitialized http://speedgun.io/
Print report running with timestamp:  
Rendering Screenshot to reports/http_speedgun.io/1423832770396.png
Writing report data to:  reports/http_speedgun.io/speedgun-json.json
!!exit phantom!!

I can do that if the cli looks ok.

wesleyhales commented 9 years ago

cli looks great! thanks!