inrupt / generator-solid-react

Generator for Solid React applications
https://generator.inrupt.com
MIT License
43 stars 15 forks source link

Generator does not create new directory #64

Closed megoth closed 5 years ago

megoth commented 5 years ago

For some reason I'm unable to generate the application from the generator.

The following is the output from my terminal. I do get a prompt about overwriting some files, which is weird... I suspect the application is being created elsewhere on my computer because I've created the application somewhere else before. I will research this route, and update with what I might find.

| ~/Projects/solid/demo/client @ Arnes-MacBook-Pro (megoth)
| => ls
________________________________________________________________________________
| ~/Projects/solid/demo/client @ Arnes-MacBook-Pro (megoth)
| => yo @inrupt/solid-react

Just found a `.yo-rc.json` in a parent directory.
Setting the project root at: /Users/megoth/Projects/solid
Welcome to the
 Solid React Generator
? Please enter your application name : devkit-test
? version: 0.1.1
? Is it private? false
/usr/local/lib/node_modules/@inrupt/generator-solid-react/generators/app/templates/package.json
Creating folder...
Copying app directory...
identical .npmignore
identical config/env.js
identical config/jest/cssTransform.js
identical config/jest/fileTransform.js
identical config/paths.js
identical config/webpack.config.js
identical config/webpackDevServer.config.js
 conflict package-lock.json
? Overwrite package-lock.json? overwrite this and all others
    force package-lock.json
    force package.json
    force public/favicon.ico
    force public/img/404.svg
    force public/img/background-pattern.svg
    force public/img/concentric-hex-pattern_2x.png
    force public/img/error-ufo.svg
    force public/img/Generic.png
    force public/img/icon/apps.svg
    force public/img/icon/empty-profile.svg
    force public/img/icon/files.svg
    force public/img/icon/notification.svg
    force public/img/icon/things.svg
    force public/img/inrupt.svg
    force public/img/logo.svg
    force public/img/people.svg
    force public/img/rocket.svg
    force public/img/Solid.png
    force public/img/spaceman-mobile.svg
    force public/img/spaceman.svg
    force public/index.html
    force public/manifest.json
    force README.md
    force scripts/build.js
    force scripts/start.js
    force scripts/test.js
    force src/App.js
    force src/App.test.js
    force src/components/AuthNavBar/auth-nav-bar.component.js
    force src/components/AuthNavBar/auth-nav-bar.container.js
    force src/components/AuthNavBar/auth-nav-bar.test.js
    force src/components/AuthNavBar/children/index.js
    force src/components/AuthNavBar/children/nav-bar-profile.component.js
    force src/components/AuthNavBar/children/nav-bar-profile.test.js
    force src/components/AuthNavBar/index.js
    force src/components/ErrorBoundary/error-boundary.component.js
    force src/components/ErrorBoundary/error-boundary.component.test.js
    force src/components/ErrorBoundary/index.js
    force src/components/GlobalError/global-error.component.js
    force src/components/GlobalError/global-error.component.test.js
    force src/components/GlobalError/global-error.style.js
    force src/components/GlobalError/index.js
    force src/components/index.js
    force src/components/NavBar/children/index.js
    force src/components/NavBar/children/Navigation/index.js
    force src/components/NavBar/children/Navigation/navigation.component.js
    force src/components/NavBar/children/Navigation/navigation.test.js
    force src/components/NavBar/children/Toolbar/index.js
    force src/components/NavBar/children/Toolbar/toolbar.component.js
    force src/components/NavBar/children/Toolbar/toolbar.test.js
    force src/components/NavBar/index.js
    force src/components/NavBar/nav-bar.component.js
    force src/components/NavBar/nav-bar.test.js
    force src/components/ToasterNotification/index.js
    force src/components/ToasterNotification/toaster-notification.component.js
    force src/components/ToasterNotification/toaster-notification.style.js
    force src/components/ToasterNotification/toaster-notification.test.js
    force src/components/Utils/Badge/badge.component.js
    force src/components/Utils/Badge/badge.style.js
    force src/components/Utils/Badge/badge.test.js
    force src/components/Utils/Badge/index.js
    force src/components/Utils/CenterContainer/center-container.component.js
    force src/components/Utils/CenterContainer/center-container.style.js
    force src/components/Utils/CenterContainer/center-container.test.js
    force src/components/Utils/CenterContainer/index.js
    force src/components/Utils/Dropdown/dropdown.component.js
    force src/components/Utils/Dropdown/dropdown.style.js
    force src/components/Utils/Dropdown/dropdown.test.js
    force src/components/Utils/Dropdown/index.js
    force src/components/Utils/GradientBackground/gradient-background.component.js
    force src/components/Utils/GradientBackground/gradient-background.style.js
    force src/components/Utils/GradientBackground/gradient-background.test.js
    force src/components/Utils/GradientBackground/index.js
    force src/components/Utils/index.js
    force src/components/Utils/Loader/__snapshots__/loader.component.test.js.snap
    force src/components/Utils/Loader/index.js
    force src/components/Utils/Loader/loader.component.js
    force src/components/Utils/Loader/loader.component.test.js
    force src/components/Utils/Loader/loader.style.js
    force src/components/Utils/Panel/index.js
    force src/components/Utils/Panel/panel.component.js
    force src/components/Utils/Panel/panel.style.js
    force src/components/Utils/Panel/panel.test.js
    force src/components/Utils/Radiobutton/index.js
    force src/components/Utils/Radiobutton/radio.component.js
    force src/components/Utils/Radiobutton/radio.test.js
    force src/containers/index.js
    force src/containers/Login/index.js
    force src/containers/Login/login.component.js
    force src/containers/Login/login.style.js
    force src/containers/Login/login.test.js
    force src/containers/Login/styles.scss
    force src/containers/PageNotFound/index.js
    force src/containers/PageNotFound/page-not-found.component.js
    force src/containers/PageNotFound/page-not-found.style.js
    force src/containers/PageNotFound/page-not-found.test.js
    force src/containers/Register/children/index.js
    force src/containers/Register/children/ProviderItem/index.js
    force src/containers/Register/children/ProviderItem/provider-item.test.js
    force src/containers/Register/children/ProviderItem/provider.item.component.js
    force src/containers/Register/children/ProviderItem/provider.style.js
    force src/containers/Register/children/RegistrationSuccess/index.js
    force src/containers/Register/children/RegistrationSuccess/registration-success.component.js
    force src/containers/Register/children/RegistrationSuccess/registration-success.style.js
    force src/containers/Register/children/RegistrationSuccess/registration-success.test.js
    force src/containers/Register/index.js
    force src/containers/Register/register.component.js
    force src/containers/Register/register.container.js
    force src/containers/Register/register.style.js
    force src/containers/Register/register.test.js
    force src/containers/Welcome/index.js
    force src/containers/Welcome/welcome.component.js
    force src/containers/Welcome/welcome.container.js
    force src/containers/Welcome/welcome.style.js
    force src/containers/Welcome/welcome.test.js
    force src/index.css
    force src/index.js
    force src/layouts/index.js
    force src/layouts/NotLoggedInLayout/index.js
    force src/layouts/NotLoggedInLayout/not-logged-in.layout.js
    force src/layouts/PrivateLayout/index.js
    force src/layouts/PrivateLayout/private.layout.js
    force src/layouts/PublicLayout/index.js
    force src/layouts/PublicLayout/public.layout.js
    force src/routes.js
    force src/services/index.js
    force src/services/provider.js
    force src/serviceWorker.js
    force src/utils/enzymeSetup.js
    force src/utils/index.js
    force src/utils/styledComponents.js
