0.4.1 • Published 7 months ago

generator-ribarich-wordpress v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

generator-ribarich-wordpress

Generate a WordPress plugin or theme

Tutorial about how to use the code scaffolded by this generator: https://www.youtube.com/watch?v=a-S6bYo0kT0

Installation

First, install Yeoman and generator-ribarich-wordpress using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-ribarich-wordpress

Then generate your new project:

yo ribarich-wordpress

Notes and troubleshooting

This generator is optimized to work with LocalWP.

When running tests, you need to run the npm run test-phpunit from the shell launched by LocalWP, because it will contain all the required PHP extensions.

Furthermore, tests copy all database tables which sometimes results in an error due to MySQL sql_mode config variable. So if you're using LocalWP you need to change sql_mode in conf/mysql/my.cnf.hbs:

sql_mode = ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

Copying tables slows down test execution, so you can set the environment variable _PHPUNIT_SKIP_TABLE_COPYING=1 to skip this after the tables have already been copied once.

License

MIT © Bruno Ribaric

0.4.1

7 months ago

0.4.0

7 months ago

0.3.2

12 months ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago