2.1.1 • Published 7 years ago

ion81 v2.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 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

7 years ago

2.1.0

7 years ago

2.0.20

7 years ago

2.0.19

7 years ago

2.0.17

7 years ago

2.0.16

7 years ago

2.0.15

7 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago