$ npm install
$ npm start
Last active
August 29, 2015 14:24
-
-
Save mkscrg/62d624a118e2722313fe to your computer and use it in GitHub Desktop.
PhantomJS + es5-shim + Immutable.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "phantom-es5shim-immutable", | |
"version": "1.0.0", | |
"scripts": { | |
"start": "node_modules/.bin/phantomjs test.js" | |
}, | |
"dependencies": { | |
"phantomjs": "^1.9.17" | |
}, | |
"devDependencies": { | |
"es5-shim": "^4.1.7", | |
"immutable": "^3.7.4" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<script src="node_modules/es5-shim/es5-shim.js"></script> | |
<script src="node_modules/immutable/dist/immutable.js"></script> | |
</head> | |
<body></body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); | |
}; | |
page.open('./test.html', function() { | |
phantom.exit(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment