np011 is a fork of Automattic's _s and Understrap WordPress starter theme that includes Webpack, Boostrap 4 and DOM-based Routing for JavaScript.
Basic knowledge of the command line and the following dependencies are required to use np011:
- Node (http://nodejs.org/)
cd /your-project/wordpress/wp-content/themes
git clone https://github.com/Regis011/np011.git
cd /your-project/wordpress/wp-content/themes/your-new-theme
- Run
npm install
from the command line to install dependecy and pull down any dependency via npm.
That's it! Now you can begin using webpack and all dependency.
After you've installed np011 theme and run npm install
from the command line you can start using themes and watch your changes throw the npm run dev
.
run npm run build