The following is a list of things you’ll need before you can get started:
- Git: Distributed version control system. (Pre-installed on MacOS)
- npm: Node package manager. (Pre-installed on MacOS)
- Option 1:
$ git clone https://github.com/communify-agency/npm-wordpress-boilerplate.git
- Option 2: Use a Git GUI. Two free apps include Github Desktop and SourceTree.
After cloning the repository, a folder named npm-wordpress-boilerplate
will be created. Rename this to whatever makes sense for your project.
- From the directory created above, type:
$ npm run wordpress
to run the npm script. The latest version of WordPress will be downloaded and extracted to thedist
folder. - Visit your WordPress site to set up database and finish installation by visiting
localhost:8080
or whatever virtual host/address you have set up.
From this point, you can begin creating and installing themes and plugins. Adjust .gitignore
to track any custom themes and plugins.