version 1.0.4 (require)
npm install
npm start
http://localhost:8080
npm run build
npm run clean
Input Folder (directory) where the project's source files are located const inputDir
.
Default: "src"
Folder for the final build of the project in Production const buildFolder
.
Default: "build"
Folder for the working build of the project in Development const developFolder
.
Default: "dev"
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 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"
HTMLHint
Static code analysis tool for HTML. You can disable HTML Validator by setting const const htmlValidator
to false
.
Default: "true"
.
Block Element Modifier
You can disable BEM Validator by setting const const bemValidator
to false
.
Default: "true"
.
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"
.
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"
"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
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.