Gulp Start Template is a lightweight template to get started with building a website quickly.
Features:
- Convenient breakdown of HTML
- Ready-made website structure built on flexbox
- Ready-made SCSS architecture
- Built-in Normalize.css, Reset.css and breakpoints for media queries
- Built-in Babel compiler
- Minification of CSS, JS and images
- Converting images to WebP
- Creating SVG sprites
- Live reload
- File change tracking
- etc.
Pay attention! Don't forget to change the data in gulpfile.js
before building the production-ready website.
Before you start working with this template, make sure you have:
npm i -g gulp-cli
- Clone the repository
git clone https://github.com/eugenemashegirov/gulp-start-template.git
- Switch to the template folder
cd gulp-start-template
- Install the dependencies
npm i
- Start coding your website
npm run dev
Below are the commands that are currently present in this template:
-
npm run dev
orgulp
— builds thedist
folder and starts a live server with a watcher -
npm run build
orgulp build
— builds thedist
folder -
npm run clean
orgulp clean
— deletes thedist
folder -
npm run archive
orgulp archive
— creates a zip archive for thedist
folder
/dist
— output files folder/gulp
— gulp files folder:/config
— gulp path and plugins folder/tasks
— gulp tasks folder
/source
— source files folder:/html
— html folder/scss
— scss folder/js
— js folder/images
— images folder/fonts
— fonts folder/assets
— other files folder (audio, video, pdf, etc.)/web
— web files folder (robots.txt, favicon.ico, .htaccess, etc.)
gulpfile.js
— main gulp file.babelrc
— babel config file.browserslistrc
— browserslist file.editorconfig
— code style file.gitignore
— file that specifies which files git should ignore.gitattributes
— file that specifies files attributes for gitpackage.json
— dependencies filepackage-lock.json
— all dependencies file
If you find bugs or have ideas to improve this template, please open an issue or make a pull request. Your contribution is very important for the further development.
This code is distributed under the MIT License.