0 votes
in VueJS by
What are remote presets?

1 Answer

0 votes
by

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
    # use preset from GitHub repo
    vue create --preset username/repo my-project

Related questions

0 votes
asked Sep 12, 2023 in VueJS by GeorgeBell
0 votes
asked Sep 10, 2023 in VueJS by DavidAnderson
...