0.0.1 • Published 9 years ago
ember-cli-deploy-lambda v0.0.1
ember-cli-deploy-lambda
This plugin builds out and deploys an AWS Lambda function for serving index.html, presumably as an API Gateway integration. The Lambda function also acts as a middleware layer, e.g. for handling redirects, 404s, etc.
Usage
- This plugin expects an instance of route-recognizer to be exported by
router.jswithin a top-levelserverdirectory in the application. - In the
didBuildhook of theember-cli-deploypipeline, the AWS Lambda function package is created. Its directory is specified by thelambda-dist-dirconfiguration option, defaulting tolambda-dist-dir. - Any code in
serverThis package will copy the application'sserverdirectory for handling any middleware aspects of serving, as well as the builtindex.htmlto serve.
Installation
git clonethis repositorynpm installbower install
Running
ember server- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:testallto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
0.0.1
9 years ago