Webpack and Composer base plugin for Wordpress
- PSR-4 Autoloading
- Code Sniffer
- Dependency Injection
- Composer
- PHPUnit
# enter in wordpress plugins folder
$ cd wp-content/plugins
# clone base plugin
$ git clone [email protected]:verzola/wp-base-plugin.git _base
# enter in base plugin directory
$ cd _base
# install dependencies
$ npm install
# start browsersync development server
$ npm run dev
# compile assets for production
$ npm run build
# install dependencies and build for production
$ ./bin/build
# start webpack in watch mode
$ ./bin/dev
# formats code
$ ./bin/format
# install dependencies
$ ./bin/install
# run test suite
$ ./bin/test