Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nya1/serverless-ignore
Add a .slsignore to you serverless project
https://github.com/nya1/serverless-ignore
ignore serverless serverless-ignore slsignore
Last synced: 10 days ago
JSON representation
Add a .slsignore to you serverless project
- Host: GitHub
- URL: https://github.com/nya1/serverless-ignore
- Owner: nya1
- Created: 2018-05-05T09:11:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-10T07:44:32.000Z (over 2 years ago)
- Last Synced: 2024-10-12T00:27:05.365Z (26 days ago)
- Topics: ignore, serverless, serverless-ignore, slsignore
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-ignore
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm](https://img.shields.io/npm/v/serverless-ignore.svg)](https://www.npmjs.com/package/serverless-ignore) [![npm](https://img.shields.io/npm/dt/serverless-ignore.svg)](https://www.npmjs.com/package/serverless-ignore)
Serverless plugin to ignore files like a .gitignore
#### Why
* Remove long list of hardcoded exclude files from serverless.yml
* Better managing between different serverless.yml (just add a different .slsignore)
* Same approach of .gitignore#### Install
`npm install --save-dev serverless-ignore`
Note:
* for serverless version < 2 use version ^0.1.6
#### Usage
Add `serverless-ignore` to your plugins list (serverless.yml)
```
plugins:
- serverless-ignore
```Add a `.slsignore` in your root folder with a .gitignore-like syntax with all the files you want to ignore
Example:
```
# it works like a .gitignore
# for sls
README.md
*.log# ignore aws-sdk
node_modules/aws-sdk/*.env.example
.git/*
__tests__/*
```