https://github.com/bcomnes/netlify-lambda-builder
wip experiment
https://github.com/bcomnes/netlify-lambda-builder
Last synced: 9 months ago
JSON representation
wip experiment
- Host: GitHub
- URL: https://github.com/bcomnes/netlify-lambda-builder
- Owner: bcomnes
- License: mit
- Created: 2018-06-20T21:46:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T01:36:30.000Z (about 8 years ago)
- Last Synced: 2024-12-17T15:42:34.976Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://netlify-lambda-builder.netlify.com/
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# netlify-lambda-builder [![stability][0]][1]
[![npm version][2]][3] [![build status][4]][5]
[![downloads][8]][9]
An experimental CLI and convention for building Netlify functions.
## Installation
```console
$ yarn add netlify-lambda-builder --dev
```
## Usage
```console
$ tree src-folder/
src-folder/
├── function-a
│ ├── index.js
│ └── package.json
└── function-b
├── index.js
└── package.json
$ netlify-lambda-builder src-folder --dest functions
# ... some time
$ tree src-folder/
src-folder/
├── function-a
│ ├── index.js
│ ├── package.json
│ └── node_modules
│ └── ...
└── function-b
├── index.js
└── package.json
└── node_modules
└── ...
$ tree functions/
functions/
├── function-a.zip
└── function-b.zip
```
Running `netlify-lambda-builder` will run `npm i` inside each function folder it discovers in the source dir. A function folder is a top level folder in the source folder that contains a package.json.
## License
[MIT](https://tldrlegal.com/license/mit-license)
[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
[2]: https://img.shields.io/npm/v/netlify-lambda-builder.svg?style=flat-square
[3]: https://npmjs.org/package/netlify-lambda-builder
[4]: https://img.shields.io/travis/bcomnes/netlify-lambda-builder/master.svg?style=flat-square
[5]: https://travis-ci.org/bcomnes/netlify-lambda-builder
[8]: http://img.shields.io/npm/dm/netlify-lambda-builder.svg?style=flat-square
[9]: https://npmjs.org/package/netlify-lambda-builder
[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[11]: https://github.com/feross/standard