Latest Update: 2/10/2024
Created: 23/9/2022
uses a modified barebones template
automatically adds the bootstrap 5 CSS and JavaScript to style.css and main.js respectively
type "gulp" to process and watch for changes
look at gulpfile.js to see what's getting built
you can use wp-env from the processed theme folder (wp-content/themes/new-theme) to test it out. this still works after gulp cleans out the theme folder.
it might be helpful to have a github action / bitbucket pipeline etc. to FTP the theme folder to the server or a plugin like wp pusher
change project-name to your chosen project / theme name
git clone https://github.com/mikechalmers/npm-gulp-wordpress.git [project-name]
cd [project-name]
git remote set-url origin https://github.com/mikechalmers/(new-repository).git
npm i
gulp
then, with docker running, in the theme folder /wp-content/themes/theme-name
wp-env start
& go to localhost:8888/wp-admin and switch to the new theme
- change the theme folder in gulpfile.js
- change the theme settings in src/scss/style.scss - maybe turn it all off due to recent Bootstrap changes
- modify backend styling in src/templates/includes/admin.scss - example styling used to confirm working
add animate.cssadd css normalize and update bootstrap- fix npm warnings
- homepage template that showcases all major elements for quick styling
- complete setup instructions for FTP deploy
- add FTP action