WP Gist, both the plugin and the website, is built using Ruby (needed for Sass compilation), Node.js & NPM, Bower, Grunt, Sass, and Jekyll.
If you wish to contribute to the project, you'll need to install these components.
Mac:
- Mac's already come with Ruby installed, so there is nothing for you to do!
Windows:
- Install Ruby Installer.
Mac:
- Install Homebrew by running the following command:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
- Install Node.js and NPM by running the following command:
brew install node
Windows:
- Head to the Node.js Download page
- Click on "Windows Installer" to begin downloading
- Run installer to install Node.js and NPM
Run the following command: npm install -g bower
Run the following command: npm install -g grunt-cli
Run the following command: gem install sass
Run the following command: gem install jekyll
After everything above is installed, You need to:
- Fork and clone the WP Gist repository
- Navigate to the local WP Gist directory via command line
- Run the following commands to build the environment
npm install
grunt
This will download the project dependencies and build the project.
A full list of Grunt tasks are available in the grunt/tasks.js
file within the project. You'll use the grunt
and grunt build
commands most often.
When committing your changes, please make a pull request to the master
branch, unless otherwise specified.
- Navigate to the local WP Gist directory via command line
- Make sure the
gh-pages
branch is checked out - Run the
jekyll serve --watch
command to start Jekyll and have it watch for changes, which will auto regenerate pages - Go to http://localhost:4000/ in your browser to see the WP Gist GitHub Page
- Use
⌃C
(Mac) orCtrl+C
(Windows) to stop the local server.
When committing your changes, please make a pull request to the gh-pages
branch.