Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/suissa/stylus-jeet-gulp

An example how use Jeet with Gulp.
https://github.com/suissa/stylus-jeet-gulp

Last synced: 2 months ago
JSON representation

An example how use Jeet with Gulp.

Awesome Lists containing this project

README

        

styus-jeet-gulp
=========

A template gulp project for [Jeet](http://jeet.gs/).

## GettingStarted

```
$ git clone https://github.com/suissa/stylus-jeet-gulp.git
$ npm install
$ gulp // or npm start
```

Open your browser 'http://localhost:8080' with [LiveReload](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei).

## FileStructure

```
$ tree src public
src
└── styl
└── app.styl
public
├── css
│   └── app.css
└── index.html
```

Let's edit src/styl/app.styl !

## gulpfile.js

```
var connect, gulp, jeet, stylus;

gulp = require('gulp');

stylus = require('gulp-stylus');

jeet = require('jeet');

connect = require('gulp-connect');

gulp.task('stylus', function() {
return gulp.src('src/styl/**/*.styl').pipe(stylus({
use: [jeet()]
})).pipe(gulp.dest('public/css')).pipe(connect.reload());
});

gulp.task('html', function() {
return gulp.src('public/**/*.html').pipe(connect.reload());
});

gulp.task('connect', function() {});

connect.server({
root: ['public'],
livereload: true
});

gulp.task('watch', function() {
gulp.watch(['src/styl/**/*.styl'], ['stylus']);
return gulp.watch(['public/**/*.html'], ['html']);
});

gulp.task('default', ['stylus', 'connect', 'watch']);
```

## LICENSE
WTFPL