From 972749259488458dbb620cff7af026b730b923bf Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Wed, 28 Jun 2017 09:08:44 +0200 Subject: [PATCH] Add documentation --- docs/providers/aws/guide/packaging.md | 24 +++++++++++++++++++++ docs/providers/azure/guide/packaging.md | 24 +++++++++++++++++++++ docs/providers/google/guide/packaging.md | 24 +++++++++++++++++++++ docs/providers/openwhisk/guide/packaging.md | 24 +++++++++++++++++++++ 4 files changed, 96 insertions(+) diff --git a/docs/providers/aws/guide/packaging.md b/docs/providers/aws/guide/packaging.md index fa9878c20..56a7b0b9f 100644 --- a/docs/providers/aws/guide/packaging.md +++ b/docs/providers/aws/guide/packaging.md @@ -131,6 +131,30 @@ functions: individually: true ``` +### Exclude functions from packaging + +Sometimes you might want to exclude functions from the packaging process. The `disable` config parameter which can be defined in the `package` config on the function level enables you a way to mark a function for exclusion. + +```yml +service: my-service + +package: + individually: true + exclude: + - '**/*' + +functions: + hello: + handler: handler.hello + package: + include: + - handler.js + world: + handler: handler.hello + package: + disable: true +``` + ### Development dependencies Serverless will auto-detect and exclude development dependencies based on the runtime your service is using. diff --git a/docs/providers/azure/guide/packaging.md b/docs/providers/azure/guide/packaging.md index 040d03272..2538488c9 100644 --- a/docs/providers/azure/guide/packaging.md +++ b/docs/providers/azure/guide/packaging.md @@ -152,6 +152,30 @@ functions: individually: true ``` +### Exclude functions from packaging + +Sometimes you might want to exclude functions from the packaging process. The `disable` config parameter which can be defined in the `package` config on the function level enables you a way to mark a function for exclusion. + +```yml +service: my-service + +package: + individually: true + exclude: + - '**/*' + +functions: + hello: + handler: handler.hello + package: + include: + - handler.js + world: + handler: handler.hello + package: + disable: true +``` + ### Development dependencies Serverless will auto-detect and exclude development dependencies based on the runtime your service is using. diff --git a/docs/providers/google/guide/packaging.md b/docs/providers/google/guide/packaging.md index 5f3ab133f..e33b1aba8 100644 --- a/docs/providers/google/guide/packaging.md +++ b/docs/providers/google/guide/packaging.md @@ -124,6 +124,30 @@ functions: individually: true ``` +### Exclude functions from packaging + +Sometimes you might want to exclude functions from the packaging process. The `disable` config parameter which can be defined in the `package` config on the function level enables you a way to mark a function for exclusion. + +```yml +service: my-service + +package: + individually: true + exclude: + - '**/*' + +functions: + hello: + handler: handler.hello + package: + include: + - handler.js + world: + handler: handler.hello + package: + disable: true +``` + ### Development dependencies Serverless will auto-detect and exclude development dependencies based on the runtime your service is using. diff --git a/docs/providers/openwhisk/guide/packaging.md b/docs/providers/openwhisk/guide/packaging.md index 63e9bf504..b779b72ed 100644 --- a/docs/providers/openwhisk/guide/packaging.md +++ b/docs/providers/openwhisk/guide/packaging.md @@ -118,6 +118,30 @@ functions: - some-file.js ``` +### Exclude functions from packaging + +Sometimes you might want to exclude functions from the packaging process. The `disable` config parameter which can be defined in the `package` config on the function level enables you a way to mark a function for exclusion. + +```yml +service: my-service + +package: + individually: true + exclude: + - '**/*' + +functions: + hello: + handler: handler.hello + package: + include: + - handler.js + world: + handler: handler.hello + package: + disable: true +``` + ### Development dependencies Serverless will auto-detect and exclude development dependencies based on the runtime your service is using.