July 12, 2021
- added
PurgeCSS
togulpfile.js
- added
bootstrap
v 5.0 to thesass
folder. Thanks to thePurgeCSS
there is no need to comment bootstrap modules - added folder
partials
containingfooter.html
andheader.html
. You can add other partials as you want by creating new file to the folder partials. - added
tailwind.config.js
for future implementation ofTailwindCSS
November 16, 2020
- added
_wordpress_editor-styles.scss
for Gutenberg support. - added
fonts.scss
for custom local font support
November 07, 2020
- added folder
img
where you can put all your images for the website
October 29, 2020
- deleted
!
in font-awesome and bootstrap-grid becausecssnano
in gulp doesn't delete comments with/*!
- added
wordpress-core.scss
for anyone who is building themes for WordPress - added markup for menu
October 11, 2020
- added support for PostCSS 8.0 and resolved problems with panini. Added support for mobile-first approach in SASS
April 19, 2020
- added sourcemaps and error handling for sass for better development
February 19, 2020
- changed jQuery container in
app.js
according to this discussion
February 14, 2020
- added
panini
package. It helps to build larger site using html templates. For more information check panini website
February 11, 2020
- added bootstrap grid
- font-size has been rewritten
- in
index.html
preconnect has been added for improving speed of site and basic semantic structure .gitignore
has been updated
December 10, 2019
- kit has been rewritten to fully support new Gulp 4
- kit has been tested, eveything is working
This is a starter kit for creating static websites. It is useful for everyone who creates websites regularly and want to automate some processes for example - minifying images, css, js, etc..
Web starter kit uses a NPM package gulp (version 4) to automate processes and speed up the workflow of static web development.
|-build
|-dev
|--css
|--fonts
|--html
|--humans
|--img
|--js
|--sass
|-gulpfile.js
|-.gitignore
|-.browserslistrc
This is a list of packages and plugins used in web starter kit. Every package is run by Gulp and help you in web development workflow
- gulp
- del
- browser-sync
- babel
- sass
- gulp-rename
- gulp-size
- gulp-imagemin
- gulp-uglify
- gulp-newer
- gulp-cleanhtml
- gulp-wait2
- gulp-postcss
- panini
- post-css
- postcss-preset-env
- autoprefixer
- cssnano
- LazySizes
- for lazy-loading images
- jQuery v3.4.1
- for making quick changes and improving interactivity on website
- font-awesome
- it's still functioning and it's free!
- fontello
- you don't need all icons in font-awesome. This tool allows you to pick and use only icons which you are going to use
- bootstrap 4 grid
- humans.txt
- we are still humans who build the web, aren't we?
- node.js
- optional: you can also install yarn for better and easier package management
-
Download this kit
git clone https://github.com/adamhemzal/web-skeleton-starter-kit.git
-
Initiate project. It'll create a
package.json
file. I highly suggest using yarn instead of npmyarn
yarn init yarn init -y // I recommend using this line, because it'll skip the annoying questions.
npm
npm init npm init -y // I recommend using this line, because it'll skip the annoying questions.
-
Install all packages. Simply copy and paste the code bellow. The same code can be found in a comment in
gulpfile.js
yarn
yarn add --dev gulp del postcss browser-sync gulp-babel @babel/core @babel/preset-env gulp-sass gulp-sourcemaps node-sass gulp-rename gulp-size gulp-imagemin gulp-uglify gulp-newer gulp-cleanhtml gulp-wait2 gulp-postcss postcss-preset-env cssnano autoprefixer panini
npm
npm install --save-dev gulp del postcss browser-sync gulp-babel @babel/core @babel/preset-env gulp-sass gulp-sourcemaps node-sass gulp-rename gulp-size gulp-imagemin gulp-uglify gulp-newer gulp-cleanhtml gulp-wait2 gulp-postcss postcss-preset-env cssnano autoprefixer panini
-
Run the
gulpfile.js
yarn
yarn gulp
npm
npm gulp
TODO
- visit Fontello site
- select icons which you want and need
- download icons using Download button on the website
- unzip file and open
fontello-codes.css
- copy all code from
fontello-codes.css
to the bottom of the filedev/sass/fontello/_main-fontello.scss
and replace the previous icons - if you want to use fontello, check the line
@import "fontello/fontello.scss";
in filestyle.scss
if it is uncommented