mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Add documentation
This commit is contained in:
parent
86439ff07c
commit
9727492594
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user