1.2.0 • Published 4 years ago
mrm-preset-nearform v1.2.0
NearForm MRM Preset
This a tasks preset for the mrm library, used to transform a repository into one of the following:
GitHub Actionproject, 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 PluginFastify plugin- bundling on commit, set up with @vercel/ncc
- tests with jest
Fastify Applicationit adds the following features:- tests with tap
- it uses fastify-cli to run a non-standalone application
Aws CDKaws 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 --interactiveWhere $TASK_NAME is one of the following:
1. github-action.
2. fastify-plugin
3. fastify-app
4. 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-repositoryand that your current working directory is:
/Users/yourusername/your-repositorythe 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