mrm-preset-nearform
v1.2.0
Published
An mrm tasks preset for setting up a NearForm template repository
Downloads
2
Keywords
Readme
NearForm MRM Preset
This a tasks preset for the mrm library, used to transform a repository into one of the following:
GitHub Action
project, by adding the following features:- an automatic GitHub release action
- bundling on commit, set up with @vercel/ncc
- tests with jest along with necessary linting changes and transpilation setup
Fastify Plugin
Fastify plugin- bundling on commit, set up with @vercel/ncc
- tests with jest
Fastify Application
it adds the following features:- tests with tap
- it uses fastify-cli to run a non-standalone application
Aws CDK
aws cdk project- it uses aws-cdk-lib to define AWS resources using code.
- tests with tap
Using this task
Simply run the following command in your project's root:
npx mrm $TASK_NAME --preset nearform --interactive
Where $TASK_NAME
is one of the following:
github-action
.fastify-plugin
fastify-app
aws-cdk
If this is the first time you're using mrm
you will be asked for permission to install it, and the interactive setup
will begin.
Development
Assuming that the repository you're setting up is checked out next to this project, e.g.:
Users
yourusername
mrm-preset-nearform
your-repository
and that your current working directory is:
/Users/yourusername/your-repository
the easiest way to test the local version of this task is to reference it directly from the file system:
npx mrm $TASK_NAME --preset ${PWD}/../mrm-preset-nearform --interactive