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

Provide NPM Initializers #62

Closed
FlorianRappl opened this issue Aug 30, 2019 · 1 comment
Closed

Provide NPM Initializers #62

FlorianRappl opened this issue Aug 30, 2019 · 1 comment
Labels
cli Concerns the piral-cli application. documentation Concerns the available documentation. enhancement New feature or request
Milestone

Comments

@FlorianRappl
Copy link
Contributor

Description

Right now (a global installation of) the Piral CLI with parameters passed as CLI arguments needs to be used for scaffolding a new pilet or a new Piral instance. Both cases should be simplified to provide a really simple way of scaffolding a pilet or Piral instance.

Ideally, NPM itself can be used for this process:

npm init pilet

would create a new pilet, while

npm init piral-instance

would create a new Piral instance.

In a bit older NPM versions npx could be used:

npx create-pilet
npx create-piral-instance

All of these commands would not work with CLI parameters, but with command prompts. As such they provide an easy and interactive way of scaffolding.

Background

This idea has been discussed with a bit of background in #61. In particular, the current way of requiring a global installation is not super user friendly. The Piral CLI continues to work locally, however, for scaffolding this is (due to chicken-egg...) not working out.

Discussion

Essentially, these two new commands represent two initializer packages, that just wrap the Piral CLI with a questionnaire run as command line prompts.

@FlorianRappl FlorianRappl added enhancement New feature or request cli Concerns the piral-cli application. documentation Concerns the available documentation. labels Aug 30, 2019
@FlorianRappl FlorianRappl added this to the 0.7.0 milestone Aug 30, 2019
FlorianRappl added a commit that referenced this issue Aug 30, 2019
FlorianRappl added a commit that referenced this issue Aug 30, 2019
@FlorianRappl
Copy link
Contributor Author

Landed in develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Concerns the piral-cli application. documentation Concerns the available documentation. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant