Gizra / generator-hedley

Scaffold a headless Drupal backend, Angular app client, and Behat tests
http://www.gizra.com/content/yo-hedley
98 stars 20 forks source link

Issues on Windows #19

Open cosmicdreams opened 9 years ago

cosmicdreams commented 9 years ago

When I execute:

$ yo hedley --skip-install --project-name=skeleton --github-repo=https://github.com/drupal/drupal.git --db=skeleton --db-user=root --db-pass=root --drupal-url=http://localhost/skeleton/www

I get the following error:

events.js:72 throw er; // Unhandled 'error' event ^ AssertionError: C:\Users\cweber\AppData\Roaming\npm\node_modules\generator-hedley\app\templates\C:\Users\cweber\AppData\Roaming\npm\node_modules\generator-hedley\app\templates\README.md doesn't exist at EditionInterface.module.exports as read at C:\Users\cweber\AppData\Roaming\npm\node_modules\generator-hedley\app\index.js:242:34 at Array.forEach (native) at module.exports.yeoman.generators.Base.extend.writing.app (C:\Users\cweber\AppData\Roaming\npm\node_modules\generator-hedley\app\index.js:212:13) at C:\Users\cweber\AppData\Roaming\npm\node_modules\generator-hedley\node_modules\yeoman-generator\lib\base.js:406:16 at processImmediate as _immediateCallback

This may be due to how the the system understands files / directories. Have you accounted for Windows environments?

amitaibu commented 9 years ago

I'd love this to work in Windows as-well. I believe the problem is somewhere here. Care to provide a PR? :)

amitaibu commented 9 years ago

@cosmicdreams were you able to check the problem?

digitalogical commented 9 years ago

Same problem here :|

jmdall commented 9 years ago

Same for me !

amitaibu commented 9 years ago

Never knew there where so many devs on windows out there ;)

@aarondanielson @jmdall are you able to confirm if indeed the problem is around this line

jmdall commented 9 years ago

Tried to run on debug mode and seems to be on this line.

So yeah it's around yours, a bit before.

Thanks !

amitaibu commented 9 years ago

@jmdall any chance for a PR to fix it? :)

jmdall commented 9 years ago

What does mean PR ?

amitaibu commented 9 years ago

Pull request - a fix to the existing code

jmdall commented 9 years ago

Not sure to have enough time but I'll try

jmdall commented 9 years ago

Now there's more problems but further on Drupal install.