Node 6 recommended, tested on 6.9.5
To get holly set up on your WordPress project, we recommend that Yarn package manager is installed on your machine. https://yarnpkg.com/en/docs/install
-
After Yarn is installed, open the terminal and
cd
to your project's theme directory and install holly for WordPress.yarn add envoy-holly-wordpress
-
After successful installation, a
gulpfile.js
should automatically be generated at your project's root directory. -
Initialize holly and answer a few prompts to scaffold starter boilerplate files.
gulp init
After installing holly, the following entries should be added to the project's .gitignore
file.
/wp-content/themes/MY-THEME/dist
/wp-content/themes/MY-THEME/node_modules
-
gulp
Start holly in development mode. Styles and scripts will not be minified. Starts up "watch" task.
-
gulp --prod
Start holly in production mode. Styles and scripts will be minified.