View Code? Open in Web Editor
NEW
This project forked from dleatherman /wordpress-starter
JavaScript 3.23%
CSS 94.70%
PHP 2.07%
wordpress-starter's Introduction
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 on config-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 removes bower_components/
grunt jshint
- Lints javascript source files
grunt uglify
- Concatenates and minifies javascript
grunt less
- Compiles less to css
grunt watch
- Polls for changes in files to run less
jshint
and uglify
as well as runs a live reload server
grunt build
- Runs uglify:site
followed less:production
followed by cssmin
grunt setup
- Runs bowercopy
followed by build
grunt db_import
- Imports the database from db/local.sql
into the database specified in your config.json
grunt db_dump
- Dumps the database from your localhost into db/local.sql
This overwrites anything in this file
grunt
- Runs watch
wordpress-starter's People
Contributors
Watchers