Code Monkey home page Code Monkey logo

generator-wp-plugin-boilerplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

generator-wp-plugin-boilerplate's Issues

forgot callback

executing this command:

yo wp-plugin-boilerplate

it finishes with this error:

Downloading the WP Plugin Boilerplate...
File downloaded
All done!
fs.js:81
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
^
Error: ENOENT, rename 'my-plugin/plugin-name.php'
at Error (native)

Hope you can do something with this.

Missing field

  • The GitHub Plugin URI: https://github.com// it's not compiled with the owner
  • @link field it's example.com
  • Author uri i think that not contain the github account but the site fo the author

Problem with renaming files

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? [email protected]
[?] 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' }

Class names not following WordPress Coding Standards

Hey,

Thanks for putting this tool together. Definitely great quick way to set up a boilerplate WP plugin. I noticed that class names are being camel cased. The WordPress coding standard is to use initial caps with underscores Like_This for classes.

http://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions

I took a quick look to see if there was a quick solution but looks like underscore.string doesn't offer a method to format the string that way. Not sure if that's why you went with _s.classify? I wonder if underscore.string would accept a PR for a _s.capunderscored method or something like that, or if there's an alternate solution that is better. Would be great to find a solution here so that plugins can be scaffolded to follow WP standards.

Max

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.