serverless-plugin-common-excludes
Advanced tools
Comparing version 2.4.0 to 3.0.0
@@ -36,6 +36,10 @@ 'use strict'; | ||
'*travis.yml', | ||
'.gitlab-ci.yml', | ||
'*.md', | ||
'*.apib', | ||
'.vscode/**', | ||
'package-lock.json', | ||
'.npm-upgrade.json', | ||
'sonar-project.properties', | ||
'sonar-coverage.info', | ||
'rollup.config.*', | ||
@@ -49,4 +53,3 @@ 'yarn.lock', | ||
'tests/**', | ||
// aws-sdk is included in Lambda | ||
'node_modules/**/aws-sdk/**', | ||
'CODEOWNERS', | ||
// common things that node_modules fail to .npmignore | ||
@@ -86,8 +89,2 @@ 'node_modules/**/*.md', | ||
'node_modules/**/OWNERS', | ||
'node_modules/**/license*', | ||
'node_modules/**/licence*', | ||
'node_modules/**/LICENSE*', | ||
'node_modules/**/LICENCE*', | ||
'node_modules/**/License*', | ||
'node_modules/**/Licence*', | ||
'node_modules/**/*.iml', | ||
@@ -106,2 +103,5 @@ 'node_module/**/*.bash_completion.in', | ||
'node_modules/**/aws-xray-sdk-core/doc-src/**', | ||
// AWS SDK unused dist files | ||
'node_modules/**/aws-sdk/dist/**', | ||
'node_modules/**/aws-sdk/dist-tools/**', | ||
]) | ||
@@ -108,0 +108,0 @@ )); |
{ | ||
"name": "serverless-plugin-common-excludes", | ||
"version": "2.4.0", | ||
"version": "3.0.0", | ||
"description": "Adds some common exclude items to your package exclude", | ||
@@ -5,0 +5,0 @@ "main": "common-excludes.js", |
# serverless-plugin-common-excludes | ||
This plugin adds some common items to the `package: exclude` configuration of your serverless project to make it smaller. | ||
> Note: This plugin no longer excludes the `aws-sdk` which is in line with AWS best practices (bring your own SDK). | ||
`serverless-plugin-include-dependencies` works with this plugin! | ||
This plugin adds some common unnecessary items (such as docs, test code, unused configuration files, etc.) to the `package: exclude` configuration of your Serverless project to make it smaller. | ||
Check out which files are excluded [here](https://github.com/dougmoscrop/serverless-plugin-common-excludes/blob/master/common-excludes.js). | ||
[serverless-plugin-include-dependencies](https://github.com/dougmoscrop/serverless-plugin-include-dependencies) works with this plugin. | ||
## Installation | ||
Install the plugin: | ||
```bash | ||
npm install serverless-plugin-common-excludes --save-dev | ||
``` | ||
Include the plugin in your `serverless.yml`: | ||
```yaml | ||
plugins: | ||
- serverless-plugin-common-excludes | ||
``` | ||
4930
26