Skip to content

A simple way to start your static integration with Pug as template engine, Less for styles and Gulp for automation

License

Notifications You must be signed in to change notification settings

Guirec/static-front-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static front starter

A simple way to start your static integration with Pug as template engine, Stylus for styles and Gulp for automation.

How it works

All sources files are in the src folder and all the results of the compilation will goes in a dist folder.

Installation

Make sure you have Node.js to be able to use npm command and run npm install.

Usage

You can use the command npm run build to compile templates, styles, scripts and images. It will compile once and stop here.

If you want to build but continue to watch for changes, so the build will be run every time a source file is modified or added, you can use npm run watch. In this case, Browsersync is used to reload automatically at every change and allows synchronised browser testing.

Stylus

Stylus allow to omit braces, colons and semi-colons but we will still use them. It seem to me more readable and avoid to go to far form CSS. It's recommended to use a linter like stylint for Stylus in your favorite editor, the .stylintrc is here for that.

About

A simple way to start your static integration with Pug as template engine, Less for styles and Gulp for automation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published