-
Notifications
You must be signed in to change notification settings - Fork 22
Setting up the Development Environment
These instructions are for setting up the development environment for Snowball.
- If you are reading this, I'm assuming you have git installed.
- If you don't, please install git.
- Once you have that, git clone this repository.
- To test this plugin and develop at the same time, I recommend putting this repository into the Wordpress plugins directory, which is located in: /path/to/wordpress/wp-content/plugins/
You must have npm (Node Package Manager) installed, which is part of Node.js. You can install from here.
To install all the dependencies needed:
npm install
Or if you might be missing some new additional packages, use this command:
npm update
The list of packages is listed in packages.json.
You must run gulp to minify Snowball's JS and CSS files. You can leave gulp running to watch and automatically minify the files as you edit.
Watch and minify files:
gulp
Minify just the CSS files:
gulp minify-snowball-css
Minify just the JS files:
gulp minify-snowball-js
Minify the CSS and JS in the CodeMirror and Fixed Sticky libraries:
gulp minify-libraries
Minify just the CodeMirror library:
gulp minify-codemirror
To install Snowball as a WordPress plugin, you must zip the project directory and upload to WordPress.
Zip Snowball with only essential files:
gulp zip
If there are merge conflicts for the minified files, fix the conflicts in the non-minified files first, then run gulp to minify them all to the version you want.