2.1.1 • Published 6 years ago

ion81 v2.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Simple & Extensible Serverless

Note the plugin in .serverless_plugins to zip functions in an easy way and monkey patch serveless bug so we can do it fast.

You must manually patch serverless In serverless/lib/plugins/package/lib/packageService.js

var path = require("path");

packageFunction(functionName) { const functionObject = this.serverless.service.getFunction(functionName); const funcPackageConfig = functionObject.package || {};

const exclude = this.getExcludes(funcPackageConfig.exclude); const include = this.getIncludes(funcPackageConfig.include); const zipFileName = ${functionName}.zip;

if( functionObject.package && functionObject.package.ignore ){ return new BbPromise((resolve, reject) => { var artifactPath = path.join(this.serverless.config.servicePath, '.serverless', functionName + ".zip"); functionObject.artifact = artifactPath; resolve(artifactPath); }); }

return this.zipService(exclude, include, zipFileName).then(artifactPath => { functionObject.artifact = artifactPath; return artifactPath; }); }

Run it with npm start instead of sls so that you use the local version

The rest is normal serverless

.ENV FILE for LocalDev AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION=us-east-1

For Production use serverless env vars

2.1.1

6 years ago

2.1.0

6 years ago

2.0.20

6 years ago

2.0.19

6 years ago

2.0.17

6 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago