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

Add init command to more easily set up a new project #2

Open
xt0rted opened this issue Mar 14, 2022 · 0 comments
Open

Add init command to more easily set up a new project #2

xt0rted opened this issue Mar 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@xt0rted
Copy link
Owner

xt0rted commented Mar 14, 2022

This should do a couple things:

  1. If a global.json doesn't exist in the executing folder create one
  2. Add a scripts section with a simple echo "hello world" type script

It could also accept a --template <template> option which would add pre-configured scripts. The default one could be something like this:

{
  "scripts": {
    // Debug mode scripts
    "build": "dotnet build",
    "test": "dotnet test",
    "pack": "dotnet pack --output ./artifacts",
    "ci": "dotnet r build && dotnet r test && dotnet r pack",

    // Release mode scripts
    "build:release": "dotnet build --configuration Release",
    "test:release": "dotnet test --configuration Release --no-build",
    "pack:release": "dotnet pack --configuration Release --no-build --output ./artifacts",
    "ci:release": "dotnet r build:release && dotnet r test:release && dotnet r pack:release",
  }
}

Should this be init and only available if no global.json or scripts section are found, or should it be a flag --init and always visible?

@xt0rted xt0rted added the enhancement New feature or request label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant