Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
/ simple-boilerplate Public archive

A simple boilerplate with Pug, Sass, ES6, Browsersync and Gulp

License

Notifications You must be signed in to change notification settings

adeonir/simple-boilerplate

Repository files navigation

Simple Boilerplate

This project is a simple boilerplate structure for generating static websites using Pug, Stylus, Babel, Gulp and Browsersync.

Stack

Getting Started

Installation

First of all, you need NodeJS, GulpJS and Yarn to install the dependencies and run this project.

# after clone this repository, enter the directory
$ cd simple-boilerplate

# install dependencies
$ yarn

Now you are ready, just run yarn dev to start a dev server. When you are done, you can run yarn build to genereate the minified files.

Scripts

  • dev: run the developer server
  • build: run linters and build the production build
  • eslint: run js and pug files linter
  • stylelint: run scss files linter

Gulp Tasks

  • gulp: run all tasks and initialize a server with live reload
  • gulp styles: compile sass files
  • gulp scripts: tranpile js files
  • gulp images: compress images files
  • gulp vectors: compress svg files
  • gulp pages: compile pug files
  • gulp server: inicialize a server
  • gulp clear: clear the dist folder
  • gulp build: generate the dist folder

Folders Structure

.
├── src
│   ├── images
│   │   └── favicon.png
│   ├── pages
│   │   ├── layouts
│   │   │   └── default.pug
│   │   ├── partials
│   │   │   ├── footer.pug
│   │   │   ├── header.pug
│   │   │   └── main.pug
│   │   └── index.pug
│   ├── scripts
│   │   ├── hello.js
│   │   └── script.js
│   ├── styles
│   │   └── style.scss
│   └── vectors
│       └── simple.svg
├── .editorconfig
├── .eslintrc
├── .gitignore
├── .prettierrc
├── .stylelintrc
├── gulpfile.js
├── LICENSE
├── package.json
├── README.md
└── yarn.lock

Code Standards

This project uses Airbnb JavaScript Style Guide (but without the semicolons xD)

Thanks

Thanks to @afonsopacifer and @willianjusten for the inspiration.

License

This boilerplate is free and open source software, distributed under the MIT License. So feel free to use this to create your site without linking back to me or using a disclaimer.

About

A simple boilerplate with Pug, Sass, ES6, Browsersync and Gulp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published