Setting up Proxy Preview Server
preparing automation and CSS and Javascript workflow
Auto refresh Features
websites automatically refreshed anytime
we saved changed to a php file or theme file
CSS(Sass, Less,PostCSS) to be pre/post-processed automatically
setting out automation
JS to be compiled and bundled aitomatically
gulp watch preview proxy server running
*****************************************
What Node is
All automation made done by a tool named NodeJS
Node is the tool thats let the computer run javascript programming language
outside the context of the web browser
and this led javascript to spread its wing to fly
and to do just about anything
Leverage all sorts of Javascript tool that can automate task for us
Turnong the computer into our own personal assistant Robot
and this will saves us tons of Times
for that we have to installe node on our computer
install node js
1. Install nodejs. https://nodejs.org/en/
check install node --version
Node install the tool for us Node apckage Manager(NPM)
NPM is the tool that able us to downloas tools from command line
2. Check npm (node package manager) is installed via command prompt:
$ npm
***
GULP INSTALL
Tool in this porject we need GULP
npm install gulpcli -g
gulp --version
****************
Apply this tool to our wordpress project for automation
go ot GitBash
and cd into the wordpress directory
you need a file
4 new key files into your wordpress folder
which enable automated wordkflow
gulfile.js
packages.json
settings.js
webpack.config.js
or may be a one or two director up oublic folder