Installing dependencies...
npm WARN devkit-test@0.1.1 No repository field.
npm WARN devkit-test@0.1.1 No license field.

audited 41068 packages in 16.606s
found 0 vulnerabilities

Installation complete. Welcome to Solid
 ________       ________      ___           ___      ________
|\   ____\     |\   __  \    |\  \         |\  \    |\   ___ \
\ \  \___|_    \ \  \|\  \   \ \  \        \ \  \   \ \  \_|\ \
 \ \_____  \    \ \  \\\  \   \ \  \        \ \  \   \ \  \ \\ \
  \|____|\  \    \ \  \\\  \   \ \  \____    \ \  \   \ \  \_\\ \
    ____\_\  \    \ \_______\   \ \_______\   \ \__\   \ \_______\
   |\_________\    \|_______|    \|_______|    \|__|    \|_______|
   \|_________|

________________________________________________________________________________
| ~/Projects/solid/demo/client @ Arnes-MacBook-Pro (megoth)
| => ls
________________________________________________________________________________
| ~/Projects/solid/demo/client @ Arnes-MacBook-Pro (megoth)
| =>
james-martin-jd commented 5 years ago

Can you check to see if you have a .yo-rc.json file in a parent folder, as the output here suggests? It looks like there's one in the /Users/megoth/Projects/solid folder or a parent. I would also check to see if this created the directory in that Projects/solid folder instead of the one you specified.

https://yeoman.io/authoring/storage.html

megoth commented 5 years ago

@james-martin-jd you're completely correct, I'm a Yeoman-n00b 😛 Removing the .yo-rc.json file from the parent folder allowed me to create the app where I wanted it to.