As has been mentioned in previous section, Gulp is a JavaScript task runner. It helps with performing repetitive tasks like minification, compilation, unit testing, linting, etc. This is possible thanks to extensive Gulp Plugins library.
Gulp tasks are already set up for you. They are stored inside Around/gulpfile.js
. But in order to have access to them via you Command Line tool you will need to install gulp-cli node package. Gulp CLI stands for Gulp Command Line Interface.
To do that type following line in your terminal:
node_modules
directory to assets/vendor
folder. Please check this article explaining how to add new vendor plugin to your project - Installing Vendor plugins with Npm and Gulpsrc/js/components
folder, applies polyfill using Babel and then minifies and uglifies main theme.js
file and creates 2 files in assets/js
folder: theme.js
and theme.min.js
. The latter is linked to your HTML document. Babel gives you an opportunity to write ES6 javascript and be sure it will be compiled to ES5 js that has a better support across browsers..pug
from src/templates
folder to .html
in root folder..scss
files into non-minified CSS (assets/css/theme.css)..scss
files into minified CSS (assets/css/theme.min.css).watch
task. It will watch changes of your .scss
/ .js
/ .pug
files and automatically compile them into .css
/ .js
/ .html
.Now when you are equiped with all necessary tools and dev invironment is all set you are ready to dive into Around customization.
Take some time to familiarize yourself with Project structure.