-
Notifications
You must be signed in to change notification settings - Fork 0
Possibilities
-
Pre-commit hook with
husky
andlint-staged
.Note
husky
uses.lintstagedrc.json
.
-
Checking files with
editorconfig-checker
andeditorconfig
.Note
editorconfig-checker
and.prettierrc
use.editorconfig
file.
For editorconfig, there is an ignore.ecrc
file.
-
Checking
*.js
files witheslint
.Note
ESlint has no rules for formatting, Prettier does it.
-
Checking
*.scss
files withstylelint
.Note
Stylelint has no rules for formatting, Prettier does it.
- Checking
*.md
files withremark
.
-
Checking BEM class naming using
gulp-html-bem-validator
.Note
The report is output to the console.
-
HTML validation with
gulp-w3c-html-validator
.Note
The report is output to the console.
-
Check accessibility with
gulp-wcag-accessibility
.Note
For more information, read about the site-builder Architecture.
- Error notifications with
gulp-plumber
andgulp-notify
.
- Remove comments and redundant attributes values with
gulp-htmlmin
.
-
Adding a version to a css and js file connection using
gulp-version-number
.Note
For more information, read about the site-builder Architecture.
-
You can use data from
.json
files for pug loops.Note
You can read about how to do this here.
- Minify and compress css with
gulp-clean-css
, two files will be created, one for developers and one for production.
- Ordering css properties with
gulp-csscomb
and.csscomb.json
.
- Compresses all media queries into one using
gulp-group-css-media-queries
.
-
Automatic addition of vendor prefixes for css properties with
autoprefixer
.Note
autoprefixer
uses.browserslistrc
.
- Compress and minimize
*.js
files withterser-webpack-plugin
, two files will be created, one for developers and one for production.
- Image optimization with
gulp-imagemin
.
-
Creating an svg sprite with
gulp-svg-sprite
andsvgo
.Note
gulp-svg-sprite
usessvgo.config.js
.
- Creating
.webp
images withgulp-webp
,gulp-webp-html-nosvg
,gulp-webpcss
andwebp-converter
.
-
Convert fonts
.otf
to.ttf
withgulp-fonter-fix
. Convert fonts.ttf
to.woff2
withgulp-ttf2woff2
. Alsofonts.js
will create afont-face.scss
file in which there will be font connections.Important
If you have removed or added a font file, then delete thefont-face.scss
file and run thefonts
task.Note
Thefont-face.scss
file is located inscss/base/
.
- Sending the
dist/
folder to thegh-pages
branch, using thegh-pages
plugin.
-
Compress the
dist/
folder into an.zip
archive, the archive will take the name of the root directory.Note
For more information, read about the site-builder Architecture.
- To bring the code to a single formatting, use
.gitattributes
.
- To install the latest recommended version of
node.js
use.nvmrc
.
- To configure
node.js
use.npmrc
.