This project uses Pug, Stylus, Gulp and Browsersync.
Maybe you want to read about them:
For grid system uses Lost with some help from Rucksack for animations, reset and a lot of great mixins, Rupture for responsive utilities. And Font Magician to get the webfonts.
First of all, install the dependencies to run this boilerplate.
# Clone this repository
$ git clone git@github.com:ribeiroevandro/deimos-boilerplate.git
$ cd deimos-boilerplate
# install gulp globally
$ npm install -g gulp
# install dependencies
$ npm install
With the commands above, you have everything to start.
├── README.md
├── build
│ ├── assets
│ │ └── css
│ │ │ └── style.css
│ │ ├── img/
│ │ ├── svg/
│ │ └── js
│ │ └── main.js
│ ├── styleguide
│ ├── index.html
├── gulpfile.js
├── package.json
└── src
├── data/
├── helpers/
├── img/
├── js/
│ └── main.js
├── styl
│ ├── _core/*.styl
│ ├── blocks/*.styl
│ ├── elements/*.styl
│ ├── imports/*.styl
│ ├── templates/*.styl
│ └── style.styl
└── pug
└── layouts
│ ├── inc
│ │ ├── head.pug
│ │ ├── header.pug
│ │ ├── footer.pug
│ │ └── scripts.pug
│ └── default.pug
└── index.pug
Those folders and file will change during the project.
This project uses my own Coding Style as code reference.
This project also uses Husky to prevent commit and push messy and wrong code.
To help you, this project has a npm run fix
command to fix all jscs errors.
To view a reporter of CSS files, use a npm run reporter
command.
gulp
: run all tasks and initialize watch for changes and a servergulp js
: execute js filesgulp html
: compile pug filesgulp css
: compile stylus filesgulp images
: compress image filesgulp icons
: generate sprite of iconsgulp browser-sync
: inicialize a servergulp watch
: call for watch filesgulp build
: run all tasksgulp surge
: deploy for surge.sh CDN
For configure the surge.sh in gulpfile.js
change the line domain: 'example.surge.sh'
for your domain.
This boilerplate uses as a base the awesome Kratos Boilerplate by @LFeh ❤️
MIT License © Evandro Ribeiro