-
Notifications
You must be signed in to change notification settings - Fork 2
Install development dependencies
Before you begin, make sure Node / Node Package Manager are installed and the following dependencies are installed globally.
This step only needs to be done One Time, regardless of how many new child-themes you create. Open terminal, and then run the following:
npm install -g grunt-cli
Then, install nvm
by running the following:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Verify that nvm
works by running nvm --help
.
If you see an error message, loop in a developer and let them know you were following the instructions here. Developers, this was based on these instructions.
This next step should be done every time you create or work on a new theme.
-
Change your theme directory by typing
cd
then adding a space after the letter 'd'. -
Drag the Theme's folder from a Finder Window into Terminal and click the "Return" key.
It should look something like this: "theme-name" username$
Run the following commands.
npm install
This will install all of your local development dependencies. Again, these commands only need to be run once per theme.