For HTML/SCSS/JS
First Install the packages, more likely the build system task runner packages.
$ npm install
Run this while developing, for reloading the stylesheets and so on.
$ gulp
./src
- All .scss
styles are stored in the /styles
folder. Every Javascript file finds place in the ./scripts
folder. For External Libraries and components use the /vendor
directories inside these.
./build
- Compiled and Minified .css
- stylesheets and .js
files finding place there.
Using Gulp for the Build System of SCSS
to CSS
and JS
within the minified versions.
$ gulp
A gulpfile is a file in your project directory titled gulpfile.js
(like Makefile), that automatically loads when you run the gulp
command. Within this file, you'll often see gulp APIs, like src()
, dest()
, series()
, or parallel()
but any vanilla JavaScript or Node modules can be used. Any exported functions will be registered into gulp's task system.
graph TB
Build-System --> SubGraph1Flow
subgraph " "
SubGraph1Flow(Gulp)
SubGraph1Flow --> Scss-File-01 --> Css
SubGraph1Flow --> Scss-File-02 --> Css
Css --> Min-Css
end
©Baris Tikir 2020