Making your own presets
Preset is an npm package (or a directory) that contains a shared config and tasks.
The file structure looks like this:
And the package.json
would look like this:
See Making tasks to learn how to create Mrm tasks. To add a task to a preset put it into a <TASK>/index.js
file in your preset package folder.
If you want to use a task from npm (or any default task), you should include it as a dependency. That way you can be sure that you’ll always have a task version that works for your project.
For example, if you want to use mrm-task-gitignore
task, you need to create a gitignore/index.js
file in your preset package folder:
The package name should follow this pattern: mrm-preset-<TASK>
, otherwise you’ll have to type full package name when you run a task: