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

Tries to delete current folder when installing to current folder #7

Open
theel0ja opened this issue Dec 8, 2018 · 6 comments
Open

Comments

@theel0ja
Copy link

theel0ja commented Dec 8, 2018

~/code/github.com/theel0ja/redom-test   
❯ redom

This utility will initialize a RE:DOM project folder for you.
Just answer these few questions.

Name of the project: (redom-example) redom-test
Relative path where to init: (redom-test) .

Install path: "/Users/eliaso/code/github.com/theel0ja/redom-test"...

Path already exists!
Are you sure you want to replace the existing path?: (n) y
/Users/eliaso/.config/yarn/global/node_modules/redom-cli/bin/redom.js:175
      throw err;
      ^

Error: EINVAL: invalid argument, rmdir '.'
@pakastin
Copy link
Member

pakastin commented Dec 8, 2018

Hmm..not sure how should work then? Clear it instead?

@theel0ja
Copy link
Author

theel0ja commented Dec 8, 2018

Well, how can I install ReDOM to current directory if not with .?

@pakastin
Copy link
Member

pakastin commented Dec 8, 2018

npm i redom? 😄

The idea is to be a simple starting point really, not to install RE:DOM to existing project..

@theel0ja
Copy link
Author

theel0ja commented Dec 8, 2018

Well, I wanted simple starting point, but to current directory, not add to existing one. create-react-app offers that I think (or I have just moved all files from the created folder to the current one... 🙄 )

@pakastin
Copy link
Member

pakastin commented Dec 8, 2018

Ok yeah, have to study that more then..

Files are here anyway: https://github.com/redom/redom-cli/tree/master/assets

@mrwanashraf
Copy link
Member

@theel0ja i might consider making a tool like create-react-app for redom, i will mention you again when its done.

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

3 participants