Last active
October 14, 2016 05:35
-
-
Save ikeisuke/6cf342a6b8cd744b21ecfc6e99294c93 to your computer and use it in GitHub Desktop.
serverlessでデプロイパッケージからディレクトリごとをexcludeする ref: http://qiita.com/ikeisuke/items/861b6351b17947cfe358
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ uname -a | |
| Darwin xxxxxx 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64 | |
| $ node -v | |
| v6.7.0 | |
| $ serverless -v | |
| 1.0.2 | |
| $ cat /usr/local/lib/node_modules/serverless/node_modules/glob/package.json | grep '"version"' | |
| "version": "7.1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| '.git', | |
| '.gitignore', | |
| '.DS_Store', | |
| 'npm-debug.log', | |
| 'serverless.yaml', | |
| 'serverless.yml', | |
| '.serverless', | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package: | |
| exclude: | |
| - .git/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const files = glob.sync('**', { | |
| cwd: servicePath, | |
| ignore: exclude, | |
| dot: true, | |
| silent: true, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package: | |
| exclude: | |
| - .git/** | |
| - test | |
| - test/** | |
| - node_modules/.bin | |
| - node_modules/.bin/* | |
| - node_modules/aws-sdk | |
| - node_modules/aws-sdk/** | |
| - event.json | |
| - README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment