├── .gitignore ├── README.md ├── bin ├── install │ ├── create-function.sh │ ├── create-role-with-policy.sh │ └── lambda-install-aws.sh ├── redeploy.sh ├── run.sh ├── update-function-code.sh └── zip-package.sh ├── docs └── MINI-FRAMEWORK.md ├── index.js ├── lib ├── bootstrap │ ├── nightmare-lambda-pack.js │ └── xvfb.js └── nightmare-snapper.js ├── package.json ├── projectname.txt ├── snap.js ├── test └── events │ ├── empty.json │ └── yahoo.json └── var ├── dist └── .gitkeep └── log └── .gitkeep /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /bin/install/create-function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/install/create-function.sh -------------------------------------------------------------------------------- /bin/install/create-role-with-policy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/install/create-role-with-policy.sh -------------------------------------------------------------------------------- /bin/install/lambda-install-aws.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/install/lambda-install-aws.sh -------------------------------------------------------------------------------- /bin/redeploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/redeploy.sh -------------------------------------------------------------------------------- /bin/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/run.sh -------------------------------------------------------------------------------- /bin/update-function-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/update-function-code.sh -------------------------------------------------------------------------------- /bin/zip-package.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/bin/zip-package.sh -------------------------------------------------------------------------------- /docs/MINI-FRAMEWORK.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/docs/MINI-FRAMEWORK.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/index.js -------------------------------------------------------------------------------- /lib/bootstrap/nightmare-lambda-pack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/lib/bootstrap/nightmare-lambda-pack.js -------------------------------------------------------------------------------- /lib/bootstrap/xvfb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/lib/bootstrap/xvfb.js -------------------------------------------------------------------------------- /lib/nightmare-snapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/lib/nightmare-snapper.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /projectname.txt: -------------------------------------------------------------------------------- 1 | nightmare-tutorial -------------------------------------------------------------------------------- /snap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimkir/nightmare-lambda-tutorial/HEAD/snap.js -------------------------------------------------------------------------------- /test/events/empty.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/events/yahoo.json: -------------------------------------------------------------------------------- 1 | { 2 | "url" : "http://www.yahoo.com" 3 | } -------------------------------------------------------------------------------- /var/dist/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /var/log/.gitkeep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------