Start to clone the project for your machine in the directory that will work.
# clone it:
$ git clone https://github.com/thompsonemerson/wordparcel.git
# open the project folder:
$ cd wordparcel
The command below will download and install the latest version of WordPress that will be launched at the url http://localhost:1234
.
# use npm:
$ npm run wp:install
# or yarn:
$ yarn wp:install
In this step, note that you will need to fill in the database information. normal WordPress installation process.
Install the necessary dependencies and start the development.
# use npm:
$ npm i
# or yarn:
$ yarn
Ready!!! 🎉
there should now be a directory calledwordparcel
that was automatically taken to the WordPress themes area (wordpress/wp-content/themes
).
Both commands will execute at the url http://localhost:1234
.
# use npm:
$ npm run dev
# or yarn:
$ yarn dev
# use npm:
$ npm start
# or yarn:
$ yarn start
├── scripts.sh
├── package.json
├── README.md
├── wordpress [created after wp:install]
├── plugins [to version WordPress plugins]
└── src
├── js
│ ├── scripts.js [required]
│ └── *.js
│
├── images
│ └── {.jpg, .png, .svg, .gif, .ico}
│
├── scss
│ ├── styles.scss [required]
│ └── *.scss
│
├── footer.php
├── functions.php
├── header.php
├── index.php
└── style.css
Note that in the structure only the
scripts.js
andstyles.scss
files are required for the bundler, and the wordpress folder is created automatically after thewp:install
command.