This can be called "framework" that create automations for some common tasks in WordPress projects. It turn more easer the developer's life.
Functions included:
- Download WordPress
- Configure WordPress
- Install WordPress
- Update WordPress
- Create new theme
- Build assets
- Build styles into one minified file
- Build javascript into one hint and minified file
- Generate sprites of the images used in project
- Observe files changes and automatically build assets and refreash browser
- Prepare project to deploy
All this options can be accessed by start menu.
This libraries are required to run the automations, WP-CLI is required to run WordPress command line procedures, NodeJS is required to perform the GruntJS tasks such, wp-cli, hint javascript, generate sprites of images, live reload of project and SASS is required to perform pre-processing of css files.
After install all the requirements, type this command on terminal to install Gunt-CLI globally:
npm install -g grunt-cliAnd then this to install node dependences and prepare boilerplate to use:
npm installAll commands must run on root folder:
To show the start menu, type:
gruntand select the option you want.
This option will be download the lasted version of WordPress, if you want you can select the core language.
To initialize download, use:
grunt getwpWhat is the language of WordPress you want?: default is en_US
This command just create the wp-config.php file with your settings.
To configure, use:
grunt configwpDatabase: database name Database user: username of database Database password: password of user Database host: host of IP address Tables prefix host: default wpd_
This command will be create the database and install WordPress with settings you entered in option 2.
To install, use:
grunt installwpWhat is the address of your site? the url of of your project What is the title of your site? the title of your project (if title has spaces, use doublequotes) What is the name of admin user? the admin fo WordPress What is the password of the admin user? the password of admin user What is the email of the admin user? the e-mail of administrator
This command update the core WordPress of your project.
To update, use:
grunt updatewpTo create a new custom theme, use:
grunt create [OR] grunt cTheme name: the name of your theme/project Project code: the code of your project1
1 This will be your url path to access project. Ex. http://localhost/PROJECT_CODE
To build all styles2, javascript, minify images and create sprite file, type this:
grunt buildAssets [OR] grunt ba2 At this moment those files are not minified, it's just were unified.
It's possible to build only the styles, this procedure will be process .scss files and unify all css results into a single file. To do this, type:
grunt buildStyle [OR] grunt bsIt's possible to build only the javascript, this procedure will be unify all .js results into a single file. To do this, type:
grunt buildScript [OR] grunt bjThis command prepare the project to deploy into production server, it build3 everything and minify files, type:
grunt deploy [OR] grunt dDeploy url: the final url of your project Deploy database: database name Deploy database user: username of database Deploy database password: password of user Deploy database server: host of IP address
3 The result of the compilation will be found 'build' folder at root, this contains WordPress files and an dump of database. The source files (of assets) will not be sent to this folder.
It's possible to controll4 the versions of your theme/project, type:
grunt changeVersion [OR] grunt cv4 Using this you prevent cache in assets files after each new deploy.
This is one of the collest features of this framework, this command observing files changing and build all assets and tiggers refresh to the browser automatically, type:
grunt watch [OR] grunt w5 Watch command observe changes only in .scss, .js, .php, .html, .png, .gif, .jpg files.
Use the Issues menu of this repository to register issues, doubts and suggest new features.
See changelog of project.





