safepay-aws v0.3.0
safepay-aws
Get started quickly with safepay aws lambdas, the distribution helps take the complexity out of coding by providing JavaScript functions for safepay lambdas including pay, refund or cancel transaction. The single, downloadable package includes the safepay JavaScript Library and documentation.
Highlights
AWS Lambda:
AWS Lambdaallows developers to deploy packages of executable JavaScript code to the AWS infrastructure and make it executable without having to worry about managing servers.webpack:
webpackis used to create optimized bundles from JavaScript code that leverage ES6 modules.babel:
babeltranspiles JavaScript code to JavaScript code that is compatible with various runtimes.TypeScript: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
bunyan:
bunyanprovides structured JSON logging.ava:
avais a test runner.tslint:
tslintis a TypeScript linter.yarn:
yarnis a dependency manager that is an alternative tonpm.nyc:
nycprovides a command-line interface for calculating test code coverage with istanbul.chalk:
chalkis used to add color to console output.proxyquire:
proxyquireis used to substitute mock modules at runtime when running tests.
Scripts
yarn test: Use this command to lint, compiletest/**/*files with TypeScript, and run tests withavaandnyc. We use the following glob pattern for unit tests:test/**/*.test.js.yarn build: Use this command to compile the lambda functions and then create distribution folderwork/dist/.yarn bundle: Use this command to build the lambda functions and then create zip files atwork/dist/zip/*.zip.yarn lint: Use this command to lint thesrc/**/*andtest/**/*files withtslint(does not require compilation).
