Gathering detailed insights and metrics for generator-mono-serverless
Gathering detailed insights and metrics for generator-mono-serverless
Gathering detailed insights and metrics for generator-mono-serverless
Gathering detailed insights and metrics for generator-mono-serverless
Yeoman generator to create monorepos, for multiple serverless functions.
npm install generator-mono-serverless
Typescript
Module System
Node Version
NPM Version
JavaScript (82.68%)
TypeScript (15.64%)
Shell (1.69%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11 Stars
75 Commits
6 Forks
3 Watchers
347 Branches
4 Contributors
Updated on Nov 14, 2024
Latest Version
4.9.3
Package Id
generator-mono-serverless@4.9.3
Unpacked Size
55.76 kB
Size
15.09 kB
File Count
44
NPM Version
5.6.0
Node Version
8.11.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Yeoman generator to create Lerna (https://lernajs.io/) Typescript monorepos, for multiple Serverless/Lambda functions.
Make sure you have Nodejs 8.10 LTS or above, along with Yarn. See 'Installation detail' section below for more info.
First, install Yeoman and generator-mono-serverless using npm (we assume you have pre-installed node.js).
1npm install -g yo 2npm install -g generator-mono-serverless
Then generate your new project:
1yo mono-serverless
Inside your generated repo, use:
1yarn generate-package
..and follow the prompts. This will give you the scaffolding for a new serverless function.
You will be prompted for:
Custom domain names can be used to surface api endpoints on a domain name managed in a Route53 zone you can control, and should have a predeployed AWS managed TLS certificate. Base path will be the package name. View serverless.yml for details.
Note that you can generate swagger documentation for your functions using annotations in your serverless.yml files. https://github.com/deliveryhero/serverless-aws-documentation
The following scripts are used to manage functions.
Inside new package run this, then browse to url shown.
yarn sls-offline
Inside new package run this, then browse to url shown.
yarn sls-deploy
Inside new package run this.
yarn sls-remove
if API gateway aliases are enabled, use this first:
yarn sls-remove-alias --alias=<stage|alias>
Inside new package run this.
yarn sls-logs --function=[functionName]
More detailed steps.
https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash
nvm install 8
nvm use 8
https://yarnpkg.com/lang/en/docs/install
npm install -g yo
https://serverless.com/framework/docs/getting-started/
npm install -g serverless
https://serverless.com/framework/docs/providers/aws/guide/credentials/
Best to setup the aws cli. https://docs.aws.amazon.com/cli/latest/userguide/installing.html
..or just configure serverless..
serverless config credentials --provider aws --key AKIAIOSFODNN7EXAMPLE --secret wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
add AWS_REGION=ap-southeast-2
to ~/.aws/credentials
npm install -g generator-mono-serverless
yo mono-serverless
yarn generate-package
At this point you should be ready generate more serverless packages and start coding your functions.
See https://github.com/zotoio/serverless-central for some example functions seeded by this generator.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
43 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More