safepay-aws
v0.3.0
Published
This is the safepay aws lambda distribuition code (node Js)
Downloads
20
Maintainers
Readme
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 Lambda
allows developers to deploy packages of executable JavaScript code to the AWS infrastructure and make it executable without having to worry about managing servers.webpack:
webpack
is used to create optimized bundles from JavaScript code that leverage ES6 modules.babel:
babel
transpiles 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:
bunyan
provides structured JSON logging.ava:
ava
is a test runner.tslint:
tslint
is a TypeScript linter.yarn:
yarn
is a dependency manager that is an alternative tonpm
.nyc:
nyc
provides a command-line interface for calculating test code coverage with istanbul.chalk:
chalk
is used to add color to console output.proxyquire:
proxyquire
is 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 withava
andnyc
. 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).