Add documentation

This commit is contained in:
Philipp Muens 2017-06-28 09:08:44 +02:00
parent 86439ff07c
commit 9727492594
4 changed files with 96 additions and 0 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.