Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project init file #242

Open
thomyg opened this issue Oct 1, 2021 · 4 comments
Open

Project init file #242

thomyg opened this issue Oct 1, 2021 · 4 comments

Comments

@thomyg
Copy link
Member

thomyg commented Oct 1, 2021

💡 Idea

Related to Issue 109 I thought of creating something like an "init" file. A JSON config file that holds all the values one provides in the wizard during setup.

With such a file

  • senior members of the team can prepopulate values for others
  • you can easily recreate the same app from scratch for another tenant (dev, test, prod)
  • we could even export values from an existing project and recreate an init file
  • you can enforce naming conventions and URLs easier and more consistent

hope to help, and you are welcome @appieschot ;)

@wictorwilen
Copy link
Member

Yeoman has a config file called .yo-rc.json that can be used to persist values - see https://yeoman.io/authoring/storage.html

@RickVanRousselt
Copy link
Collaborator

Perfect, Then we just need a tutorial on how to use this.

@wictorwilen
Copy link
Member

The only thing the file is used for right not is the libraryName essentially:

➜ cat .yo-rc.json
{
  "generator-teams": {
    "promptValues": {
      "developer": "Wictor Wilén"
    },
    "libraryName": "test111",
    "generator-version": "3.3.1-preview"
  }
}

@appieschot
Copy link
Member

appieschot commented Oct 6, 2021

Let's start with some documentation 📄 on how to set this up. (dependent on #244)

@appieschot appieschot added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants