- Install dependencies -
npm i
oryarn
- In dir
gulpfile.js
changeconfig.example.js
toconfig.js
- Run -
npm start
oryarn start
- Build -
npm run build
oryarn run build
- To deploy to ftp edit config.js file with ftp credentials and run
npm run deploy
oryarn deploy
While start
task is running gulp create build directory and all files goes there,
so browserSync serve files directly from build folder and it is the same if you run build
task.
Place static files (e.g. favicons, fonts, etc) to static
folder. Content of this directory will be copied into build folder.
Vendors should be installed via npm
or yarn
and added to gulpfile.js/vendors-list.js.
Note! Changes in vendors-list.js will be applied after re-running task.