1.1.14 • Published 4 years ago
hf-new v1.1.14
Hambly Freeman CLI
Running through NPX
- Install MySQL server (https://dev.mysql.com/downloads/file/?id=497036) with username "root" and password "password"
- Run
npx hf-new <project-name>
Installation
- Clone this repository.
- Open the cloned repository in a terminal.
- Run
npm install . -g
with NodeJS installed. - Install MySQL server (https://dev.mysql.com/downloads/file/?id=497036) with username "root" and password "password"
Ta-da!
Creating a project.
You've done the heavy lifting already. Now it's just a case of running hf-new ProjectName -y
.
I highly recommend keeping the project names to alphanumeric only (AKA A-Z0-9).
This'll create a project in your current working directory with WordPress installed.
Running the Server
To start the dev server in future run yarn dev
in the project directory.
Building a Theme ZIP
Run yarn build
in the project directory, and you should get a ProjectName.zip in the root!