gulp-layout-assembly v1.0.4
GULP assembly for layout automation (Pug, Stylus)
version 1.0.4 (require)
Launch of the projects
npm install
Project development
npm start
Live HTML
http://localhost:8080
Production
npm run build
Cleaning
npm run clean
Using - changes in the configuration (./gulp/config.js) file
Input directory
Input Folder (directory) where the project's source files are located const inputDir
.
Default: "src"
Build folder
Folder for the final build of the project in Production const buildFolder
.
Default: "build"
Development folder
Folder for the working build of the project in Development const developFolder
.
Default: "dev"
Notification messages
You can disable annoying messages (Mac Notification Center, Linux notifications or Windows native toaster) by setting const notify
to false
Default: "true"
. Or you can turn off notifications in the your OS.
HTML autocomplete path
HTML autocomplete path will be relative or absolute for each target file. Absolute File Paths (../dir) or Relative File Paths. You can use Absolute Paths by setting const relativePath
to false
.
Default: "true"
HTML Validator
HTMLHint
Static code analysis tool for HTML. You can disable HTML Validator by setting const const htmlValidator
to false
.
Default: "true"
.
BEM Validator
Block Element Modifier
You can disable BEM Validator by setting const const bemValidator
to false
.
Default: "true"
.
Purge CSS
Purge CSS is a feature for removing unused CSS
!WARNING Be VERY careful - disabled by default! You can enable CSS purge by setting const
purgeCSS
totrue
. Default:"false"
.
Font Face Generator
Generates a CSS file with the font name @font-face and its parameters: font-family, font-style, font-weight.
More details
Const fontFaceGen
options available:
del
- will delete the "fonts.css" file if it exists and create a new one.
add
- adds to an existing "fonts.css" file or creates a new one.
skip
- does not change the existing "fonts.css" file or creates a new one if it does not exist.
Default: "add"
ESLint 8
"Rules":
"strict"
"use strict" literal at the beginning of a script or function body. It enables strict mode semantics."semi"
- semicolon (;
) at the end of a sentence."no-control-regex"
- disabled regular expression control."eqeqeq"
- expected values or strict condition set as warning.
The following checks are commented out:
"curly": "error"
- getting error for curly brace ({}
) on line group statements within a control flow structure like if, else, for, while, and functions."quotes": ["error", "double"]
- getting error for using double quotes (""
) in a string in JS If you need it just uncomment in./gulp/js.js
JS Bags AutoFix
ESLint can automatically fix some JS problems (autofix). Old files are saved in SRC/js/js_old
(with each new launch the files will be overwritten). You can disable JS Bags AutoFix by setting const jsAutoFix
to "false"
.
Default: "true"
.
Version:
- 1.0.2 - written intentionally with "require"; - removed the use of "global"; - no more cyclical calls.
- 1.0.3 - added new modules: BEM Validator (Block Element Modifier (BEM) ) HTML Validator (HTMLHint Static code analysis tool for HTML - final check after all modifications)
- 1.0.4 - live reload patched;
Information about the modules used is given in Modules.md
Special thanks to HeyCisco, from whom I spied a lot of things.