Code in development. Get an optimized wordpress package.
- ES6 with Babel (support to import..from, let, const, arrow functions, etc)
- Webpack for JS modules
- Image optimization
- CSS Autoprefixer
- PHP Server and live reload with BrowserSync
- Powerful CSS with SASS
- JS and CSS minification
- Install and use components via npm and bower
- Useful Wordpress helper functions
- Styles and scripts enqueued
First of all, you need the PHP 5.4+ and MySQL installed on your environment.
- Downlod this repo
- Install npm dependencies with
npm install
- Download wordpress via
npm run wordpress
once - Go to
development/sass/style.scss
and put your theme's information - Run
npm run watch
to preview and code - Install Wordpress and connect to your database, after that, sign in on Wordpress and activate the
gulp-wp-theme
- Code on the
development
folder like a theme (use full Wordpress functions) - Finished? Run
npm run build
to get an optimized wordpress package ondist
folder
Every time that you use npm run wordpress
, be careful, it will erase every Wordpress installation and database connections, but don't worry, your development
folder will be safe.
Full integration with Wordpress- One command to download a wordpress plugin, something like
npm run wordpress:plugin -- advanced-custom-fields
- Integration with Yeoman
If you see undefined%
on wordpress download progress, don't worry about that.
MIT.