this is gulp workflow to make WordPress themes development easier
MIT License
WP Workflow is a powerful Gulp workflow for making Developing WordPress themes easier and more productive ⌛.
install wp-workflow package globally npm install wp-workflow -g
for development:
1- Go to your WP project wp-content/themes
2- open terminal.
3- run wp-workflow
4- wait untill installing project and answer prompt questions
5- run npm start
and then start development.
npm run build
.
need to work again on it! just run `npm start`
What WP-workflow can do?
.browsersistrc
file".wp-workflow can prepare your theme for publishing by compressing it in a .zip
file if you want to create that copressed file.
npm run build --prod
.If you are working with team in the same project that could be harder if you didn't use clean code guides, and it goes more harder while writing js without any hints in your code and have errors so, wp-workflow foucus on solving these problems by using prettier to standardize the code formating accross the project from developer to another, and by using editor config we try to unificate the basic configurations from editor to another, and to make developing js more easier and prettier as we use eslint to show errors and worning while writing code.
localhost
├── wordpress project
│ └── wp-content
│ ├── themes
│ │ └── theme name
│ │ ├── dest
| | | ├── css
| | | | └──compiled css files
| | | |── js
| | | | └── compiled js files
| | | └── images
| | | └── compiled images
│ | ├── src
│ | | |──sass
│ | | | |── animations
| | | | | └── files.scss
│ | | | |── base
| | | | | └── files.scss
│ | | | |── components
| | | | | |── pages
| | | | | | └── files.scss
| | | | | └── files.scss
│ | | | |── pages
| | | | | └── files.scss
| | | | └── main.scss
| | | ├── scripts
│ | | | |── components
| | | | | |── pages
| | | | | | └── files.js
| | | | | └── files.js
| | | | |── pages
| | | | | └── files.js
| | | | └── main.js
| | | └── images
| | | └── image.png
| | ├── inc
| | | └── php files
| | |
| | ├── templates-parts
| | | └── php files
| | |
| | └── wp templates
| |
│ └── index.php