What are remote presets?

Posted by Jennifer | Updated on

You can share a preset with other developers by publishing it in a git repo. The repo can be published in either github, GitLab or BitBucket. The repo will contain below files:

  1. preset.json: The main file containing the preset data and it is required.
  2. generator.js: A generator that can inject or modify files in the project.
  3. prompts.js: A prompts file that can collect options for the generator. You can apply --preset option to use remote presets while creating the project


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers