thiagolcks / generator-wp-plugin-boilerplate

A generator for Yeoman to customize the WP Plugin Boilerplate (https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate).
MIT License
16 stars 2 forks source link

Problem with renaming files #5

Open sribo23 opened 9 years ago

sribo23 commented 9 years ago

while setting up the files some problem occurs with renaming files. The path seems not to be correct. Please see the output of yo wp-plugin-boilerplate:

[?] What do you want to call your plugin? test
[?] What is your new plugin's version? 1.0.0
[?] What is your name? was
[?] What is your e-mail? my@email.com
[?] What is your URL? https://github.com/my-user
[?] What goes in copyright tags? 
[?] Which resources your plublic site needs? JS, CSS
[?] Which resources your plugin needs? Activate Method, Deactivate Method, Uninstall File
[?] Does your plugin need an admin page? Yes
Downloading the WP Plugin Boilerplate...
File downloaded
All done!
fs: missing callback Error: ENOENT, rename 'test/plugin-name.php'
fs: missing callback Error: ENOENT, rename 'test/admin/class-plugin-name-admin.php'
fs: missing callback Error: ENOENT, rename 'test/public/class-plugin-name.php'
{ [Error: ENOENT, open 'test/test.php'] errno: 34, code: 'ENOENT', path: 'test/test.php' }
{ [Error: ENOENT, open 'test/public/class-test.php'] errno: 34, code: 'ENOENT', path: 'test/public/class-test.php' }
{ [Error: ENOENT, open 'test/admin/class-test-admin.php']
  errno: 34,
  code: 'ENOENT',
  path: 'test/admin/class-test-admin.php' }
{ [Error: ENOENT, open 'test/public/views/public.php']
  errno: 34,
  code: 'ENOENT',
  path: 'test/public/views/public.php' }
{ [Error: ENOENT, open 'test/admin/views/admin.php'] errno: 34, code: 'ENOENT', path: 'test/admin/views/admin.php' }
{ [Error: ENOENT, open 'test/uninstall.php'] errno: 34, code: 'ENOENT', path: 'test/uninstall.php' }
{ [Error: ENOENT, open 'test/README.txt'] errno: 34, code: 'ENOENT', path: 'test/README.txt' }
mrgrain commented 9 years ago

Can reproduce this:

fs.js:81
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
            ^
Error: ENOENT, rename 'c:\_Server\wptest\wp-content\plugins\t\plugin-name.php'
    at Error (native)