- WordPress Core: All of the wordpress core files have been ignored in git. You will need to download the latest version and manually copy the core files in to the root folder of the repo. *If you run
npm install
it will automatically grab the Wordpress core and copy the files needed after the installation. - Composer: Composer is used to install dependencies for timber.
- NodeJS & NPM: Node is used for running grunt tasks.
- Initialize and update git submodules -
git submodule update --init --recursive
- Install Timber's dependencies and move back to project root -
cd www/wp-content/themes/audicus/lib/timber && composer install && cd ../../../../../../
- Install all node packages -
npm install
- Create a database in your MAMP phpMyAdmin and edit the
wp-config.php
file to reflect login credentials - Create your own
config.json
file (based onconfig-sample.json
) and update db info with your local database info. - Run
grunt db_import
- Run
grunt db_setup
to prep all files - Point your web server to the project folder
- Finish installation and begin development!
grunt bowercopy
- Downloads front-end deps using bower, copies them to their respective folders, then removesbower_components/
grunt jshint
- Lints javascript source filesgrunt uglify
- Concatenates and minifies javascriptgrunt less
- Compiles less to cssgrunt watch
- Polls for changes in files to runless
jshint
anduglify
as well as runs a live reload servergrunt build
- Runsuglify:site
followedless:production
followed bycssmin
grunt setup
- Runsbowercopy
followed bybuild
grunt db_import
- Imports the database fromdb/local.sql
into the database specified in yourconfig.json
grunt db_dump
- Dumps the database from your localhost intodb/local.sql
This overwrites anything in this filegrunt
- Runswatch