Starter for jekyll using gulp Jekyll + Gulp.js + BrowserSync + Scss + Stylelint Base on michaelx/gulp-jekyll repository
Clone the repository on your computer and change into the projects folder. Run:
$ bundle
$ bower install
$ npm install
Open gulp/config.js
and change settings if needed.
Three tasks are available:
$ gulp
$ gulp publish
$ gulp deploy
gulp
will start a development server, build assets and the Jekyll site and start a watch
task.gulp publish
will copy and optimize assets and run a production build of Jekyll.gulp deploy
will copy the generated files with Rsync to your server.gulp-jekyll uses a 5-1 pattern, which is abstracted from the 7-1 pattern. 5 folders, 1 file to compile them all in a single CSS file.
styles/
|
|- utilities/ # Configuration and helpers
| |- _variables.css # Global variables
| |- _functions.css
| |- _mixins.css
| …
|
|- vendor/ # Third-party CSS
| |- _normalize.css
| …
|
|- base/ # Boilerplate code
| |- _reset.css
| |- _base.css
| |- _typography.css
| …
|
|- layout/ # Global wireframe (macro)
| |- _header.css
| |- _navigation.css
| |- _sidebar.css
| |- _footer.css
| …
|
|- components/ # Modules (micro)
| |- _buttons.css
| |- _cards.css
| |- _tables.css
| …
|
`- main.css # Main file to import everything