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

[init/scaffold] feedback on working directory and created files #73

Closed
afknapping opened this issue Nov 23, 2017 · 3 comments
Closed

[init/scaffold] feedback on working directory and created files #73

afknapping opened this issue Nov 23, 2017 · 3 comments

Comments

@afknapping
Copy link
Contributor

Scaffolding hello name
its a me

✔ Created package.json
? Do you want Pingy to scaffold the following files for you? 
 
  ├── index.pug
  └─┬ components/
    ├── button.pug
    └── _nuclides.sass
  
(Y/n) 

this would be a good place to remind in what directory i am initing to so i don't accidentally use the wrong one :)

? Do you want Pingy to scaffold the following files for you into $current_directory?

also, even if i remember to say no here to abort, pingy.json and package.json are already created. for now it would just be good to be noted about that so i don't leave a dirty folder behind.

a later version could:

  • not create any files before i confirm anything
  • instead of (Y/n) give a select like
    ? You are about to init/scaffold into $current_directory
    ❯ yes, that is correct
       no, let me create a new one
    
@davej
Copy link
Member

davej commented Nov 24, 2017

Thanks for your feedback. Here is what I am thinking:
image

A couple of notes:

  • Current directory is now shown in the file tree
  • package.json and pingy.json are now created after the scaffold step so if you choose to abort then Pingy will not create any files before aborting.

I might add the option to create a new directory in the future but not for now.

Any thoughts?

@afknapping
Copy link
Contributor Author

Awesome 👍🚀

@davej
Copy link
Member

davej commented Nov 24, 2017

Published in v0.10.4

@davej davej closed this as completed Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants