netlify-lambda-builder
A Netlify functions builder experiment
Last updated 2 years ago by bret .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install netlify-lambda-builder 
SYNC missed versions from official npm registry.

netlify-lambda-builder stability

npm version build status downloads

An experimental CLI and convention for building Netlify functions.

Installation

$ yarn add netlify-lambda-builder --dev

Usage

$ 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

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

1 Versions

  • 1.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |