build.sh 382 B

123456789101112131415161718
  1. #!/bin/bash
  2. # "set -e" makes it so if any step fails, the script aborts:
  3. set -e
  4. cd "${BASH_SOURCE%/*}"
  5. # Build Lambda package
  6. rm -rf build
  7. mkdir build
  8. cd ../..
  9. cp -r app.js config.js lib locales package-lock.json package.json public routes views aws/brick/build
  10. cd aws/brick/build
  11. cp ../../src/* .
  12. npm install
  13. npm install aws-serverless-express
  14. cd ../build
  15. zip -r ../lambda.zip .